Generate a video
generate_videoStart a video generation from a text prompt (optionally with a start image). Returns immediately with a request_id and the cost in credits: poll get_generation_status every 30 seconds until it completes (typically 1 to 5 minutes, up to 30 for long jobs). Failures are refunded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | No | Generate audio, for models that support it. | |
| model | No | Model key from list_models (kind video). Default: seedance-2. | |
| prompt | Yes | What to generate, in natural language. English works best. | |
| duration | No | Duration in seconds, among the model's durations (see list_models). | |
| image_url | No | Optional start image URL (image-to-video). Must be media hosted on the Imaginode account (Firebase Storage URL from the media library or a previous generation). | |
| resolution | No | Resolution among the model's resolutions (see list_models). | |
| aspect_ratio | No | Aspect ratio like 16:9 or 9:16 (text-to-video only). |