create_video
Start a video generation job by sending a text prompt, returning a job object you can poll or monitor via webhooks to track completion.
Instructions
Start a new video generation job with Sora. Returns a job object with status. Poll get_video_status or use webhooks to monitor completion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Video resolution (width x height) | 1280x720 |
| model | No | Model to use. 'sora-2' is faster for iteration; 'sora-2-pro' is higher quality for production. | sora-2 |
| prompt | Yes | Text description of the video to generate. Be specific about shot type, subject, action, setting, and lighting for best results. | |
| seconds | No | Video duration in seconds | 8 |
| input_reference | No | Optional: Base64-encoded image to use as the first frame (JPEG, PNG, or WebP). Must match target video resolution. |