Create Video
create_videoGenerate a video from a text prompt, returning a job ID for tracking. Poll the status until it shows completed, then retrieve the finished video.
Instructions
Start generating a video from a text prompt.
Returns immediately with a job_id; the video is not ready yet. Poll get_video_status with that job_id until the status is 'completed', then call get_video_result to retrieve the video.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the video to generate. | |
| duration | No | Length in seconds, from 1 to 60. | |
| aspect_ratio | No | One of '16:9', '9:16', '1:1', '4:3', '21:9'. | 16:9 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Identifier used to track this job. | |
| prompt | Yes | Prompt the job was created from. | |
| status | Yes | Current lifecycle state of the job. | |
| message | Yes | Human-readable summary of the job state. | |
| duration | Yes | Requested video length in seconds. | |
| progress | Yes | Completion percentage, 0-100. | |
| aspect_ratio | Yes | Requested aspect ratio. |