generate_video
Generate a video from a text prompt or a start image URL. Returns request ID and cost instantly; video renders in 1-10 minutes.
Instructions
Start a video generation from a text prompt (text-to-video) or from a start image (image-to-video, pass image_url). Returns request_id and cost in credits immediately — video renders take 1–10 minutes, poll with wait_generation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Fixes randomness. Video renders one clip per call (no batch) — for multiple distinct variants run separate calls with a different seed each; identical calls within ~20s are de-duplicated to one generation. | |
| input | No | Advanced model-specific parameters (see get_model input_schema). Merged with the fields above. | |
| model | No | Model slug from list_models. Omit to use the default video model (text-to-video or image-to-video is picked automatically based on image_url). | |
| prompt | Yes | Scene description. English recommended for best quality. Do not include on-screen text. | |
| duration | No | Clip length in seconds (model-dependent, typically 5–10). | |
| image_url | No | Public https URL of the start frame — switches to image-to-video. | |
| resolution | No | e.g. '480p', '720p', '1080p' where supported. | |
| aspect_ratio | No | e.g. '16:9', '9:16', '1:1'. | |
| wait_seconds | No | Optional inline wait before returning. | |
| generate_audio | No | Generate a soundtrack/ambient audio where supported. | |
| idempotency_key | No | Optional stable key to safely retry without creating (and paying for) a duplicate generation. Reuse the same key when retrying the same request. |