Create a new video generation job from a prompt and optional reference assets.
Create a video
from openai import OpenAI
client = OpenAI()
video = client.videos.create(
prompt="A calico cat playing a piano on stage",
)
print(video.id)
{
"id": "video_123",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"size": "1024x1792",
"seconds": "8",
"prompt": "A calico cat playing a piano on stage",
"completed_at": null,
"expires_at": null,
"error": null,
"remixed_from_video_id": null
}
Returns Examples
{
"id": "video_123",
"object": "video",
"model": "sora-2",
"status": "queued",
"progress": 0,
"created_at": 1712697600,
"size": "1024x1792",
"seconds": "8",
"prompt": "A calico cat playing a piano on stage",
"completed_at": null,
"expires_at": null,
"error": null,
"remixed_from_video_id": null
}