Skip to content
Docs menu

API reference

Errors

Errors use standard HTTP status codes with a JSON body of the shape { "error": string }.

StatusMeaning
400Invalid or missing parameters for the model.
401Missing or invalid API key.
402Insufficient credits — top up in Billing.
403Request IP not allowed for this key, or the account/model is unavailable.
429Rate limited — slow down and retry after the Retry-After header.
5xxUpstream or gateway error — a media task that produced no result is refunded.