Unaligned API

Errors

Standard HTTP status codes, with a short machine-readable code.

{
  "error": {
    "code": "insufficient_balance",
    "message": "Your balance is too low for this request."
  }
}
StatuscodeWhat to do
400invalid_requestFix the request. The message says which field.
401invalid_keyCheck the key; it may have been revoked.
402insufficient_balanceAdd credit, then retry.
404unknown_modelCheck the ID in Models.
429too_many_requestsWait Retry-After seconds, then retry.
500 / 503server_error, overloadedRetry with exponential backoff.

The OpenAI and Anthropic formats use the same status codes, with an error body in their own shape.

Limits

  • Each account can run 4 requests at once and start 40 a minute, all keys together. Going over either returns a 429 with a Retry-After header.
  • A request must fit in the model’s context window: input plus max_tokens.
  • There is no daily or monthly cap other than your balance.