Use this endpoint to submit a new video generation task with OpenAI’s Sora model. You supply a prompt, choose your model variant, set the duration and aspect ratio, and optionally attach a reference image to guide the visual style. The API responds immediately with a taskDocumentation Index
Fetch the complete documentation index at: https://docs.xingchaoyiqing.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Model | Supported Durations | Notes |
|---|---|---|
openAiSora2Plus | 4 s · 8 s · 12 s | Enhanced version |
openAiSora2Pro | 4 s · 8 s · 12 s | Higher-quality generation |
Request Parameters
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
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"Video resolution. Use this or
aspect_ratio — not both.720x1280— portrait (default)1280x720— landscape
Video aspect ratio. Use this or
size — not both.16:9— landscape9:16— portrait
Video duration in seconds. Accepted values:
4, 8, 12.Use this or seconds — not both.Video duration in seconds. Accepted values:
4, 8, 12.Use this or duration — not both.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.
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
Unique identifier for the video generation task. Save this value — you will use it to poll the Query Video Task endpoint.
Object type. Always
"video.generation".Unix timestamp (seconds) of when the task was created.
The model name you specified in the request.
Initial task status. On successful creation this is always
"queued".Error message. Only present when
status is "failed".Code Examples
Parameter Mutual Exclusivity
| Group | Choose one |
|---|---|
| Resolution | size or aspect_ratio |
| Duration | duration or seconds |
| Reference image | input_reference or image_urls |