Error Handling
Understand gateway status codes and the first checks for each error.
| Status | Meaning | What to check |
|---|---|---|
| 400 | Malformed request or context too long | Request body and model alias |
| 401 | Missing or invalid API key | Authorization header |
| 403 | Request not permitted for this account | Account status; contact support if it persists |
| 404 | Model not available for your account or plan | Public alias on the Models page |
| 429 | Quota or rate limit exceeded | Check usage; retry after a short wait |
| 5xx | Gateway or upstream error | Retry; contact support if it persists |