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 StatusCodeMeaning
401unauthorizedMissing or invalid Bearer API key
402insufficient_balanceAccount balance below estimated task cost
429rate_limitedPer-key concurrency or RPM quota reached
502upstream_unavailableUpstream model error; held balance automatically released