API Error Reference
All API errors follow a consistent JSON format:Error Types
| HTTP Code | Error Type | Description |
|---|---|---|
| 400 | invalid_request_error | Request body or parameters are malformed |
| 401 | authentication_error | API key is missing, invalid, or expired |
| 402 | insufficient_balance | Account balance is insufficient |
| 403 | permission_error | Account lacks access rights to the resource |
| 404 | not_found_error | Model or resource does not exist |
| 405 | invalid_request_error | Wrong HTTP method |
| 429 | rate_limit_error | Too many requests, please retry later |
| 500+ | api_error | An error occurred while processing your request |
| 529 | overloaded_error | Service is temporarily overloaded, please retry later |