Skip to content
AlianHubFreeOur open-source project management tool: Kanban, sprints, time tracking and team chat.Try it free
AI4 min read

When Your AI Provider Goes Down: A Fallback Plan for AI Features in Production

Every AI model provider has outages and slowdowns. If your product depends on one, an outage becomes your outage. Here is how to design fallbacks so your AI features degrade gracefully instead of failing.

  • ai
  • engineering
  • production
  • saas
  • ops

Your AI feature works perfectly in testing. Then one afternoon the model provider starts returning errors, or answers that used to take two seconds take forty. Your support chat hangs, your agent stops mid-task, and customers start asking what is wrong with your product.

Every major model provider has incidents: full outages, partial outages in one region, rate limits during peak demand and slow responses that time out. None of this is unusual. What matters is whether your product was designed to expect it.

What actually goes wrong

It is worth separating the failure types, because each needs a different response:

  • Hard outage: the API returns errors for every request.
  • Degraded performance: requests succeed but take much longer than normal, so your timeouts fire.
  • Rate limiting: you, or the provider as a whole, hit capacity limits and some requests are rejected.
  • Silent quality change: the provider updates a model and outputs change in format or quality without any error at all.

The last one is the most dangerous, because nothing alerts you.

Step 1: know which features depend on what

List every AI feature in your product and answer three questions for each:

  • Which provider and model does it call?
  • What happens to the user if that call fails right now?
  • How long can it wait? A live chat answer has seconds. A nightly report has hours.

This turns "the AI is down" into a clear list of what breaks, for whom and how badly.

Step 2: set timeouts and retries on purpose

Default client settings are rarely right for production.

  • Set timeouts per feature, based on what a user will tolerate, not on the provider's maximum.
  • Retry with backoff for errors and rate limits, but cap the number of retries so you do not make an incident worse.
  • Use a circuit breaker: after a run of failures, stop calling the provider for a short period and go straight to your fallback, then test again.

Step 3: choose a fallback for each feature

There is no single right fallback. Pick per feature:

  • A second model from another provider. Best for critical, user-facing features. Keep your prompts and output parsing provider-neutral so a switch is a configuration change, not a rewrite.
  • A smaller or older model. Often good enough for a short period, and cheaper.
  • A cached or simpler answer. For common questions, a stored answer or a search result beats an error.
  • A queue. For work that can wait, accept the request, tell the user it will be done shortly and process it when the provider recovers.
  • A human hand-off. For support, route to a person with the conversation so far.
  • An honest message. If nothing else works, tell users clearly that the feature is temporarily unavailable, and keep the rest of the product working.

Step 4: test the fallback before you need it

Fallbacks that have never run usually fail when they are needed. A few habits fix this:

  • Run your eval set against the fallback model too, so you know its quality is acceptable and its output format parses.
  • Schedule a drill. Turn the primary provider off in staging once a quarter and watch what happens end to end.
  • Watch quality, not just uptime. Track output format errors, refusal rates and eval scores over time, so a silent model change shows up as a trend.

Step 5: watch your providers

Know about an incident before your customers tell you. Subscribe to your providers' status pages, alert on your own error rates and latency, and keep an eye on the wider picture. We track live AI provider status on AIFlash, our AI news site, which is a quick way to see whether a slowdown is you or the provider.

What this looks like in practice

Resilience is something we design in from the start on the systems we build. In our multi-agent manufacturing system, six specialised agents watch production, maintenance, quality, inventory, energy and shift handoffs, and unplanned downtime fell 31% in 90 days. A system like that cannot stop because one upstream API is slow, so each agent has defined behaviour when a dependency fails, and the shop floor keeps running.

A quick checklist

  • List every AI feature, its provider and what users see if it fails
  • Set per-feature timeouts, capped retries and a circuit breaker
  • Choose a fallback for each feature: second provider, smaller model, cache, queue, human or clear message
  • Keep prompts and parsing provider-neutral
  • Run evals on fallback models and drill the switch in staging
  • Monitor errors, latency and output quality, not just uptime

Next step

Pick your most important AI feature and ask: what happens to a customer if our model provider fails for the next hour? If the answer is "it breaks", that is the first fallback to build. If you want help making an AI feature production-ready, talk to our team. We design, build and hand over AI systems with observability and failure handling included, and you own all the code and IP from day one.

From the Alian Software team

Tools we use for this

Frequently asked questions

  • Plan a fallback for each AI feature: a second model from another provider, a smaller model, a cached answer, a queue for work that can wait, a human hand-off, or a clear message to users. Combine it with sensible timeouts, capped retries and a circuit breaker.

Monthly briefing

One short email a month — what we shipped, what we learned, the patterns we'd recommend (and skip). No fluff.

Got a problem like this?

Describe it in the hero — our agent will scope a solution and tell you what a real build would look like.

You're one step away

We'll email you a copy too. No spam; see our privacy policy.