Note:
Get API Key:
Visit API Key Management to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYVideo generation model name
"sora-2-preview"
Prompt describing the video to generate, max 5000 tokens
5000"A cat playing piano"
Video aspect ratio. 16:9 for landscape, 9:16 for portrait
16:9, 9:16 "16:9"
Video duration (seconds), default 4
Note:
4, 8, 12 seconds4
Reference image URLs for image-to-video
Note:
1["http://example.com/image1.jpg"]HTTPS callback URL for task completion
"https://your-domain.com/webhooks/video-task-completed"
Video generation task created successfully
Task creation timestamp
1757169743
Task ID
"task-unified-1757169743-7cvnl5zw"
Model name used
"sora-2-preview"
Task type
video.generation.task Task progress (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Output type
text, image, audio, video "video"