AISSIST is named the Most Innovative CX Technology of 2026 by CX Today.
Back to Insights
AI Technology·Buyer Guide·Comparison

Best LLM Gateways and Model Routers (2026): 7 Compared

Seven LLM gateways and model routers graded on what breaks in production: failover behaviour, mid-conversation state, per-request cost attribution, added latency, PII redaction and published price. Every gateway fails over a request; none fails over a conversation, because provider-held state and prompt caches don't cross providers.

Lifan Xu · Sep 24, 2026 · 10 min read · Updated Nov 13, 2026

Compiled by Lifan Xu. Published September 24, 2026 · Last updated November 13, 2026.

An LLM gateway puts one API between your agents and every model provider, and in 2026 the seven worth shortlisting all handle failover. The difference is what they do to a customer conversation that is halfway through when the upstream model stops answering.

TL;DR: Every gateway here fails over a request; none fails over a conversation — OpenAI's own docs confirm stored response state and prompt caches stay with one provider, so your application must own the transcript whichever gateway you choose.

Methodology & sources

  • Seven gateways graded on four operational criteria: failover behaviour, mid-conversation state, per-request cost attribution, and added latency. Self-hosting and licence are listed but not scored.
  • Figures come from each vendor's own docs and GitHub READMEs. Every latency number is vendor-published; we did not benchmark these gateways ourselves.
  • State and caching behaviour come from OpenAI's conversation state and prompt caching guides.
  • Failover and latency figures verified September 2026; prices, PII redaction and ownership re-checked 13 November 2026. Disclosure: this is Aissist's blog. Aissist sells AI agents for customer service, not an LLM gateway, so no product on this list is ours.

Diagram of the four layers people call an LLM gateway: control plane, model router, gateway and proxy, between an AI agent and model providers

What is the difference between an LLM gateway, a model router, a proxy and a control plane?

An LLM gateway is the single endpoint your application calls; a router, a proxy and a control plane are three jobs that sit inside or around it. Page one of Google uses all four words for the same thing. They are not the same thing.

TermWhat it decidesExample
LLM proxyNothing. Translates one API format into many providers' formatsLiteLLM's Python SDK
Model routerWhich model gets this request: by cost, task, or healthOpenRouter's Auto Router
LLM gatewayWhether the request goes out, and where it goes if it fails: keys, retries, fallbacks, rate limits, logsPortkey, Cloudflare AI Gateway
Control planePolicy for all of the above across teams: budgets, access, auditKong Konnect, Prisma AIRS

A proxy saves you writing adapters, a router saves money, a gateway saves uptime, a control plane saves your security review. On our own site, Aissist's gateways connect to your helpdesk and CRM, not to model providers: same word, opposite end of the agent.

Which LLM gateways are best in 2026?

LiteLLM is the best self-hosted default, and Vercel AI Gateway or OpenRouter are the fastest managed starts. The table grades each on the four things that break in production.

GatewayFailover behaviourMid-conversation statePer-request cost attributionAdded latency, vendor-published (Sep 2026)Self-hostLicence
LiteLLMOrdered fallbacks after retries; cooldowns; separate context-window and content-policy fallbacksStateless per requestSpend per key, team and user8 ms p95 (4 instances, 1,170 RPS)YesMIT
Portkey (Palo Alto Networks)Ordered list; any non-2xx by default, or chosen status codesStateless per requestPer-request cost"<1ms"YesMIT (gateway)
OpenRouter (Stripe)models array; on context length, moderation, rate limit, downtimeStateless per requestBilled on the model that actually servedNot publishedNoProprietary
Vercel AI GatewayProvider order plus model fallbacks; BYOK can fall back to system credentialsStateless per requestCost and every routing attempt logged per request"sub-20ms"NoProprietary
Cloudflare AI GatewayOn errors or preset timeouts; cf-aig-step header shows which step answeredStateless per requestAggregate cost analyticsNot publishedNoProprietary
Kong AI GatewayFails over when a provider is slow or unavailableStateless per request"True cost of each request" incl. cache and service tierNot publishedYesApache 2.0 core; advanced AI features commercial
Bifrost (Maxim)Automatic fallbacks across providers and keysStateless per requestBudgets by virtual key, team, customer11 µs (5,000 RPS, t3.xlarge)YesApache 2.0
  • LiteLLM — best for self-hosted, multi-team spend control. LiteLLM's benchmarks show 8 ms p95 overhead on four instances, but 29 ms p95 on two. Con: overhead depends on instance count.
  • Portkey — best for governance-heavy enterprises. Palo Alto Networks completed its acquisition on 29 May 2026. Con: the roadmap now answers to a security company.
  • OpenRouter — best for trying many models fast. Con: bring-your-own-key usage above $25,000 a month carries a 5% fee, per its FAQ.
  • Vercel AI Gateway — best for teams with no ops budget. It adds "zero markup to provider token prices, including with BYOK," Vercel's docs state. Con: budgets exclude BYOK spend.
  • Cloudflare AI Gateway — best for edge caching of repeat prompts. Con: no published overhead figure and no self-host option.
  • Kong AI Gateway — best if Kong already runs your APIs. Con: the advanced AI features sit in the commercial tier.
  • Bifrost — best for latency-critical, self-hosted traffic. Con: 11 µs is a vendor benchmark on a vendor-chosen instance.

Notice the state column. It says the same thing seven times, and that is the finding.

"Routing non-deterministic AI workloads through a centralized gateway can introduce latency, integration complexity, and potential architectural concentration risk." — Stephanie Walter, Practice Leader, AI Stack, HyperFRAME Research

What happens to a live conversation when the upstream model fails?

The gateway resends the failed turn to the fallback model, and the conversation survives only if that turn carries the full history. Gateways retry a request; they don't remember the conversation it belongs to.

That breaks once providers hold state for you. With OpenAI's Responses API, a turn can point at previous_response_id instead of resending the history, and response objects are "saved for 30 days by default," OpenAI's conversation-state guide says. A fallback to Anthropic or Gemini cannot resolve that ID. The customer's refund request becomes a stranger's first message.

LLM gateway failover mid-conversation: full message history survives the switch to a fallback provider, while previous_response_id chains and the warm prompt cache stay with the original provider

Caches break the same way. OpenAI discounts cached input "up to 90%," but "caches are not shared across organizations," its prompt caching guide notes. A different provider means a cold cache. So the first turn after failover is the slowest and most expensive turn in the whole conversation.

In Aissist's own AgentMesh™ deployment, on OpenAI's Responses API with prompt caching keyed per conversation, a fallback turn starts cold: full input price, slower first token, on the ticket already in trouble. Our rule: the application stores the transcript; the gateway only sees complete turns.

Dated note: who owns your gateway (as of 13 November 2026) Stripe closed its OpenRouter acquisition on 10 November, five months after Palo Alto Networks closed on Portkey. LiteLLM shipped compromised releases in March and October, per Datadog Security Labs: pin versions. Off this list, Helicone has been in maintenance mode since Mintlify bought it in March.

What does an LLM gateway cost per resolved ticket?

The gateway fee is the smallest number on a support ticket; the escalation it fails to prevent is the largest. Assume $0.05 of model spend per agentic conversation (our illustrative assumption). OpenRouter's 5.5% fee adds under $0.003; Vercel adds nothing. Caching that halves the token bill saves $0.025. If the conversation escalates anyway, Gartner's median assisted contact costs $13.50: the token saving from 540 conversations.

GatewayPII redaction at the gatewayPublished price (13 Nov 2026)Free tier
LiteLLMYes, Presidio masking in the free tierOpen source; Enterprise on requestSelf-host
PortkeyPII Anonymizer listed; plan not stated$49/mo for 100K logs, +$9 per 100K10K logs/mo
OpenRouterNot listed5.5% platform fee (Standard)25+ free models, 50 req/day
Vercel AI GatewayNot listed; zero-data-retention routingNo markup or platform fee on tokensMonthly free credits, subset of models
Cloudflare AI GatewayDLP scanning, two free profilesCore features free; 5% on unified-billing creditsYes
Kong AI GatewayAI PII Sanitizer, Enterprise onlyOn requestOpen-source Kong Gateway
BifrostGuardrails on enterprise deploymentsEnterprise via demoSelf-host

LLM gateway cost per resolution: one $13.50 escalated contact equals the token savings from 540 cached support conversations, against a gateway fee under $0.003

"Tokens are the central currency for companies building with AI." — Patrick Collison, CEO, Stripe, as reported by The New Stack

For a support team, the currency is resolutions. A gateway that halves token spend on a conversation that still escalates has saved nothing, so measure cost per ticket and ROI on resolution. And a card number a customer pastes should never reach a model or a log.

How should you choose an LLM gateway?

Choose on who owns failure, not on how many models a gateway lists. Every gateway here reaches the major providers. What differs is where it runs, who pays for its mistakes, and what it tells you afterwards.

  • If you must keep data in your own cloud, choose LiteLLM or Bifrost, because both are permissively licensed and self-hosted.
  • If you need budgets and audit across many teams, choose Portkey or Kong, because both treat the gateway as a control plane.
  • If you have no one to run infrastructure, choose Vercel AI Gateway or OpenRouter, because both are managed and bill per token.
  • If first-response time is your SLA, measure p95 with your own traffic, because every figure in the table is vendor-published.
  • If tickets carry card numbers or addresses, choose LiteLLM or an enterprise tier of Kong or Bifrost, because redaction must happen before the model sees the text.
  • If you use previous_response_id or OpenAI's new Agents API sessions, keep a transcript in your own store, because no gateway can move provider-held state to another provider.

See our build vs buy guide for where the gateway line sits in a larger AI stack, and token efficiency for why cached tokens matter to the bill.

"AI is evolving so rapidly that organizations often feel forced to choose between two failing strategies" — Lee Klarich, Chief Product & Technology Officer, Palo Alto Networks

Fail over the request, own the conversation

The best LLM gateway for your stack is the one that matches where you run and who governs spend. None of them keeps a customer conversation intact across providers, because none of them is meant to. That job sits one layer up, in the application or the multi-agent platform that owns the transcript, the cache strategy and the escalation path. Pick the gateway for uptime, redaction and cost. Design the state yourself. See the rise of AI middleware.

Frequently asked questions

What is an LLM gateway?

An LLM gateway is a single API endpoint that sits between your application and model providers. It handles keys, retries, fallbacks, rate limits and logging, so one provider's outage doesn't take your product down.

Does an LLM gateway add latency?

Yes, though vendor figures are small: Bifrost publishes 11 µs and LiteLLM 8 ms p95. The bigger hit after failover is a cold prompt cache on the fallback provider.

What are the best OpenRouter alternatives?

Vercel AI Gateway is the closest managed alternative, with no markup on tokens. Requesty and orq.ai are hosted routers at 5% and 4.5% fees, and LiteLLM suits teams that want to self-host.

Can I use an LLM gateway with OpenAI's Responses API?

Yes. Vercel AI Gateway lists the Responses API among its supported formats. But a fallback to another provider cannot reuse previous_response_id, so send full history on any turn that might fail over.

Do LLM gateways redact PII?

Some do. LiteLLM includes Presidio masking in its free tier, Cloudflare offers free DLP scanning with two predefined profiles, and Kong and Bifrost keep redaction in enterprise tiers.

Read Next

Lifan Xu

Lifan Xu

Co-founder

Lifan is the co-founder of Aissist.io and holds a PhD in AI, specializing in deep learning, information security, and enterprise-grade automation.