Skip to main content
POST
Sora 2 — Text to Video
Generate videos from text descriptions with OpenAI’s Sora 2 model. Supports multiple duration options and aspect ratios.

Request Body

string
required
Model slug. Use openai/sora-2/text-to-video for text-to-video generation.
object
required
Input parameters for text-to-video generation.
string
HTTPS URL to receive a webhook notification when the job completes or fails.

Pricing

Base cost: 100,000 micro-cents per second ($0.10/sec)
Default cost: 4 seconds = 100,000 × 4 = 400,000 micro-cents ($0.40)

Response

string
Unique identifier for the submitted job.
string
Initial job status. Always "pending" on successful submission.
string
ISO 8601 timestamp of the estimated completion time.
number
The cost of the job in micro-cents.

Code Examples