LLM Reference
OpenAI API

Sora 2 on OpenAI API

Sora · OpenAI

Serverless

Last refreshed 2026-05-20. Next refresh: weekly.

Why use Sora 2 on OpenAI API?

OpenAI API offers Sora 2 with competitive pricing. OpenAI is a leading AI research and deployment company dedicated to developing safe and beneficial artificial general intelligence (AGI) for humanity.

Compare Sora 2 across 2 providers to find the best fit for your use case
Input / 1M
-
Output / 1M
-
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export OPENAI_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI()  # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
Model ID
sora-2

Request example

import os
from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
    model="sora-2",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use the model slug directly, e.g. "gpt-4o" or "gpt-4.1-mini".
  • The examples expect OPENAI_API_KEY; rename it only if your application config maps the new variable.

Compare Sora 2 Across Providers

ProviderInput (per 1M)Output (per 1M)
OpenAI API
Prodia

Pricing

TypePrice (per 1M)
Video input$0.10

Capabilities

Multimodal

About Sora 2

OpenAI's second-generation text-to-video model generating up to 20-second videos at 720p with synchronized audio from text and image prompts; deprecated with API shutdown September 24, 2026.

FAQ

What API model ID do I use for Sora 2 on OpenAI API?

Use the model ID sora-2 when calling OpenAI API's API.

Who created Sora 2?

Sora 2 was created by OpenAI as part of the Sora model family.

Is Sora 2 open source?

Sora 2's open source status is unknown in the seed data.

Get Started

Model Specs

Released2025-09-30
Architecturediffusion

Related Models on OpenAI API