Sample - OpenAI API
GET/videos/{video_id}Deprecated

Retrieve a video

Retrieves the latest metadata for a generated video. Use video_id to identify the video job and inspect its lifecycle status, progress, resolution, duration, and timestamps; this operation is deprecated.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
video_idstringrequired
The identifier of the video to retrieve.

1 status code
200Returns the video job with its identifier, model, lifecycle `status`, progress, creation and completion timestamps, expiration timestamp, prompt, resolution, duration, source video reference, and any error details.
idstringrequired
Unique identifier for the video job.
objectstringrequired
The object type, which is always `video`.
Allowed:videoDefault:video
modelstringrequired
The video generation model that produced the job.
statusstringrequired
Current lifecycle status of the video job.
Allowed:queuedin_progresscompletedfailed
progressintegerrequired
Approximate completion percentage for the generation task.
created_atintegerrequired
Unix timestamp (seconds) for when the job was created.
completed_atintegerrequired
Unix timestamp (seconds) for when the job completed, if finished.
expires_atintegerrequired
Unix timestamp (seconds) for when the downloadable assets expire, if set.
promptstringrequired
The prompt that was used to generate the video.
sizestringrequired
The resolution of the generated video.
Allowed:720x12801280x7201024x17921792x1024
secondsstringrequired
Duration of the generated clip in seconds. For extensions, this is the stitched total duration.
remixed_from_video_idstringrequired
Identifier of the source video if this video is a remix.
errorobjectrequired
Error payload that explains why generation failed, if applicable.

Error handling

video_id must identify the generated video whose metadata you want to retrieve. Provide the identifier as a string.