Roundup

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

GatewayRuns whereLicence or pricingBest for
OpenRouterHosted5.5% fee on credits; BYOK free up to $25,000 a monthMost models behind one key
Vercel AI GatewayHostedNo markup or platform fee on tokensTeams on Vercel and the AI SDK
Cloudflare AI GatewayHostedCore features free; 5% on Unified Billing creditsTeams on Cloudflare
LiteLLMSelf-hostedMIT open source; paid EnterpriseWidest provider coverage
BifrostSelf-hostedApache 2.0; paid enterprise deploymentsLow overhead, simple deploy
PortkeySelf-hosted (MIT) or Palo Alto Networks (commercial)MIT gateway; Prisma AIRS commercialGuardrails and AI security
Kong AI GatewaySelf-hosted, on Kong GatewayOpen-source core plus enterpriseTeams already running Kong
AI Gateway by LayerXSelf-hosted or managed by LayerXCommercial licenceYour own GPUs first, many users

How to choose

Answer three questions and most of the list falls away:

  1. Can your prompts pass through a third party? If not, skip the hosted options.
  2. 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.
  3. 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

SituationPick
Small team, hosted is fine, want many modelsOpenRouter
Hosted, want no fee, on VercelVercel AI Gateway
Hosted, on Cloudflare, want guardrailsCloudflare AI Gateway
Self-hosted, need many providersLiteLLM
Self-hosted, care about overheadBifrost
Security-led, buying from Palo AltoPortkey (Prisma AIRS)
Already standardised on KongKong AI Gateway
Own GPUs, many internal users, cost per personAI 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.

More posts

Keep reading.

See how AI Gateway fits your setup.

Tell us what you run today and how many people need access. We'll get back to you to learn more about your setup.

See how AI Gateway fits your setup.

What do you run today?