Skip to content

Routing and reliabilityChecklist

LLM failover checklist: what to verify before the first outage

A fallback chain that has never carried real traffic is a guess. This checklist turns LLM failover into pass/fail checks you can run before launch: quota, separation, compatibility, budget caps and alerting.

By INFRO Editorial

Published

9 min read

Luminous routing paths connecting one application node to many AI model endpoints

In short

LLM failover is ready when five things pass: the fallback has quota for the whole load, it fails independently of the primary, it accepts your prompts and schemas, its spend is capped, and a failover pages a person. Run each as a test, not a review of config.

Key takeaways

  • A fallback is only as good as its quota: size it for 100% of primary traffic, not for the trickle it sees today.
  • Two keys or two regions only count as separate if the provider's quota and failure scope are actually separate; Azure Global Standard, for one, pools quota across regions in a subscription.
  • Failover moves a request before the first token; a stream that dies halfway is your client's problem, so test it.
  • A fallback model can break schemas, tool calls and context limits quietly, so replay real prompts against it before launch.
  • Your own budget refusals do not fail over, so a cap set for the primary's price can turn an outage into a second outage.
  • The last check is human: force a failover and confirm a named person gets the alert.

How to use this list

Most failover setups are verified by reading the config: a primary, a fallback, a retry count. That proves the chain exists, not that it works. Every check below is written as a pass/fail test you can run in a staging environment, with the evidence to keep.

Two terms. Connection failover tries the same model on another of your accounts or hosts. Model fallback tries a different model from an ordered list. INFRO documents both, and both act only before the first token of the response.1 OpenRouter's models parameter is the equivalent cross-model mechanism, and by default any error can trigger the next model.2 The checks apply to either.

1. Fallback quota headroom

A fallback receives your whole load at the worst moment, usually just after the primary's other customers have also moved. If its quota is sized for a trickle, the failover turns one outage into a 429 storm.

Your provider accounts keep their own model, token and request quotas, and a gateway does not add a shared pool of capacity.3 So the headroom has to exist on the account you named as fallback.

  • Peak tokens per minute and requests per minute of the primary path are measured from the last 30 days, not estimated.
  • The fallback's quota for that exact model and deployment type is at least that peak, with margin.
  • The quota is read from the provider's console or API today, not from a page written last quarter.
  • Any pending quota request has a decision, not a promise. Azure, for example, reviews quota requests and approval is not guaranteed.4
  • Automatic quota-tier changes are understood. Azure raises tiers with usage and lets you opt out of auto-upgrades, which matters if you manage spend through quota.4

If full headroom is too expensive to hold, decide which traffic survives and encode it. Routing rules can send requests to different targets by metadata, feature, prompt size, streaming or time of day.5 The related post on which requests should survive a quota shortage covers that choice.

2. Key and region separation

Failover only helps if the fallback does not fail for the same reason as the primary. Check what is actually shared.

Looks separateCan still shareHow to test
Two deployments in two Azure regionsOne quota pool. Global Standard deployments of the same model and version share a pool across all regions in a subscription.4Load the primary to its limit, then send fallback traffic and watch for 429
Two keys on one provider accountAccount-level limits and the same billing relationshipCheck whether the 429 text names the account or the key
Two API hosts for one keyThe key's rate limitBlock the first host in staging and confirm the second serves
Two models from one vendorThe vendor's outage, if the whole API is downFail the vendor entirely, not one model

Azure's Data Zone Standard pools quota per data zone, such as US or EU, instead.4 So a "second region" inside one subscription may give you latency diversity and no quota diversity.

  • The chain contains at least one target on a different provider account, or a different vendor, from the primary.
  • Each target's credential is distinct and stored once, and the fallback key is not also the primary's key in another project.
  • Standby keys exist for each provider and are tried only on failure. INFRO documents that standby keys, keys that just answered 429 and keys that cannot serve the model are tried last.1
  • Environments are separated: a staging key must not reach production connections. INFRO gateway keys each belong to exactly one environment.

If data location is a constraint, a fallback in another region may be out of bounds. Treat residency as a filter on the chain, and verify it per target rather than assuming it.

3. Prompt and schema compatibility

The most common failover surprise is a fallback that is up but rejects or mangles the request. Providers differ on optional parameters. INFRO's docs say a 400 or 422 from a provider before the first token also moves to the next connection for that reason,1 so a parameter the fallback refuses is silently skipped to the next target, and when none accepts it, the user sees the error.

OpenRouter exposes the same concern as require_parameters, which restricts routing to providers that support every parameter in the request, and its model fallbacks can trigger on context-length errors.62

Replay a sample of real production requests against each fallback and check these:

  • Context window. The longest prompt in the sample fits the fallback's window plus max_tokens.
  • Structured output. Responses parse against your JSON schema at a rate you accept. Count parse failures per target.
  • Tool calling. Tool definitions are accepted and the arguments validate against your function schemas.
  • Streaming. The stream format your client expects is unchanged.
  • System prompt behaviour. Instructions that depend on one model's habits still hold.
  • Retired models. No target is a model with a shutdown date inside your launch quarter.
replay_check.py
import json
from openai import OpenAI

client = OpenAI(base_url="https://api.infro.io/v1", api_key="INFRO_STAGING_KEY")

def parses(text: str) -> bool:
    try:
        obj = json.loads(text)
        return isinstance(obj.get("category"), str)
    except (ValueError, AttributeError):
        return False

failures = 0
for case in json.load(open("sampled_requests.json")):
    r = client.chat.completions.create(
        model="fallback-model-id",   # the fallback itself, called directly
        messages=case["messages"],
        response_format={"type": "json_object"},
    )
    failures += not parses(r.choices[0].message.content)

print("schema failures:", failures)

Call the fallback directly in this test. Testing it only through the chain tells you the primary answered. Quality equivalence is a separate question, covered in testing fallback equivalence.

4. Budget caps on the fallback path

Failover changes what a request costs. The fallback may have a higher per-token rate, and a model that was not warm may lose prompt-cache hits. The post on what failover does to your bill covers the mechanics. Here the question is whether your caps still behave.

One detail matters. INFRO's own refusals, including a 402 for a budget, are decided before any provider is called and return immediately without failover.1 A cap that is too tight for the fallback's price does not route around itself; it refuses requests. Caps exist per organization, project, member and key.

  • Estimate the cost of one hour of full-load traffic on the fallback, using your negotiated rates where you have them, and compare it with the tightest cap on the path.
  • The cap on the key serving production leaves room for that hour. If it does not, you know which side you are choosing: refusals or spend.
  • The behaviour on a 402 is tested in your client: it shows a message and does not retry in a loop.
  • Alert thresholds sit below the hard cap, so someone hears about a failover before it hits the ceiling.
  • If the fallback is on a pay-as-you-go account, a provider-side spending limit is set and recorded, because a gateway cap does not protect traffic that bypasses the gateway.
  • Retries and fallbacks are bounded. OpenRouter prices a request at the model that finally answered, so the cost depends on which target served it.2

5. Alerting and observability

Failover is designed to be invisible to the client. That also makes it invisible to you unless you ask for the signal. A chain can sit on its fallback for a week, spending at a different rate, with every response succeeding.

Each response from INFRO names the model, provider and connection that served the request and the estimated provider cost.1 Use that as the data source for these checks:

  • A dashboard or query shows the share of requests served by each target, per route, by hour.
  • An alert fires when the fallback's share crosses a threshold you chose, routed to a channel a person watches. INFRO's alert channels include email, Slack, Teams, PagerDuty and signed webhooks.
  • An alert fires on failing connections, separately from errors the client sees.
  • Latency per target is recorded, so a slow fallback shows up before users complain.
  • Spend per target is visible next to the cap, so the budget check above has live data.
  • Silent changes are watched: more fallbacks, a new error mix and slower responses are the kind of no-error change worth a finding, and INFRO's traffic-change findings cover them from request metadata. They do not judge answer quality, so keep your own scored samples.

The alert only counts when a human receives it. Force a failover in staging and time how long it takes the on-call person to see it.

6. The forced-failover test

Run this last, in staging, with the same route configuration as production.

  1. Block the primary at the network layer, or point its connection at a bad host.
  2. Send the replayed sample from section 3 at production-like concurrency.
  3. Confirm every request succeeds, the served model is the fallback, and time to first token rose by an amount you accept.
  4. Start a long stream, kill the primary mid-response, and confirm your client handles a truncated stream. Failover happens before the first token, so a stream that dies after it is not retried by the gateway.1
  5. Let spend run until an alert threshold trips and confirm the alert arrives.
  6. Restore the primary and confirm traffic returns to it without a manual step.

For route-based chains, a priority route walks targets in order, while a weighted route chooses the first attempt by weight and still falls through the rest if it fails; a weight-0 target is a standby that never takes a first attempt.5 Confirm you configured the one you meant. The broader drill method is in failover drills.

Fallbacks by model name are cross-model and opt-in. In INFRO that is a fallbacks array of up to five catalog model IDs, and it is ignored when model names a route, because the route's own targets apply.1 A common mistake is adding fallbacks to a request that already calls a route and assuming it took effect.

fallbacks_request.py
r = client.chat.completions.create(
    model="gpt-6-sol",                      # a model name, not a route
    messages=[{"role": "user", "content": "ping"}],
    extra_body={"fallbacks": ["claude-sonnet-5-5"]},  # illustrative ids
)
print(r.model)  # confirm which model actually answered

Scorecard

CheckPass conditionEvidence to keep
Quota headroomFallback limit above primary peak, read todayConsole screenshot or API output with date
SeparationOne target on a different account or vendor, independent quotaTest run with primary saturated
CompatibilityReplay sample parses and fits context on every targetFailure count per target
BudgetCap holds one full-load hour at the fallback rate, or the refusal is chosenWritten calculation, 402 test
AlertingForced failover reaches a named personAlert timestamp
DrillPrimary blocked, all requests served, recovery automaticRun log

Any "no" is a launch decision for someone with authority to accept the risk, written down. A fallback you have not tested is a hope.

Questions readers ask

What is LLM failover?
Sending a request to a second connection or model when the first one times out, returns a 5xx or is rate-limited. Same-model failover uses another account or host for the same model. Cross-model fallback uses a different model from an ordered list, as both INFRO and OpenRouter document.12
How often should I re-run this checklist?
Re-run the quota, schema and budget checks whenever the primary or fallback model changes, a provider quota tier changes, or a price changes. Re-run the alert test on a schedule, because alert routing breaks silently when people leave.
Should a fallback use a cheaper model?
Not as a rule. The fallback must pass your quality tests first. Price matters mainly for the budget check: if the fallback costs more per token than the primary, a cap sized for the primary can refuse traffic during the outage.

From the team that builds it

Where this shows up in INFRO

INFRO is a control plane in front of the provider accounts you already hold. The capabilities below are the parts of it this article touches, each with the documentation that defines its behaviour.

  • Health-aware routing

    Available with a plan

    Named routes use priority or weighted targets over your own connections, with health checks, retries and failover.

    Read the documentation for Health-aware routing
  • Automatic failover

    Available with a plan

    A route that times out or 5xxs before the response starts is retried elsewhere without your client seeing it.

    Read the documentation for Automatic failover
  • Routing rules

    Available with a plan

    If-rules on a route send matching requests to their own targets, by metadata, feature, end user, key, project, prompt size, streaming, images, tools or time of day. Failure rules decide per failure kind whether to retry, move on or stop.

    Read the documentation for Routing rules
  • Budgets and spend ceilings

    Available with a plan

    A hard cap per organization, project, member, and key, with alerts at your own thresholds.

    Read the documentation for Budgets and spend ceilings
  • Spend anomaly and drift alerts

    Available with a plan

    Each scope's usual day is learned from its own history; a day that departs from it, a budget forecast to be exceeded, cost estimates drifting from the provider's own figures, unpriced traffic and failing connections become findings in the console. Routed to email, Slack and signed webhooks on every plan.

    Read the documentation for Spend anomaly and drift alerts
  • Microsoft Teams and PagerDuty alert channels

    Available with a plan

    Findings posted to a Microsoft Teams channel through a Teams workflow, or opened as PagerDuty alerts through an Events API v2 integration, beside email, Slack and signed webhooks. Included where alert channels are.

    Read the documentation for Microsoft Teams and PagerDuty alert channels
  • Traffic changes

    Available with a plan

    Changes in your traffic that come with no error: a model answered by a new snapshot, longer answers, a lost prompt cache, more fallbacks, answers cut off by the length limit, slower responses or a new error mix. Each finding names the likely cause and the estimated weekly change in provider cost. INFRO sees request metadata, not answers, so it does not judge answer quality.

    Read the documentation for Traffic changes
  • Usage and cost per request

    Available with a plan

    Every request records its model, latency, token or unit counts, and estimated provider cost, queryable by project and key.

    Read the documentation for Usage and cost per request

INFRO accounts are self-serve. Provider usage is billed to you by your providers; INFRO charges a software subscription and takes 0% of model spend. See plans.

Sources

Numbered in order of first citation. Each was opened and checked against the claim on the date shown.

  1. 1.Failover & fallbacks (opens in a new tab) — INFRO docs. Accessed Nov 28, 2026.
  2. 2.Model Fallbacks (opens in a new tab) — OpenRouter docs. Accessed Nov 28, 2026.
  3. 3.Rate & spend limits (opens in a new tab) — INFRO docs. Accessed Nov 28, 2026.
  4. 4.Azure OpenAI in Microsoft Foundry Models quotas and limits (opens in a new tab) — Microsoft Learn. Accessed Nov 28, 2026.
  5. 5.Routes (opens in a new tab) — INFRO docs. Accessed Nov 28, 2026.
  6. 6.Provider Routing (opens in a new tab) — OpenRouter docs. Accessed Nov 28, 2026.

About this article

Read on 28 Nov 2026: INFRO's docs overview, failover, routes and rate-limit pages; Microsoft's Azure OpenAI quotas page; OpenRouter's provider-routing and model-fallback pages. The Google Cloud quotas page returned only navigation text, so no Vertex AI quota figures are stated. Provider quota numbers were left out because they change by tier.

Last checked against its sources on . The next review is due by . No separate named reviewer is recorded for this article.

How articles are written, sourced and corrected is set out in the editorial standards.