A clear path from error to answer.
Inspect the HTTP status and structured error body. Include the request’s trace ID when you contact support. Do not include the API secret.
| Status | What to check |
|---|---|
| 400 | Request body, model ID, or unsupported parameters. |
| 401 / 403 | Missing, revoked, or unauthorized credentials. |
| 402 | Insufficient available credit or a spending cap. |
| 429 | Rate or token-per-minute limits. Back off before retrying. |
| 502 / 503 / 504 | Upstream availability, configuration, or timeouts. |
Avoid blind retries
Retrying a request that already generated a response can duplicate work. Use a bounded backoff strategy for temporary failures and retain your trace identifiers.
Open a support ticket