HTTP Status Codes
| Status Code | Description |
|---|
| 200 | Success |
| 400 | Invalid request parameters |
| 401 | Authentication failed — invalid API Key |
| 403 | Insufficient permissions |
| 404 | Model not found |
| 429 | Rate limit exceeded (200 RPM) |
| 500 | Internal server error |
| 503 | Service unavailable |
Error Response Format
{
"error": {
"type": "invalid_request_error",
"message": "model is required"
}
}
Common Errors
- authentication_error: Invalid or expired API Key
- model_not_found: Model not found
- rate_limit_exceeded: Rate limit exceeded — wait and retry on 429
- context_length_exceeded: Exceeded model's context window