Skip to content

Errors & limits

Errors follow the OpenAI shape {"error": {"message", "type"}}.

Status codes

StatusMeaning
400Invalid request — check parameters.
401Invalid or revoked API key.
402Insufficient balance — top up to continue.
404Unknown model or task id.
429Rate limited — retry with backoff.
500 / 503Upstream issue — retry; failed requests are not billed.

Failed request billing

Failed requests are never billed — you are only charged for successful generations. If you believe you were charged in error, contact support with the request id from your usage log.