← all articles
// article

When AI Goes Dark: Your LLM API Fallback Strategy

2025-10-19

Why Plan for LLM API Downtime?

When your LLM API goes dark, whether it’s OpenAI, Anthropic, or a custom deployment, your primary fallback strategies involve a tiered approach: local caching of recent responses, serving pre-computed or simpler content, and gracefully degrading the user experience. This isn't theoretical; it's a necessary preparation for any system relying on external services.

Ignoring this reality is like building a house without a roof and hoping it never rains. External APIs, particularly those for rapidly evolving large language models, are not infallible. They can experience outages, rate limit issues, or sudden deprecations. Your application needs a contingency plan that doesn't just display a generic error message, but actively maintains functionality, however limited.

What's the True Cost of an LLM Outage?

The immediate thought is lost revenue or frustrated users, and while true, the impact stretches further. A customer service chatbot failing during peak hours could mean hundreds of missed queries, translating not only to lost sales opportunities but also increased load on human support staff, who might be scrambling without the AI assistance they're accustomed to.

Considering the investment in integrating LLMs, a small upfront effort in fallback planning can save you significant headaches and costs down the line.

Tier 1: Immediate Relief & Local Resilience

This tier focuses on keeping your application responsive and partially functional, even if the LLM is completely unreachable. These are your first lines of defense.

Caching LLM Responses

For frequently asked questions or common query patterns, caching previous LLM responses is a straightforward win. A simple Redis cache, or even Vercel's edge caching for web applications, can store successful API calls for a defined period.

When the LLM API is down, your application can first check the cache. If a relevant answer exists, serve that. It might not be the absolute latest, but it's infinitely better than a blank screen or an error message.

Pre-computed & Pre-rendered Content

Many LLM use cases involve generating relatively static content: product descriptions, FAQ answers, blog post drafts, or summary pages. For these, you can pre-compute common responses or generate them offline and serve them directly.

Imagine an e-commerce site using an LLM to generate unique product descriptions. If the API fails, it could fall back to a generic, human-written description, or even a pre-generated LLM description that’s a few hours old, rather than showing a blank field.

This approach moves the dependency from real-time API calls to static assets or a local database, providing robust resilience for predictable content needs.

Graceful Degradation

This is about strategically disabling or simplifying features rather than letting them break entirely. When an LLM fails, don't just throw an error. Instead:

The goal is to provide *some* value, even if it's less than ideal, to maintain user engagement and reduce frustration.

Tier 2: The "Backup Brain" – Smaller Models & Redundancy

When Tier 1 isn't enough, or your application demands more robust AI functionality, it's time to consider secondary processing options.

Smaller, Local, or Specialized Models

For certain tasks, a full-blown LLM might be overkill. If the primary LLM API is down, can a smaller, more specialized model handle the task?

The key here is to identify critical AI functions that can be served by less resource-intensive or more locally controlled models.

Multi-provider Strategy

This is the most direct approach to API resilience: have more than one LLM provider. If your primary is OpenAI, configure your application to failover to Anthropic's Claude, or Google's Gemini, when OpenAI is unreachable. This significantly boosts uptime, but comes with trade-offs:

For mission-critical applications where uninterrupted AI access is paramount, the investment in a multi-provider strategy is often justifiable. Services like Vercel manage multi-cloud deployments; you can apply similar principles to LLM providers.

Rate Limiting & Circuit Breakers

Prevention is better than cure. Implement robust rate limiting and circuit breaker patterns. If an LLM API starts returning too many errors or timing out, your system should automatically stop sending requests to it for a period. This prevents cascading failures and gives the external API a chance to recover without being hammered by your retries.

Tools like Sentry can monitor API health and alert you to issues, allowing you to trigger these circuit breakers dynamically. PostHog can then help you track the user impact of these decisions.

Tier 3: Human Intervention & Communication

When all automated fallbacks are exhausted, or for highly sensitive interactions, human oversight becomes essential.

Human Handoff

For customer-facing applications, if the LLM cannot provide an answer or is unavailable, the interaction should seamlessly transition to a human agent. This means:

This might involve integrating with your existing CRM or customer support platform. It's a pragmatic acceptance that technology isn't perfect, and humans are still the ultimate fallback.

Clear User Communication

Transparency builds trust. If you are experiencing an LLM outage, inform your users. This could be:

Simply stating, “We're experiencing technical difficulties with our AI services and are working to restore them,” is far better than silence and confusion.

Robust Monitoring & Alerting

You can't fix what you don't know is broken. Set up comprehensive monitoring for your LLM API calls:

Integrate these alerts with your team's communication channels (Slack, email, PagerDuty). Sentry and PostHog are excellent for tracking application performance and user experience, giving you crucial insights into when your fallbacks need to kick in.

Crafting Your LLM Downtime Playbook

Developing an effective fallback strategy isn't a one-size-fits-all endeavor. It requires careful consideration of your application's specific needs, user expectations, and budget.

  1. Assess Criticality: Which LLM-powered features are absolutely essential? Which are nice-to-haves? Prioritize your fallback efforts based on impact. A minor content generation feature might only need graceful degradation, while a core customer interaction bot demands multi-provider redundancy.
  2. Define RTO & RPO: What's your Recovery Time Objective (RTO) – how quickly must your service be back online? What's your Recovery Point Objective (RPO) – how much data loss are you willing to tolerate (relevant for cached responses)?
  3. Budget Allocation: Redundancy costs money. Weigh the cost of implementing a fallback (e.g., €100/month for a secondary API, €500/month for local LLM infrastructure) against the potential losses from an outage. For a critical customer-facing service handling €10,000 in transactions per hour, the investment is a no-brainer. For a simple internal tool, maybe not.
  4. Regular Testing: A fallback plan is useless if it hasn't been tested. Periodically simulate LLM API outages (e.g., by blocking network access to the API endpoint) to ensure your fallbacks kick in as expected.
  5. Documentation: Clearly document your fallback procedures, monitoring alerts, and contact points. When an outage occurs, your team needs a clear roadmap.

At SISL, we approach this by first defining the criticality of your LLM-powered features. Not every chatbot interaction demands 99.99% uptime. We help you weigh the costs against the potential business impact, building robust, pragmatic fallback systems instead of over-engineered solutions. Our goal is to ensure your AI-powered applications remain resilient and reliable, even when the underlying services hit a snag.

Ignoring the potential for LLM API downtime is a gamble no serious business should take. Proactive planning ensures continuity, protects your reputation, and ultimately saves you money and stress. Don't wait for your AI to go dark to start thinking about a backup. Plan ahead, test your solutions, and ensure your application stands strong. If you need a hand in designing such a resilient system for your project, don't hesitate to get in touch.

Got a similar problem?

Boutique web development studio from Poland — sites, WooCommerce / Magento stores, custom web apps and landings. See what we shipped.

See SISL portfolio →

Free technical audit of your site — in 24h

Core Web Vitals measured on real users, indexability, structured data, meta and internal linking. A written report with prioritised fixes, not a PDF from a generic tool. No cost, no call required.

Get the free audit →