API reference
Errors
Errors use standard HTTP status codes with a JSON body of the shape { "error": string }.
| Status | Meaning |
|---|---|
| 400 | Invalid or missing parameters for the model. |
| 401 | Missing or invalid API key. |
| 402 | Insufficient credits — top up in Billing. |
| 403 | Request IP not allowed for this key, or the account/model is unavailable. |
| 429 | Rate limited — slow down and retry after the Retry-After header. |
| 5xx | Upstream or gateway error — a media task that produced no result is refunded. |