Skip to main content
Need 1080p output? Use the Sora 2 Pro Text-to-Video variant (openai/sora-2-pro-t2v). Pricing differs significantly.

Endpoint

Async — returns {id, status: "pending"}; poll GET /v1/videos/generations/{id} until success or failed.

Parameters

string
required
Text prompt describing the desired video. Sora 2 also synthesizes audio cues from the prompt — describing sound design (e.g. “ambient rain”) tends to produce richer results. Maximum 2000 characters — longer prompts are rejected with 400 invalid_request_error.
"4" | "8" | "12"
default:"\"4\""
Length of the generated clip in seconds. This is the only price lever — see pricing.

Example

Poll until terminal:
Try it live in the Sora 2 Playground.