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 failsSet up byRuns whereHow you pay
Bridge by WekoyaRetried on another route that serves the same model, if the failure comes before the first tokenBridge; nothing to configureHostedNaira balance, by bank transfer or card
OpenRouterTries the next provider for the same model; you can also list fallback models to try in orderOpenRouter for providers; you for fallback modelsHostedUS dollars; 5.5% fee on credit purchases
LiteLLMFalls back to another model group after its retries, as set in your config fileYou, in configYour own serversFree 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 statusYou, in a JSON configHosted, or its open-source gateway on your serversNot published; enterprise sales
HeliconeStates automatic fallbacks if a provider is downHeliconeHosted; on-prem for enterpriseFree 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

What to handle in your own code

  1. Set a timeout on every request, so a slow answer does not hang your app.
  2. On a 5xx error, retry once with a short wait; on a 4xx, fix the request instead.
  3. For anything critical, keep a second model in your config and switch to it after a failed retry.
  4. Stream long answers, so the user sees progress and a failure shows early.

Create a free account

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.

Read next