Get started
Rate limits
| Limit | Value |
|---|---|
| Requests | 120 per minute per key |
| Orders | 10 per minute per account |
| Request body | 300 KB |
| Active keys | 5 per account |
Going over a limit returns 429 rate_limited. Wait a few seconds and retry with backoff.
Polling
A video takes minutes, not seconds. Poll GET /videos/{id} about once a minute and generations every few seconds. Polling faster does not make anything finish sooner and uses up your request limit.
Retries
Retry 429, 500 and 503 with backoff. When you retry an order, send the same Idempotency-Key so the retry can never create a second video.