Bridge by Wekoya / Guides / AI API with failover when a provider is down
AI API with failover when a provider is down
In short: Bridge by Wekoya fails over automatically: if a provider fails before it starts answering, the request is retried on another route that serves the same model, with nothing to configure. OpenRouter also switches providers automatically; LiteLLM and Portkey fail over to the models you list in a config you write and run.
Updated · Other companies' prices checked , rechecked every 90 days
Failover compared
| What happens when a provider fails | Set up by | Runs where | How you pay | |
|---|---|---|---|---|
| Bridge by Wekoya | Retried on another route that serves the same model, if the failure comes before the first token | Bridge; nothing to configure | Hosted | Naira balance, by bank transfer or card |
| OpenRouter | Tries the next provider for the same model; you can also list fallback models to try in order | OpenRouter for providers; you for fallback models | Hosted | US dollars; 5.5% fee on credit purchases |
| LiteLLM | Falls back to another model group after its retries, as set in your config file | You, in config | Your own servers | Free software; you pay each provider |
| Portkey (now Prisma AIRS AI Gateway) | Tries the next target in a fallback strategy, by default on any non-2xx status | You, in a JSON config | Hosted, or its open-source gateway on your servers | Not published; enterprise sales |
| Helicone | States automatic fallbacks if a provider is down | Helicone | Hosted; on-prem for enterprise | Free tier; Pro $79 a month |
From OpenRouter's provider routing, model fallbacks and FAQ; LiteLLM's reliability docs; Portkey's fallbacks docs and home page; and Helicone's docs and pricing. Checked on 3 December 2026.
Same model, or a different one?
There are two kinds of failover. Same model, another route: the request still runs on the model you asked for, so answers, prices and limits stay what you expect. A different model: the request goes to a backup model you chose, which keeps you running but can answer differently and cost differently. Bridge does the first for you; for the second, catch the error in your code and call again with another model, which is one word in the request.
What Bridge does, exactly
- If a provider fails before the first token, Bridge retries on another route that serves the same model. You see one answer, not an error.
- If it fails after the answer has started, the error is returned to you: part of an answer has already reached your app, so there is nothing to retry cleanly.
- If you add your own provider keys, you set priority and failover between them; falling back to your Bridge balance when your keys fail is a setting, off by default. See Bridge for business.
- The model status page shows whether each model is answering now, and which to use instead when one is withdrawn.
What to handle in your own code
- Set a timeout on every request, so a slow answer does not hang your app.
- On a 5xx error, retry once with a short wait; on a 4xx, fix the request instead.
- For anything critical, keep a second model in your config and switch to it after a failed retry.
- Stream long answers, so the user sees progress and a failure shows early.
Common questions
Which AI API has automatic failover?
Bridge by Wekoya retries on another route for the same model when a provider fails before answering, with nothing to set up. OpenRouter also switches providers automatically. LiteLLM and Portkey fail over to models you list in a config you write (checked 3 December 2026).
Does failover change the price I pay?
Not on Bridge: a request that fails over still runs on the model you asked for, at that model's naira price. When a gateway falls back to a different model, you pay that model's price; OpenRouter, for one, prices the request at the model that was finally used.
What if the provider fails halfway through an answer?
Bridge returns the error, because part of the answer has already reached your app and a retry would repeat it. Retry the request in your code if your app can handle a fresh answer.
Do I need LiteLLM for failover if I use Bridge?
No. Bridge fails over for you without a server to run. You can still put LiteLLM in front of Bridge if you already run it.