Sora 2 Video Generation

OpenAI Videos native protocol: submit tasks, poll status, and download videos

POST/v1/videos

The Sora series uses the OpenAI Videos API native protocol, transparently proxied by the platform. Available model names are determined by the response from List Models (for example, sora-2).

Authorizations

AuthorizationstringRequired

Bearer Token authentication. Get an API Key: visit the API Key Management Page

Authorization: Bearer YOUR_API_KEY

Submit a Generation Task

POST /v1/videos

The request body uses the native OpenAI Videos format (refer to the official OpenAI documentation for field definitions):

  • model (required): For example, sora-2
  • prompt (required): Video description
  • seconds (optional, string): Duration, such as "4" / "8" / "12"
  • size (optional): Resolution, such as "720x1280" / "1280x720"

Query Task Status

GET /v1/videos/{video_id}

Native OpenAI status values: queued / in_progress / completed / failed. Polling every 5–10 seconds is recommended until the task reaches a terminal state.

Download the Video

GET /v1/videos/{video_id}/content

After the task reaches completed, download the video file through the content endpoint (binary MP4, saved directly to disk).

Notes

  • Task queries and downloads must use the same API Key used when submitting the task; the task ID remains queryable for 7 days, after which a 404 task_not_found response is returned
  • To create a new video based on a completed video, see Remix
  • Refer to the official OpenAI Videos documentation for complete request and response field definitions; the platform does not modify any fields