Default WorkspaceGuides
429 fallback, coding agents & gateway comparisons

AI Gateway Comparison 2026: 7 Gateways on Cost, Ops and Fallback

Updated · · Facts and limits are dated; check the linked sources.

There is no best AI gateway; there is a best gateway for a specific constraint. The constraint is almost always one of four: who holds the provider keys, where the traffic is allowed to go, who operates the thing, and what happens when a provider returns 429. Every comparison that skips those four and ranks features alphabetically produces the same top three for everyone, which is useless.

We build SentioGate, so we are in this market. The table below says where each product is the better pick, including when that is not us.

Checked 1 Dec 2026 against each vendor's pricing page or docs. Prices change; verify before you commit.

The comparison

GatewayRuns whereWho holds provider keysPricing modelFallbackData residency
OpenRouterHosted marketplaceOpenRouter, or yours via BYOKCredit purchase fee (~5%, check current); BYOK free below $25k/month listRouter fallbacksTraffic passes through OpenRouter
LiteLLMSelf-hosted proxy (pip/Docker)YouNo usage fee; infra + opsRouter fallbacks, retries, load balancingYour infrastructure
BifrostSelf-hosted (Go)YouApache-2.0; enterprise tier for some featuresAutomatic fallbacks, load balancingYour infrastructure
PortkeyHosted or open-source gatewayYouDeveloper free; Production $49/mo + usageGateway fallbacksHosted or your infra (OSS)
HeliconeHosted or self-hostedYouFree tier; Pro $79/mo; Team $799/moAI Gateway fallbacksHosted or your infra
Cloudflare AI GatewayCloudflare edgeYouWorkers plan limits on logs (100k free, 10M paid per gateway)Limited; provider-levelCloudflare network
SentioGateHosted (edge)You (BYOK), or community pool0% token markup; free beta, Pro $9 / Team $18 plannedKey failover, then model failover with Retry-AfterHosted; no self-host option

The two hosted marketplaces (OpenRouter, SentioGate) and the three self-hostable gateways (LiteLLM, Bifrost, Portkey OSS) are solving different problems. If a vendor comparison ranks them on one axis, that axis is doing all the work.

What each model costs in practice

Marketplace fees scale with spend. OpenRouter's model is a percentage at the credit boundary, with BYOK free below a monthly threshold. At $250/month of tokens the fee is roughly $12; at $25,000 it is over $1,000. The number matters only at the top end, and the top end is exactly where teams start asking.

Self-hosted gateways trade fees for a fixed cost. LiteLLM and Bifrost have no usage fee. You pay for a host, Postgres, Redis and the engineer who patches them. Below a few hundred dollars a month of tokens this is strictly worse than a fee; above it, the arithmetic flips — but only if the engineering time is accounted for rather than absorbed.

Subscription gateways price by log volume. Portkey's Production plan is $49/month plus usage; Helicone's Pro is $79/month and Team $799/month, with the value concentrated in observability and governance rather than routing. If you already need tracing and evals, the routing is a bonus; if you only need routing, you are paying for a dashboard.

Edge gateways price by plan limits. Cloudflare AI Gateway sits on your Workers plan; persistent log storage is capped (100,000 logs total on Free, 10,000,000 per gateway on Paid). It is a good fit if you are already on Workers and want caching and logs near your users; it is not a routing control plane.

BYOK routers at 0% markup. SentioGate's model is that providers bill your keys directly and the router takes nothing per token. The beta is free; Pro ($9) and Team ($18) per month are planned but not yet purchasable.

Fallback is where the claims diverge

Every vendor lists "fallbacks". What differs is how far the fallback reaches:

  • Provider-level retry: the same model on a different key. Necessary, not sufficient.
  • Model-level failover: a different model when the provider is down. Changes output; must be acceptable for the workload.
  • Cooldown and Retry-After handling: a provider that returns 429 with a long Retry-After should not be hammered by the next hundred requests. Only some gateways model this.
  • Shared free-tier caps: OpenRouter's :free variants have daily caps that a router must recognise as terminal, not retryable. Treating them as retryable burns latency and budget.

When you evaluate a gateway, ask for the failure trace of one real request, not a feature list. Our OpenAI 429 fallback guide shows what a useful trace contains.

Which gateway by team

Your situationPickWhy
Solo developer, exploring modelsOpenRouterNothing to run, one balance
Startup with provider keys, no ops teamSentioGateHosted, 0% markup, failover, no proxy
Regulated traffic that cannot leave the VPCLiteLLM or BifrostSelf-hosted, full control
Observability and evals are the priorityHeliconeDeepest tracing and cost analysis
Governance, guardrails, prompt managementPortkeyControl plane features
Already on Cloudflare WorkersCloudflare AI GatewayCaching and logs at the edge
Large spend with a platform teamLiteLLMFees scale with spend; infra does not

What none of them solve

A gateway cannot fix a prompt that is three times longer than it needs to be, a product decision to default every request to a frontier model, or an agent loop that retries on non-retryable errors. Those are the largest cost lines in most deployments, and they live in application code. The AI FinOps guide covers the levers and what each is worth.

FAQ

What is the difference between an AI gateway and an LLM router?

An AI gateway is the infrastructure layer: one endpoint in front of many providers, with keys, logging and limits. An LLM router is the decision layer: which model serves this request. Most products are both. Our LLM gateway explainer covers the definitions.

Which AI gateway is free?

LiteLLM and Bifrost are free and open source, with infrastructure costs. Portkey's Developer plan, Helicone's free tier and Cloudflare AI Gateway on Workers Free are free with limits. SentioGate is free during its beta.

Which AI gateway is fastest?

Nobody's latency figure is comparable across vendors: each is a self-reported benchmark on different hardware. Measure your own p50 and p95 through each candidate with your traffic shape.

Can I self-host SentioGate?

No. It is a hosted service; the SDKs are Apache-2.0 open source. If self-hosting is a requirement, choose LiteLLM or Bifrost.

Do AI gateways store my prompts?

That depends on the product and the plan, and it is the first question to ask any hosted vendor. Self-hosted gateways store prompts only where you configure logging.

Sources

Accessed 1 Dec 2026.