Skip to main content
After you create a Sora video generation task, use this endpoint to check its status and retrieve the download URL once generation is complete. Pass the id returned by the Create Video Task endpoint as the path parameter, and keep polling until status is "completed" or "failed".
Video generation is asynchronous and typically takes several minutes. Do not expect an immediate result — continue polling at the recommended interval until the task reaches a terminal status.

Endpoint

All requests must include your API key as a Bearer token:

Path Parameters

string
required
The unique task identifier returned by the Create Video Task endpoint (e.g. sora_abc123def456).

Response Fields

string
Unique identifier of the video generation task.
string
Object type. Always "video.generation".
integer
Unix timestamp (seconds) of when the task was created.
string
The model used for generation (e.g. "openAiSora2Plus").
string
Current task status:
  • queued — task is in the queue, waiting to be processed
  • processing — the Sora model is actively generating the video
  • completed — generation succeeded; video_url is populated
  • failed — generation failed; see error for details
string
A direct download URL for the generated video (MP4 format). Only present when status is "completed". The URL is valid for 1 day — download and store the video before it expires.
number
The actual output duration of the video in seconds. Only present when status is "completed".
string
Error message describing why the task failed. Only present when status is "failed".

Status Flow

Polling Recommendations

Poll every 30–60 seconds. Video generation takes significantly longer than image generation — polling too frequently wastes quota and may trigger rate limits.
  • Stop polling as soon as status is "completed" or "failed".
  • Use exponential back-off if you encounter 429 Too Many Requests responses.

Generation Time Estimates

Video URL Notes

The video_url is only valid for 1 day after the task completes. Download and save the file to your own storage system promptly — after expiry you will not be able to retrieve the video.
  • Format: MP4
  • The URL is a pre-signed temporary link; do not share it publicly as a permanent link.

Code Examples

Example response — processing:
Example response — completed: