Generate video
generate_videoCreate videos from text prompts or animate still images. Submit your request and track progress via job ID until the video is ready.
Instructions
Start generating a video from a text prompt (optionally animating a source image). Asynchronous: returns a job id immediately; poll get_job until status is 'completed'. Video costs more than images (tens of cents to a few dollars depending on tier). Failed generations are never billed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What to generate, in plain language | |
| image_url | No | If set, animates this image instead of pure text-to-video | |
| duration_s | No | Requested duration in seconds | |
| preference | No | balanced | |
| aspect_ratio | No | 16:9 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| meta | No | ||
| error | No | ||
| images | No | ||
| status | No | ||
| videos | No |