AI Gateway Comparison 2026: 7 Gateways on Cost, Ops and Fallback
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
| Gateway | Runs where | Who holds provider keys | Pricing model | Fallback | Data residency |
|---|---|---|---|---|---|
| OpenRouter | Hosted marketplace | OpenRouter, or yours via BYOK | Credit purchase fee (~5%, check current); BYOK free below $25k/month list | Router fallbacks | Traffic passes through OpenRouter |
| LiteLLM | Self-hosted proxy (pip/Docker) | You | No usage fee; infra + ops | Router fallbacks, retries, load balancing | Your infrastructure |
| Bifrost | Self-hosted (Go) | You | Apache-2.0; enterprise tier for some features | Automatic fallbacks, load balancing | Your infrastructure |
| Portkey | Hosted or open-source gateway | You | Developer free; Production $49/mo + usage | Gateway fallbacks | Hosted or your infra (OSS) |
| Helicone | Hosted or self-hosted | You | Free tier; Pro $79/mo; Team $799/mo | AI Gateway fallbacks | Hosted or your infra |
| Cloudflare AI Gateway | Cloudflare edge | You | Workers plan limits on logs (100k free, 10M paid per gateway) | Limited; provider-level | Cloudflare network |
| SentioGate | Hosted (edge) | You (BYOK), or community pool | 0% token markup; free beta, Pro $9 / Team $18 planned | Key failover, then model failover with Retry-After | Hosted; 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-Afterhandling: a provider that returns 429 with a longRetry-Aftershould not be hammered by the next hundred requests. Only some gateways model this. - Shared free-tier caps: OpenRouter's
:freevariants 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 situation | Pick | Why |
|---|---|---|
| Solo developer, exploring models | OpenRouter | Nothing to run, one balance |
| Startup with provider keys, no ops team | SentioGate | Hosted, 0% markup, failover, no proxy |
| Regulated traffic that cannot leave the VPC | LiteLLM or Bifrost | Self-hosted, full control |
| Observability and evals are the priority | Helicone | Deepest tracing and cost analysis |
| Governance, guardrails, prompt management | Portkey | Control plane features |
| Already on Cloudflare Workers | Cloudflare AI Gateway | Caching and logs at the edge |
| Large spend with a platform team | LiteLLM | Fees 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.