Generate videos from text or images. Text-to-Video and Image-to-Video endpoints with examples.
Parameter | Type | Description | Default |
---|---|---|---|
prompt | string | Text description of the video to generate | Required |
duration_seconds | integer | Video duration in seconds (1–10) | 5 |
aspect_ratio | string | One of “16:9”, “9:16”, “1:1" | "16:9” |
seed | integer | Random seed for reproducible results | -1 (random) |
Parameter | Type | Description | Default |
---|---|---|---|
image | file | Input image (JPEG/PNG) | Required |
prompt | string | Text describing motion | Required |
duration_seconds | integer | Video duration in seconds (1–10) | 5 |
Status | Meaning | Action |
---|---|---|
401 | Invalid API key | Verify Authorization header |
402 | Insufficient balance | Add credits |
413 | File too large | Reduce image file size |
429 | Rate limit exceeded | Backoff and retry |
500 | Server error | Retry with backoff |