create_video
Generate videos from text prompts using Sora. Starts an asynchronous job, returns an ID to check status and download the result when ready.
Instructions
Create a new video generation job using OpenAI's Sora model. Returns a job ID that can be used to check status and download the video when complete. Video generation is asynchronous and may take several minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Resolution of the output video. Default is 1280x720. | 1280x720 |
| model | No | Model to use. 'sora-2' is faster and good for iteration. 'sora-2-pro' produces higher quality but takes longer. | sora-2 |
| prompt | Yes | Text description of the video to generate. For best results, describe shot type, subject, action, setting, and lighting. Example: 'Wide shot of a child flying a red kite in a grassy park, golden hour sunlight, camera slowly pans upward.' | |
| seconds | No | Duration of the video in seconds. Default is 4. |