Learn AI at the cost of chai. Level 1 is free. Founding Pro will be ₹499 for the first year, about one chai a week.Five minutes a day, one AI idea at a time. Free to start, with a Google sign-in.From ML basics to production AI, one card at a time. Free to start, with a Google sign-in.

Blog By 5 min read ai in production llm system design

LLM Fallback: When Your AI Provider Says No

Anthropic cut off a paying team with one error line in their busiest week. An LLM fallback kept them up. How I'd set one up, refusals and evals included.

Your AI provider doesn’t need an outage to take you down. One line in a response is enough.

On 1 December a small team that builds an AI support agent for online stores wrote up what happened to them. In the week after Black Friday, their main model started answering every request with model: "claude-opus-5-5" is suspended for this organization. No email before. No reason after. Their merchants never noticed, because every call already had an LLM fallback on a different model family, and traffic moved to OpenAI’s models without anyone getting paged. The Hacker News thread had 503 points and 365 comments by this morning. Checked on 3 Dec 2026.

The suspension is the headline. The fallback is the lesson.

A question worth asking before any AI feature ships

What happens to my product if my AI provider gets sanctioned? This week the answer came from a trust and safety queue instead.

At Nexxio we handle about 60M transactions a month for 3M+ users. At that scale you stop asking whether a dependency will fail and start asking how it fails, and who notices first. An LLM is just a dependency with a nicer API. It times out. It rate limits. It gets deprecated. And it can be switched off for your account while the status page stays green.

Our Nexxio AI pipeline, the one we took from 65% to 92% accuracy, ran on a single model provider.

The time it bit me was a deprecation. A Llama model we depended on was retired, and we had to move off it on the provider’s timeline, not ours.

What is an LLM fallback?

An LLM fallback is a second route for the same request. When the primary model errors, refuses or stays silent past your deadline, the request goes to another model, ideally from another provider, and the user still gets an answer.

A provider can say no in three ways, and most setups only plan for the first.

The loud one is the outage: 5xx errors, 429s, timeouts. Most retry libraries and gateways already handle it.

The quiet one is the refusal. Anthropic’s own refusals and fallback docs say a declined request comes back as a normal response, not an error, with stop_reason: "refusal". The same page warns that monitoring built on error rates or 5xx responses never sees it. Your dashboard is green while your feature returns nothing useful. Checked on 3 Dec 2026.

The final one is the suspension. Every request fails, for every user, at once, and there is nobody to call. Retries make it worse, because now you are hammering a door that is locked.

A fallback that only knows about the first kind will sit idle while the second and third kinds hurt you.

How to set up an LLM fallback mechanism

Here is the checklist I would use for a small team.

Fall back across families, not versions. Opus to Sonnet is a different model on the same account, and if the account is the problem you can lose both. In this story the block hit one model, and the team later pinned some parts to an older Claude model that still worked. What saved the day, though, was the route to OpenAI that was already wired in.

Treat a refusal as a failure in your code. Branch on the stop reason, count refusals as their own metric, and send the request down the fallback path. Claude has a server-side fallback in beta that retries a refusal on another Claude model. Useful, but it is still the same provider.

Give the whole chain one deadline. Each attempt gets a slice of the time, not its own full timeout. If the primary hangs for the full budget, the fallback never gets a turn and the user sees a spinner.

Stop retrying an account that says no. A suspension or auth error should trip a circuit breaker for that provider and move all traffic, not retry each request three times first. I wrote about this pattern in how to prevent cascading failures.

Log which model actually answered. If you can’t tell from your logs that half of today’s answers came from the backup, you can’t explain why quality moved.

Test it by breaking it. Revoke the primary key in staging and watch what happens. A fallback that has never fired is a theory.

Can your eval suite get you banned?

The flag that started it all was their test suite. Before every change, they replay a fixed set of scripted conversations several times on the old and new versions and let a model grade the answers. From outside, bursts of near-identical prompts looked like distillation, which is training your own model on Claude’s answers. They replied within hours, offered logs and a call, and heard nothing for a week. Then the model was gone.

That is exactly the golden-set habit I recommended in how to track LLM model degradation. I still recommend it. I would just run it on a separate, clearly named API key, keep the volume no bigger than it needs to be, and tell the provider’s support what that key is before anyone asks.

There is one more uncomfortable detail. Their traffic went through zero data retention routes because of promises they made to customers, and that is where the flag landed. If you are choosing providers on privacy terms, read is zero data retention real and plan the fallback route with the same terms.

Why is Anthropic suspending accounts?

There is no public answer for this case. The team says they were never told why. What they did get, a week earlier, was a warning from their inference provider’s trust and safety team that some traffic appeared inconsistent with Anthropic’s usage policy, which they read as a distillation check. An ordinary day of their model spend last month was around $1,300, almost a thousand of it on Claude Opus 5.5, according to their post. Paying well did not buy them a case number. Checked on 3 Dec 2026.

Who was right matters less than this: any provider can say no, for reasons you will not see in time.

Does an LLM gateway replace a fallback plan?

No. A gateway is plumbing. It can route a failed call to model B. It cannot tell you whether model B gives answers your users will accept, or whether your prompts even work there. Run your golden set on the backup model too, before you need it.

What it costs

A second provider is not free. Prompts drift between model families, so you maintain two sets of quirks, two contracts and two bills to watch. For a weekend project, skip it. For anything a customer pays for, it is cheaper than explaining a dead feature in your busiest week.

My rule: if your AI feature runs on one provider, it has a single point of failure and no appeal process. Build the second route before you need it.

If your main model disappeared this afternoon, which of your features would still answer?

Get the next one by email.

Sent when a post is ready. Never filler.

Free / One email per post / Unsubscribe in one click

Next issue // when it is ready

No filler.

One lesson from production per issue. What broke, why, and the rule I took from it. No roundups. No launch-day cheerleading.