Get started

Rate limits

LimitValue
Requests120 per minute per key
Orders10 per minute per account
Request body300 KB
Active keys5 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.