ApiX Docs
Docs / Errors
·View as Markdown

Errors

OpenAI-style envelope, used by chat, responses, images, audio and video:

json
{
  "error": {
    "message": "The requested model does not exist.",
    "type": "invalid_request_error",
    "code": "MODEL_NOT_FOUND"
  }
}

Anthropic-style envelope for /v1/messages:

json
{"type": "error", "error": {"type": "invalid_request_error", "message": "..."}}
CodeHTTPMeaning
INVALID_ACCESS_KEY401missing or unknown key
TOO_MANY_FAILED_ATTEMPTS429too many bad keys from this IP
MISSING_MODEL400no model in the body
MODEL_NOT_FOUND404id or alias not in the catalog
MODEL_NOT_ALLOWED403model not allowed for this key
CONTEXT_TOO_LARGE400prompt longer than the model context
MAX_TOKENS_EXCEEDED400max_tokens over the key limit
MEDIA_BYTES_EXCEEDED400attachment over the byte limit
MEDIA_UNITS_EXCEEDED400too many media pieces in one request
VIDEO_SECONDS_EXCEEDED400requested video too long
RATE_LIMIT_REACHED429daily requests used up
RATE_LIMIT_WOULD_EXCEED429this request would pass the daily limit
PROVIDER_NOT_CONFIGURED500provider misconfigured
PROVIDER_SATURATED429concurrency cap reached
PROVIDER_QUOTA_EXHAUSTED429upstream quota exhausted
PROVIDER_TEMPORARILY_UNAVAILABLE429 / 503upstream rate limit or transient error
PROVIDER_NOT_RESPONDING503timeout

Upstream messages are passed through after removing credentials and internal names, so you see the real reason instead of a generic failure.