The best LLM gateways in 2026: 8 options compared
We compare 8 LLM gateways (OpenRouter, Vercel, Cloudflare, LiteLLM, Bifrost, Portkey, Kong, AI Gateway) by where they run, cost and fit.
There's no single best LLM gateway. The right one depends on where it should run and what you need it to control. For a hosted gateway, OpenRouter has the biggest catalogue and Vercel and Cloudflare add no fee on tokens. To self-host, LiteLLM covers the most providers and Bifrost is the lightest. Portkey and Kong suit security and API platform teams, and AI Gateway by LayerX suits companies sharing their own GPUs.
Facts checked on 2 December 2026. We make AI Gateway; we've tried to describe every option, including ours, the way its own docs would.
The short list
| Gateway | Runs where | Licence or pricing | Best for |
|---|---|---|---|
| OpenRouter | Hosted | 5.5% fee on credits; BYOK free up to $25,000 a month | Most models behind one key |
| Vercel AI Gateway | Hosted | No markup or platform fee on tokens | Teams on Vercel and the AI SDK |
| Cloudflare AI Gateway | Hosted | Core features free; 5% on Unified Billing credits | Teams on Cloudflare |
| LiteLLM | Self-hosted | MIT open source; paid Enterprise | Widest provider coverage |
| Bifrost | Self-hosted | Apache 2.0; paid enterprise deployments | Low overhead, simple deploy |
| Portkey | Self-hosted (MIT) or Palo Alto Networks (commercial) | MIT gateway; Prisma AIRS commercial | Guardrails and AI security |
| Kong AI Gateway | Self-hosted, on Kong Gateway | Open-source core plus enterprise | Teams already running Kong |
| AI Gateway by LayerX | Self-hosted or managed by LayerX | Commercial licence | Your own GPUs first, many users |
How to choose
Answer three questions and most of the list falls away:
- Can your prompts pass through a third party? If not, skip the hosted options.
- Do you run your own models? If yes, look closely at how each gateway treats self-hosted servers: health checks, load and cache reuse, not just vendor fallback.
- Who are the users? A few apps can share keys. Hundreds of employees need their own keys, budgets and model lists, and someone in finance will want cost per person.
Hosted gateways
OpenRouter
One key, 400+ models, no markup on provider prices, and a 5.5% fee on credit purchases ($0.80 minimum). Prompt logging is opt-in, and you can restrict routing to zero-data-retention endpoints or use an EU endpoint on the Business plan (OpenRouter FAQ). Part of Stripe since 10 November 2026.
Choose it for: trying and using many models without accounts at each provider. More in OpenRouter pricing and Is OpenRouter safe?
Vercel AI Gateway
Provider list prices with no markup and no platform fee, including on your own keys. Some add-ons, like regional hosting, carry surcharges; BYOK with fallback turned off costs $0.20 per 1,000 requests (Vercel docs).
Choose it for: hosted routing without a percentage fee, especially on Vercel. See Vercel AI Gateway vs OpenRouter.
Cloudflare AI Gateway
Analytics, caching and rate limiting free on all plans; guardrails via Llama Guard on Workers AI, billed as inference; free DLP scanning; 5% fee on credits bought through Unified Billing (Cloudflare).
Choose it for: teams already on Cloudflare who want caching and guardrails without running anything.
Self-hosted gateways
LiteLLM
The most used open-source gateway, with 100+ providers. The free proxy includes virtual keys, budgets, rate limits, spend tracking, an admin UI, load balancing, guardrails framework and MCP gateway. SSO beyond 5 users, audit logs and secret managers need an Enterprise licence (LiteLLM). Two malicious releases reached PyPI in 2026, so pin versions (what happened).
Choose it for: breadth of providers and endpoints. See LiteLLM alternatives.
Bifrost
A Go gateway from Maxim AI, Apache 2.0, with failover, load balancing, semantic caching, virtual keys, budgets and Prometheus metrics. Maxim reports 11 microseconds of overhead at 5,000 requests per second on a t3.xlarge. Guardrails and clustering are in its enterprise deployments (GitHub).
Choose it for: a fast gateway you can start with one command. See Bifrost vs LiteLLM.
Portkey
The open-source gateway is MIT-licensed TypeScript, claiming 1,600+ models and 50+ guardrails. The commercial platform is now Prisma AIRS AI Gateway from Palo Alto Networks (portkey.ai).
Choose it for: guardrails-first routing, or if you buy from Palo Alto Networks. See Portkey alternatives. Moving off Helicone instead? See Helicone alternatives.
Kong AI Gateway
Kong adds AI features to its API gateway through plugins, starting with AI Proxy, which translates OpenAI-format requests to each provider's format (Kong docs).
Choose it for: companies that already run Kong and want AI traffic under the same platform. If you don't run Kong, it's a lot of platform to adopt for a gateway. See Kong AI Gateway alternatives, and for this year's acquisitions and renames, the AI gateway market in 2026.
AI Gateway by LayerX
Built for companies with their own GPUs and many users. It puts vLLM and Ollama servers and OpenAI-compatible vendors (OpenAI, Groq, Together, OpenRouter) behind one endpoint, sends traffic to your GPUs first with health checks, concurrency limits and prefix-cache affinity, and moves to vendors when needed. Admins invite users by email; each person gets their own keys, daily and monthly token budgets and allowed models. Cost per user, key, model and provider in US dollars. Prompts and responses never stored. Runs on your servers, or LayerX manages it.
Choose it for: sharing your own GPUs and vendor access across a company. Skip it if you need native Anthropic or Bedrock adapters, caching, guardrails, or endpoints beyond chat, embeddings and model listing. See AI Gateway vs LiteLLM.
Our picks by situation
| Situation | Pick |
|---|---|
| Small team, hosted is fine, want many models | OpenRouter |
| Hosted, want no fee, on Vercel | Vercel AI Gateway |
| Hosted, on Cloudflare, want guardrails | Cloudflare AI Gateway |
| Self-hosted, need many providers | LiteLLM |
| Self-hosted, care about overhead | Bifrost |
| Security-led, buying from Palo Alto | Portkey (Prisma AIRS) |
| Already standardised on Kong | Kong AI Gateway |
| Own GPUs, many internal users, cost per person | AI Gateway by LayerX |
Questions
What is the best open-source LLM gateway?
LiteLLM has the widest provider coverage and largest community. Bifrost is the lightest to run. Portkey's MIT gateway focuses on guardrails.
What is the best self-hosted AI gateway?
It depends on your models. For cloud providers only, LiteLLM or Bifrost. For your own GPUs shared across a team, AI Gateway by LayerX. See self-hosted OpenRouter alternatives.
Which LLM gateway is free?
LiteLLM, Bifrost and Portkey's gateway are free and open source; you pay for hosting. Vercel adds no fee on tokens, and Cloudflare's core features are free.
Do I need an LLM gateway?
When several apps or people call models, you use more than one provider, or you need cost per person. See what is an LLM gateway.