IN ENGLISH · API DOCS

API reliability: what happens when a vendor fails

A request goes first to our own account with the model's vendor, where we have one. When that account gives no answer, or an error that says the account or the vendor's service is unwell, and the model has a fallback route, the same request goes to that route before anything has reached you, at the same price. A route that fails 3 times in a row is set aside for at least 5 minutes, so that requests do not wait on it. A retired model id goes to its successor, a parameter a stricter model refuses is repaired, and a request that fails in the end is not billed.

Last updated:

[01]RELIABILITY

The order of routes

A model's routes are our own account with its vendor, where we have one, and one or more routes that reach the same model through an API reseller (the one the privacy policy describes). Some models have one route, others several. For a model whose vendor we hold an account with, that account always comes first, and a fallback route is asked only when that account fails. Today that is the case for OpenAI and DeepSeek models: our own key with the maker comes first, and only when that key fails (an outage, an error, or our credit with the maker running out) does the same request reach the maker through the reseller; Claude and Gemini models have no reseller route. This holds on chat completions (POST /v1/chat/completions), Responses (POST /v1/responses) and the image routes (/v1/images/*).

What moves a request to the next route

  • No answer comes, the connection breaks, or the answer does not start in time (the table below).
  • Our account is refused or limited, or the vendor's service is unwell: 401, 402, 403, 408, 429 or any 5xx.
  • The vendor says it does not serve this model to our account: a 404, or a message that means unknown model.
  • An answer with status 200 that carries an error inside it, or is not valid JSON.

Any other answer of our account is returned to you as the vendor gave it: a success, or a refusal of the request itself (such as 400 for a malformed body, 413 or 422), which another route would refuse the same way. A fallback route that is not the last passes the request on after any error; the last route's answer is returned as it is, error included.

How long a route has before the next one is asked
RouteStreamedNot streamed
Our own account with the vendorStreamed:60 seconds to the first eventNot streamed:No wait of its own: a slow answer is still the answer, within the gateway's deadline (10 minutes)
A fallback route that is not the lastStreamed:30 seconds to the first event; 12 seconds for a small, fast modelNot streamed:150 seconds to the complete answer
The last routeStreamed:There is no next route; within the gateway's deadline (10 minutes)Not streamed:There is no next route; within the gateway's deadline (10 minutes)

A non-streamed answer is held back until it is complete, and a streamed one until its first event, so the switch happens before anything has reached you. Once a stream's first event has been sent to you, the stream stays on that route. The answer has the same shape whichever route gave it, and it is billed at that model's price on our price list: the route does not change the price.

Not every model has a fallback route. A model with one route answers with that route's error when it fails.

[02]RELIABILITY

Setting a failing route aside

Each route keeps its own count of failures. After 3 failures in a row it is set aside for 5 minutes, and meanwhile requests go straight to the next route without waiting on it. When the time is up, one request tries it; if that try fails, the same request still goes on to the next route. One success puts the route back in use, and each failed try doubles the time it is set aside, up to 60 minutes. 3 streams in a row that break after their first event set it aside the same way.

On the native /anthropic and /gemini routes, when the vendor answers 429, 503 or 529 and nothing has been sent to you yet, the gateway tries up to 3 times (rate limits).

[03]RELIABILITY

Retired model ids

An id its vendor retired that has a direct successor is sent to the successor; the response carries an X-1xai-Model-Alias header, and the call is billed at the successor's price. An id with no successor defined answers 410 with code model_retired. Both lists are on Deprecations.

[04]RELIABILITY

Parameters a stricter model refuses

Some SDKs send the same parameters to every model, and a stricter model answers 400 to a field another model accepts. In these cases the gateway repairs the copy it sends the vendor instead of passing the refusal on; a body none of them applies to is sent as it came:

  • OpenAI reasoning models that take the sampling parameters only at their defaults: temperature, top_p, presence_penalty and frequency_penalty are removed, unless the reasoning effort is none.
  • OpenAI models on chat/completions: max_tokens becomes max_completion_tokens, and on a reasoning model a cap above the model's output limit is lowered to that limit.
  • DeepSeek models: response_format json_schema becomes json_object, the developer role becomes system, and a tool message that answers no earlier tool call is dropped.

The bill follows the usage the vendor reports for the repaired request. Every change the gateway makes is listed under OpenAI-compatible endpoints.

[05]RELIABILITY

A failed request is not billed

  • A request that ends in an error (a 4xx or 5xx status) is not billed (billing).
  • When one route fails and another answers, you pay once, for the answer you got; the failed attempt costs you nothing.
  • Such a request is not counted as a failure: the status page and the service credit rate count only the answer that reached you.
[06]RELIABILITY

The measured numbers

  • The status page: each vendor's success rate, measured on real traffic at the gateway, with the daily raw data as JSON and CSV.
  • The benchmark: time to first byte, total response time and tokens per second, and a script that measures the same with your own key from your own network.
  • The service credit page: the success rate we commit to, and the credit paid to your wallet when a month falls short (service credit).
[07]RELIABILITY

One incident: our OpenAI account was deactivated

On 11 November 2026 at 21:19 UTC, OpenAI deactivated the account our direct OpenAI key belonged to. OpenAI models had no automatic fallback route then, so requests to OpenAI models failed for about 14.5 hours. Most of those models answered again first through a fallback route set up by hand, and the rest later the same day, when a new direct key with OpenAI went live.

Since 15 November 2026 the switch is automatic: our key is asked first and, when it is refused as it was that night (401 or 403), the same request goes to the same model's fallback route; after 3 failures in a row the key is set aside so that requests do not wait on it. Models with no fallback route, among them embeddings, audio and realtime voice, would still fail in such an event. None of the requests that failed in those hours was billed.

1xAi is an independent gateway. It is not affiliated with, endorsed by, or a reseller for OpenAI, Anthropic, Google, DeepSeek, xAI, Moonshot AI, Z.ai, Alibaba Qwen, MiniMax or Tencent Hunyuan. Requests are relayed upstream rather than answered by models of our own, so each provider's own usage policies apply to what their models will and will not do, and their model availability is theirs to change. Current reachability is published on the status page.