Errors

Error shape

Responses use OpenAI-shaped JSON:

{
  "error": {
    "message": "…",
    "type": "invalid_request_error",
    "code": "insufficient_credits"
  }
}
  • invalid_api_key — missing or revoked key
  • insufficient_credits — top up or configure BYOK
  • rate_limit_exceeded — back off and retry