id — you then poll the Query Video Task endpoint until the video is ready.
Video generation is asynchronous. The create endpoint returns a task
id with status: "queued". Use the Query Video Task endpoint to check progress and retrieve the final video_url.Base URL & Endpoint
Supported Models
Request Parameters
string
required
The Sora model to use. Accepted values:
openAiSora2Plus— enhanced model, supports 4, 8, 12-second videosopenAiSora2Pro— higher-quality model, supports 4, 8, 12-second videos
string
required
A text description of the video you want to generate. Be specific about the scene, style, motion, and lighting.Example:
"A cat dancing in the rain, cinematic style"string
Video resolution. Use this or
aspect_ratio — not both.720x1280— portrait (default)1280x720— landscape
string
Video aspect ratio. Use this or
size — not both.16:9— landscape9:16— portrait
integer
Video duration in seconds. Accepted values:
4, 8, 12.Use this or seconds — not both.integer
Video duration in seconds. Accepted values:
4, 8, 12.Use this or duration — not both.array
An array of reference image URLs to guide video style and content. Maximum 1 image.Use this or
image_urls — not both.Constraints:- Do not use real portrait photographs — these will likely cause generation failures.
- Image dimensions must match the chosen ratio:
1280×720for 16:9, or720×1280for 9:16.
array
An array of reference image URLs to guide video style and content. Maximum 1 image.Use this or
input_reference — not both.Constraints:- Do not use real portrait photographs — these will likely cause generation failures.
- Image dimensions must match the chosen ratio:
1280×720for 16:9, or720×1280for 9:16.
Response Fields
string
Unique identifier for the video generation task. Save this value — you will use it to poll the Query Video Task endpoint.
string
Object type. Always
"video.generation".integer
Unix timestamp (seconds) of when the task was created.
string
The model name you specified in the request.
string
Initial task status. On successful creation this is always
"queued".string
Error message. Only present when
status is "failed".