Skip to main content

Error responses

Errors use standard HTTP status codes with a detail field.

{ "detail": "Invalid API key" }
StatusMeaningWhat to check
400Bad input, such as no file or the wrong file type.The endpoint matches the file extension.
401X-API-Key missing or not recognised.The header name and the key.
403Key expired or inactive.Your plan's renewal date in the Dashboard.
422The JSON body failed validation.Field names and types.
429Token, request or credit limit reached.Usage on API Keys.
5xxA 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.