Errors & limits
Consistent JSON error envelopes, per-key rate-limit headers, plan limits, and retention windows.
Error envelope
Every non-2xx response from /api/v1/* returns a consistent error object with an optional field pointer:
400 Bad Request
{ "error": { "code": "invalid_payload", "message": "Test keys are limited to 120 seconds per video (estimated 130s)", "field": "scenes" }}HTTP & render error codes
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_payload | Malformed JSON, invalid URL/field, or plan/test duration or resolution cap exceeded. |
| 401 | invalid_api_key | Missing, invalid, or revoked Bearer API key. |
| 402 | insufficient_credits | Account credit balance is lower than the render's estimated_seconds (live keys only). Renders stop cleanly at zero balance unless optional auto top-up is enabled in Billing. |
| 404 | not_found | Render ID does not exist or belongs to another account. |
| 409 | cannot_cancel | DELETE /renders/{id} called on a render that is no longer queued. |
| 413 | too_large | HTTP request body exceeds the 1 MB limit. |
| 422 | media_unreachable / media_invalid | Source image, clip, or audio URL could not be downloaded or decoded. |
| 429 | rate_limited | Exceeded 60 requests/min per API key or 20 test renders per UTC day. |
| 500 | internal | Unexpected server error. Safe to retry with Idempotency-Key. |
Asynchronous render failures surfaced in render.error.code and render.failed webhooks also include too_long (actual video exceeded 120 s on free/test) and worker_lost (worker stopped reporting progress after automatic re-queue; reserved credits released).
Rate limits & headers
All authenticated /api/v1/* endpoints allow 60 requests per minute per API key (GET /health is exempt). Every authenticated response includes:
- X-RateLimit-Limit: 60
- X-RateLimit-Remaining: remaining requests in the current 1-minute window
- X-RateLimit-Reset: Unix timestamp (seconds) when the window resets
- Retry-After: seconds to wait (present on 429 responses)
Plan, payload & retention limits
| Plan | Max resolution | Max video | Concurrency | Retention |
|---|---|---|---|---|
| Free | 720p (watermark) | 2 min | Up to 1 concurrent job | 7 days |
| Starter | 1080p | 120 min | Up to 1 concurrent job | 7 days |
| Pro | 1080p | 120 min | Up to 2 concurrent jobs | 30 days |
| Scale | 1080p | 120 min | Up to 4 concurrent jobs | 30 days |
- Maximum HTTP request body size: 1 MB
- Maximum
metadatasize: 4 KB UTF-8 JSON - Maximum scenes per render: 1,000; scene duration 0.5–600 s; subtitle 500 chars
- Rendered videos are stored in the EU (Amsterdam) in private object storage. After the retention window expires (7 days on Free/Starter, 30 days on Pro/Scale), finished MP4 files are deleted from storage;
GET /renders/{id}then returnsoutput_url: nullandoutput_expired: true. While within retention, each request returns a fresh presignedoutput_urlvalid for 1 hour.