Sora 2 text-to-video API reference and live playground — JSON request body, async three-step flow, flexible 4 / 8 / 12 second durations.
Bearer sk-xxx), enter a prompt, choose model / size / seconds, and send.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | — | sora-2 (720p only) or sora-2-pro (720p / 1024p / 1080p tiers) |
prompt | string | Yes | — | Video description; describe scene, camera motion, style, lighting in detail |
seconds | string | No | "4" | Duration as string enum: "4" / "8" / "12" (not a number) |
size | string | No | 720x1280 | Output resolution; must match the model’s supported tiers (see Tech Specs) |
seconds rate when the task completes (see pricing table). The POST submission, status polling, and content download themselves are not billed, and failed tasks are not billed.API Key from the APIYI console (must use Sora2官转 group + usage-based billing)
Model ID. sora-2 supports 720p only; sora-2-pro supports 720p / 1024p / 1080p tiers
sora-2, sora-2-pro Video generation prompt; describe scene, camera motion, style, lighting, and character actions in detail
"A serene Japanese garden with cherry blossoms, koi pond, traditional bridge, golden hour, ultra detailed"
Video duration as a string enum (not a number):
"4" — 4 seconds (default), ideal for short demos, single shots, fast prompt iteration"8" — 8 seconds, standard short-form video, most common"12" — 12 seconds, long shots and continuous actionPassing "10" / "15" or the integer 4 returns 400
4, 8, 12 Output resolution. sora-2 and sora-2-pro support different tiers:
sora-2 (720p only): 720x1280 (portrait, default) / 1280x720 (landscape)sora-2-pro additionally supports:
1024x1792 / 1792x1024 (1024p, $0.50/sec)1080x1920 / 1920x1080 (1080p, $0.70/sec)Passing 1024p / 1080p sizes to sora-2 returns 400
720x1280, 1280x720, 1024x1792, 1792x1024, 1080x1920, 1920x1080 Task submitted, returns video_id with queued status
Task ID for subsequent polling and download
"video_abc123def456"
Object type, fixed video
"video"
Model ID used for this task
"sora-2"
Task status:
queued — submitted, waiting in queuein_progress — generatingcompleted — done, ready to download (/v1/videos/{id}/content)failed — failed (not billed), safe to retryqueued, in_progress, completed, failed "queued"
Generation progress percentage (0–100), not strictly linear
0
Task creation Unix timestamp (seconds)
1712697600
Task completion Unix timestamp (seconds), present only on completed status
1712697900
Actual output resolution (matches the requested size)
"1280x720"
Actual duration generated (matches the requested seconds)
"8"
Quality tier (standard for sora-2, high for sora-2-pro)
"standard"