Retrieve a video
client.videos.retrieve(stringvideoID, RequestOptionsoptions?): Video { id, completed_at, created_at, 10 more }
GET/videos/{video_id}
Retrieve a video
import OpenAI from 'openai';
const client = new OpenAI();
const video = await client.videos.retrieve('video_123');
console.log(video.id);
{
"id": "video_123",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"completed_at": null,
"error": null,
"expires_at": null,
"prompt": "A calico cat playing a piano on stage",
"remixed_from_video_id": null,
"size": "720x1280",
"seconds": "4"
}
Returns Examples
{
"id": "video_123",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"completed_at": null,
"error": null,
"expires_at": null,
"prompt": "A calico cat playing a piano on stage",
"remixed_from_video_id": null,
"size": "720x1280",
"seconds": "4"
}