LLM API outages: building a fallback on a model you control
An LLM API outage stops every feature that calls it. Learn what to do during one and how a model you control can serve as a tested fallback model.
Updated
An LLM API outage is a period when a model provider’s API fails, times out or slows so much that every feature calling it breaks. The durable fix is a fallback: a second model that takes the same requests while the primary API is down.
What does an LLM API downtime do to production features?
Most teams learn about an outage from their users. The call returns an error or hangs, and the feature around it shows a spinner, an empty result or a generic failure message. If nothing in the code decides what happens next, requests are dropped or retried until the queue backs up.
The damage depends on where the call sits. A chat box that fails is an annoyance. A batch pipeline that stops overnight can leave a day of documents unprocessed, and the backlog lands on your team the next morning. A call inside checkout or a support flow is worse, because the customer sees the failure.
Hypothetical example, with round numbers: a feature sends 100,000 calls a day, and the API is unavailable for two hours. That is about 8,000 calls that fail. If each one needs a person to re-run it, the outage has a cost well beyond the API bill.
What to do when the OpenAI API goes down?
Start with the steps you control right away.
- Check the provider’s status page. Your own error logs cannot tell you whether the fault is in your network, your key or their service.
- Stop the retry storm. Retries with no backoff add load and can hit rate limits as the service recovers. Use exponential backoff, a cap on the delay and a maximum number of attempts.
- Move the affected traffic to a fallback if you have one. If you do not, queue the requests and tell users which features are delayed.
- Log every failed call with its model name, prompt version and time, so you can replay the work after recovery.
Those steps limit the damage from one outage. They do not stop the next one. For that you need a fallback that is already built and tested.
How do you build a fallback for an AI API outage?
A fallback needs three things: a way to detect failure, a second model that can answer the same request, and a test that shows the second model is good enough for that request.
Detection is simpler than people expect. Set a timeout on every call. Treat repeated server errors, timeouts and connection failures as the signal to switch, and keep the switch for a short window before probing the primary again. Do not switch on one bad response, or traffic will flap between the two models.
The second model is the hard part. A model from another API vendor works, but it can fail for shared reasons, such as a regional problem or a billing issue on your account. An open-weight model you run in your own cloud account or on-prem keeps answering when the public API is down, because the traffic stays in your environment. The cost is that you operate it. You need capacity, monitoring and an owner.
Own Weights builds that second model for one high-volume task. We fine-tune an open-weight model on that task, test it against the model you use now on your own data, and serve it in your cloud account or on-prem. You own the weights. A trained model must beat the current model on that test before it is deployed. For the general approach, see running a model in your own cloud account.
Is a second API provider enough for LLM provider redundancy?
A second API covers one kind of failure: that provider going down. It does not cover a retired model, a rate limit you hit at peak, or a change in output format between models. Those failures show up in production more quietly.
Three things to check before you rely on a second provider:
- Output differences. Two models rarely produce identical text. Your parser and your tests must accept both, or the fallback will break the feature in a new way.
- Shared limits. Check each provider’s current rate limit pages. Failing over to a provider you are already throttled on does not help.
- Retirements. A model can be shut off on a date set by the vendor. Model retirements covers how to plan for that.
Check each provider’s current pricing and limit pages before sizing a fallback. This guide does not quote OpenAI or Google prices.
What does AI API reliability for production look like?
Most reliability comes from decisions made before the outage:
- A timeout on every call, set to a value your feature can tolerate.
- Bounded retries with backoff, and a fallback path for each task that matters.
- Accuracy for the fallback measured on your own data, not on a public leaderboard.
- Logs that record the model, prompt version and result of every call.
- A drill. Send a small share of traffic to the fallback on a schedule, so you know the path works before you need it.
Ask any vendor for its written uptime commitment and read what it excludes. A number in a sales deck is not a commitment you can claim against.
Score the fallback before an outage forces you to: run recent requests through the primary and the fallback with the prompt each will really receive, and count the outputs that fail to parse or carry a wrong field. Note which requests the fallback gets wrong, so you know which ones it should not take at all. The full method is in how to build a test set.
Self-hosting is the wrong choice in some cases. If your volume is low, if the task changes every few weeks, or if nobody on your team can operate a model server, a second API with a tested prompt is the better choice. Do not build infrastructure you cannot run.
Run the free AI cost audit inside a repository to list every AI call your code makes, including calls that have no fallback provider. If you want help choosing which task to move first, book a call and we will go through it with you.
Questions
What do I do during an OpenAI API outage?
Confirm the fault with the provider's status page before changing anything. Then cap retries so they do not add load, and send critical requests to a fallback model if one exists. Once service returns, replay the failed calls from your logs.
What is a fallback for an AI API outage?
A fallback is a second model that can answer the same request when the primary API is unreachable or too slow. It needs a trigger based on sustained errors, and an accuracy test run on your own data before you need it. Test the switch on a regular schedule so you know it works.
What does LLM provider redundancy mean?
Redundancy means a second, independent way to get the same output, not a second account with the same vendor. Two API providers protect you from one vendor's outage, but not from a retired model or a shared rate limit. A model you operate yourself can cover those cases, at the cost of running it.
What uptime SLA does an LLM API offer?
This guide does not publish an uptime figure or SLA for Own Weights. A self-hosted model's uptime depends on your own infrastructure, monitoring and staffing. Ask any provider for its written uptime commitment, and read what that commitment excludes.
What should I use as a fallback when the Claude API is down?
Use a second model that you have already scored on your own data, so you know what it gets wrong. That can be another API or an open-weight model you serve in your own environment. Keep the prompt and output parser tested against both models.