HTTP Status Codes
| Status Code | Description |
|---|---|
| 200 | Request successful |
| 400 | Invalid request parameters |
| 401 | Authentication failed - API Key is invalid or missing |
| 403 | Insufficient permissions - Token does not have access to this model |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
| 502 | Upstream service unavailable |
| 503 | Service temporarily unavailable |
Error Response Format
Common Errors
401 - Authentication Failed
sk-.
429 - Rate Limited
403 - Insufficient Balance
Retry Recommendations
- For 429 errors, use exponential backoff retry
- For 500/502/503 errors, wait a few seconds before retrying
- For 400/401/403 errors, check your request parameters and authentication credentials