Pricing
Video generation costs $0.05 per second of generated video. Tip Check your balance before generating videos to ensure you have sufficient credits.Text-to-Video
Endpoint
Authentication
Request body
| 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) |
Response
200 OK
Code examples
Image-to-Video
Endpoint
Authentication
Request body (multipart form)
| 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 |
Response
200 OK
Code examples
Status Checking
Endpoint
Authentication
Status responses
Pending
Processing
Completed
Failed
Errors
| 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 |