API Reference
Base URL: https://bestvideoapi.com/v1 · Authentication: Authorization: Bearer <API_KEY>
1. Create Video Task — POST /v1/videos/generations
Pass an Idempotency-Key header to prevent duplicate charges on network retries.
{
"task_id": "vid_01j9k2x7p4m8n3q5",
"status": "queued",
"model": "wan-3.0-pro",
"created_at": "2026-12-02T05:00:00Z"
}2. Poll Task Status — GET /v1/tasks/:task_id
Terminal states are succeeded, failed, and canceled.
{
"task_id": "vid_01j9k2x7p4m8n3q5",
"status": "succeeded",
"output": {
"video_url": "https://cdn.bestvideoapi.com/outputs/vid_01j9k2x7p4m8n3q5.mp4",
"duration_seconds": 5,
"resolution": "1080p"
}
}3. Error Codes
| HTTP Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | Missing or invalid Bearer API key |
| 402 | insufficient_balance | Account balance below estimated task cost |
| 429 | rate_limited | Per-key concurrency or RPM quota reached |
| 502 | upstream_unavailable | Upstream model error; held balance automatically released |