Skip to content
GPT-6.1 Sol & Luna, Claude Opus 5.5, Sonnet 5.5, Haiku 5.5, and Gemini 4 Argon are now available

Guides

Errors

Error handling and status code reference.

Errors are returned as JSON in the same shape as OpenAI: { "error": { "message": "...", "type": "..." } }.

StatusCauseFix
400Invalid request bodyCheck your JSON and required fields
401Bad or missing API keyVerify the Authorization header
402Insufficient balanceTop up on the Billing page
404Model not foundUse an id from /v1/models
429Rate limitRetry with backoff
5xxUpstream failureRetry or switch models
error.json
{
"error": {
"message": "Invalid API key provided",
"type": "invalid_request_error"
}
}