Docs/Errors
APIErrors
Every error code with its HTTP status, OpenAI and Anthropic error types, and whether to retry.
OpenAI style endpoints return {"error": {"message", "type", "code", "param", "request_id"}}. Anthropic endpoints return {"type": "error", "error": {"type", "message"}}. Upstream error bodies are never forwarded verbatim.
| HTTP | code | OpenAI type | Anthropic type | Retry | Meaning |
|---|---|---|---|---|---|
| 400 | invalid_request | invalid_request_error | invalid_request_error | no | The request body or parameters are invalid. |
| 400 | unsupported_parameter | invalid_request_error | invalid_request_error | no | A parameter that changes the meaning of the request is not supported by the selected model or provider. |
| 400 | context_length_exceeded | invalid_request_error | invalid_request_error | no | The request exceeds the model's context length. |
| 400 | content_policy | invalid_request_error | invalid_request_error | no | The upstream provider rejected the request under its content policy. |
| 401 | missing_api_key | authentication_error | authentication_error | no | No API key was provided in the `Authorization` or `x-api-key` header. |
| 401 | invalid_api_key | authentication_error | authentication_error | no | The API key is malformed, disabled, expired or does not exist. |
| 402 | insufficient_balance | insufficient_quota | billing_error | no | Your Utopixel balance is too low for this request. Add credits at https://utopixel.online/dashboard and retry. |
| 403 | model_not_allowed | permission_error | permission_error | no | The model is not in this API key's allow list. |
| 403 | key_limit_exceeded | insufficient_quota | billing_error | no | The API key's spending limit has been reached. |
| 403 | customer_limit_exceeded | insufficient_quota | billing_error | no | The customer's spending limit has been reached. |
| 403 | customer_disabled | permission_error | permission_error | no | The customer named in `X-Utopixel-Customer` is disabled. |
| 403 | provisioning_key_not_allowed | permission_error | permission_error | no | Provisioning keys cannot call inference endpoints. |
| 404 | model_not_found | invalid_request_error | not_found_error | no | The model does not exist or is not listed. |
| 404 | customer_not_found | invalid_request_error | not_found_error | no | The customer does not exist and automatic creation is disabled for this account. |
| 408 | upstream_timeout | timeout | api_error | yes | The upstream provider did not respond in time. |
| 409 | request_in_progress | conflict | invalid_request_error | yes | A request with the same idempotency key is still being processed. |
| 409 | idempotent_replay_unavailable | conflict | invalid_request_error | no | The streamed request already completed; query `/generation` for its result. |
| 422 | idempotency_key_reused | invalid_request_error | invalid_request_error | no | The idempotency key was already used with a different request body. |
| 429 | rate_limited | rate_limit_exceeded | rate_limit_error | yes | The request exceeded this key, account or customer rate limit. |
| 429 | upstream_rate_limited | rate_limit_exceeded | rate_limit_error | yes | All candidate providers are rate limiting this request. |
| 500 | internal_error | server_error | api_error | yes | An internal gateway error, including protocol conversion failures. |
| 502 | upstream_error | server_error | api_error | yes | The upstream provider returned an error. |
| 503 | no_available_provider | server_error | overloaded_error | yes | No provider is currently available for this model. |