Docs · Docs

Errors

All v1 routes use a single error object.

{
  "error": {
    "message": "Insufficient credits.",
    "type": "insufficient_quota",
    "code": "insufficient_quota"
  }
}

HTTPMeaning
401Missing or invalid API key
402Insufficient credits for the call
404Unknown model id
429Per-key rate limit (Retry-After header)
503Model temporarily unavailable