Error responses
Errors use standard HTTP status codes with a detail field.
{ "detail": "Invalid API key" }
| Status | Meaning | What to check |
|---|---|---|
400 | Bad input, such as no file or the wrong file type. | The endpoint matches the file extension. |
401 | X-API-Key missing or not recognised. | The header name and the key. |
403 | Key expired or inactive. | Your plan's renewal date in the Dashboard. |
422 | The JSON body failed validation. | Field names and types. |
429 | Token, request or credit limit reached. | Usage on API Keys. |
5xx | A temporary service problem. | Retry with backoff. |
For limit errors, detail is an object with a code such as request_limit_reached
or not_enough_credits, plus your current limit and usage.
The SDKs retry 5xx and network errors twice by default.
See Not enough credits and
Request limit reached.