Headers
Every authenticated response includes:
When the limit is exceeded, the API returns HTTP 429 with a
Retry-After header (seconds until the window resets):
Handling 429s
- Respect
Retry-Afterbefore retrying; the window is fixed, so retrying earlier will fail again. - Job creation is safe to retry with the same
Idempotency-Key; you won’t create duplicates. - When polling jobs, prefer intervals of a few seconds (or webhooks) over tight loops.
INSUFFICIENT_CREDITS also returns HTTP 429 but is not a rate limit; it means your monthly credit allowance is exhausted. Always branch on error.code.