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_KEYSubmit a Generation Task
POST /v1/videosThe request body uses the native OpenAI Videos format (refer to the official OpenAI documentation for field definitions):
model(required): For example,sora-2prompt(required): Video descriptionseconds(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}/contentAfter 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_foundresponse 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
