Reference · 07
Errors
Error codes returned by the API and how to handle them.
| Status | Meaning | Handling |
|---|---|---|
| 400 | Invalid request | Validate parameters and model identifier |
| 401 | Invalid credentials | Check the API key and Authorization header |
| 403 | Model not permitted | Request model access for the key |
| 404 | Unknown model | List models to confirm availability |
| 429 | Rate or budget limit reached | Back off and retry with jitter |
| 5xx | Upstream or gateway error | Retry idempotent requests, then fail over |
