An LLM gateway is one endpoint between your code and model providers such as OpenAI and Anthropic that handles keys, fallbacks, caching and spend limits. OpenRouter is the quickest hosted pick, LiteLLM leads for teams that want to self-host for free, and Vercel AI Gateway passes tokens through at provider list price with no markup.
The ten below are ranked for a developer wiring several models into one app: how little setup each needs, then what it adds to the bill. That ranges from $0 on self-hosted LiteLLM and Bifrost to an 8% fee on OpenRouter’s Business plan, and one gateway, Portkey, no longer prints a price at all.
What an LLM Gateway Does Between Your App and the Model
An LLM gateway is a single API that receives your model calls, picks a provider, retries or falls back when one fails, and records cost and usage per key. The choice that matters most is who runs it: hosted routers charge a fee on spend, while self-hosted proxies cost nothing in licence but need your servers.
The pattern is the classic API gateway: a front end that enforces throttling and security policy and forwards each request to the back end, here applied to model providers.
Most gateways accept OpenAI’s Chat Completions request shape, so moving an app is often a base URL change. OpenRouter calls itself a drop-in replacement for OpenAI, Kong’s AI Proxy uses the OpenAI format by default, and LiteLLM, Requesty, Bifrost and Vercel all expose OpenAI-compatible endpoints. Cloudflare is the exception: its OpenAI-compatible endpoint is deprecated for single-model calls in favour of its REST API.
LLM Gateway Pricing and Features for All 10 Picks
| # | Gateway | Best for | Starting price | Free plan or trial | Fee on model spend |
|---|---|---|---|---|---|
| 1 | OpenRouter | One key for 700+ models | Pay as you go | Free plan, 50 requests a day | 5.5% on card top-ups, 8% on Business |
| 2 | LiteLLM | Self-hosting with budgets per key | $0 open source; Enterprise by quote | Free forever; 30-day Enterprise trial | None |
| 3 | Vercel AI Gateway | List-price tokens on a hosted service | Provider list price | $5 monthly credit | None (paid add-ons) |
| 4 | Cloudflare AI Gateway | Free caching, logs and rate limits | Free core features | All plans, including Workers Free | 5% on Unified Billing credits only |
| 5 | Requesty | Guardrails and EU residency on a router | Model cost plus 5% | Free models, 200 requests a day | 5% |
| 6 | Bifrost | Low-overhead gateway written in Go | $0 open source; Enterprise custom | Free; 14-day Enterprise trial | None |
| 7 | Portkey | Palo Alto Networks security customers | Quote only | MIT open-source gateway | Not published |
| 8 | TrueFoundry | SSO and budgets on a seat price | $25 per user a month | Developer tier, up to 3 users | None (pass-through) |
| 9 | Kong AI Gateway | Teams already running Kong | From $25 a month plus usage | 30-day trial, no card | None; $100 a month per model |
| 10 | Azure API Management | Apps on Azure OpenAI or Foundry | Basic v2 $150.01 a month | First 1M Consumption operations | None; billed per tier unit |
The 10 Best LLM Gateways, Ranked for Developers
1. OpenRouter: One Key and One Balance for 700+ Models

Price: no markup on inference; 5.5% fee on card credit purchases ($0.80 minimum), 8% on Business | Free: 25+ free models, 50 requests a day | Reach: 700+ models from 100+ providers
OpenRouter is the shortest path from one model to many. You buy credits once, point an OpenAI client at it and call any model in the catalogue. If a provider returns an error, OpenRouter falls back to the next one, and failed or fallback attempts are not billed. Prompts and completions are not logged by default.
The fee sits on top-ups, not requests: $100 of credits by card costs $105.50 on Standard, or 5% with no minimum when paid in crypto. Business raises the fee to 8% in return for EU and US in-region routing and 1,000 workspaces. Traffic on your own provider keys is free up to $25,000 of list-price inference a month, then 5%. SSO and contractual SLAs are Enterprise-only, and nothing here runs on your servers.
2. LiteLLM: The Free Proxy You Run Yourself

Price: Open Source $0, self-hosted; Enterprise by annual quote, never per token | Free: free forever, plus a 30-day Enterprise trial key | Reach: 140+ providers and 1,800+ models
LiteLLM is the default open-source answer: a proxy you deploy that exposes one OpenAI-compatible API, with virtual keys, budgets and rate limits per key, user and team, LLM fallbacks, request logging and Prometheus metrics in the free build. Caching covers exact and semantic modes backed by Redis, Qdrant, S3 or GCS. The GitHub repository has 64,511 stars.
What you pay instead of a licence is operations: Postgres and Redis, upgrades and log storage are yours to run. SSO with SCIM, audit logs, secret managers and air-gapped deployment are Enterprise features, priced on annual request capacity and deployment shape.
3. Vercel AI Gateway: List-Price Tokens With Paid Extras

Price: provider list price, no markup or platform fee; add-ons billed per 1,000 requests | Free: $5 a month credit for Free Tier models | Reach: 400+ models
Vercel AI Gateway accepts OpenAI Chat Completions, OpenAI Responses and Anthropic Messages requests, so a base URL swap moves an existing app over. When a provider fails, the gateway fails over to the same model on another provider, and budgets can cap spend per team, project, API key or member.
Zero markup has fine print. Optional features bill per request: team-wide zero data retention costs $0.10 per 1,000 requests, regional hosting adds 5% of inference cost, and switching off Fallback to Vercel Keys adds $0.20 per 1,000 BYOK requests. Those surcharges apply to BYOK traffic too. The $5 credit covers a subset of models, and BYOK needs purchased credits.
4. Cloudflare AI Gateway: Free Caching and Rate Limits at the Edge

Price: core features free; 5% fee on Unified Billing credits | Free: every plan, including Workers Free | Reach: 24 provider-native integrations
Cloudflare gives away the parts most developers want first: dashboard analytics, caching and rate limiting, plus retries, model fallback and dynamic routes chosen by latency, cost or availability. Put the gateway URL in front of the provider keys you already have and Cloudflare adds no fee at all.
Two limits shape the choice. Caching matches the entire request exactly, with a TTL from 60 seconds to one month, so a reworded prompt misses. Accounts whose first gateway dates from September 24, 2026 or later pay Workers Logs rates for logs, and buying model credits through Unified Billing adds 5%, so $100 costs $105.
5. Requesty: A 5% Router With Guardrails Built In

Price: model cost plus 5%, no seats or minimum spend | Free: free models, 200 requests a day, no card | Reach: 600+ models from 30+ providers
Requesty is the closest hosted alternative to OpenRouter, priced as a markup on model cost: a model that costs $10 per 1M tokens costs $10.50. Routing policies, automatic fallbacks, load balancing, latency routing and prompt caching come on every plan, with EU data residency and spend limits per key and user.
Pay as you go adds guardrails and PII detection, an MCP gateway and bring-your-own keys. SSO, full RBAC and audit logs need Enterprise, and there is no self-hosted edition.
6. Bifrost: A Go Binary With Semantic Caching in the Free Tier

Price: OSS free forever; Enterprise custom | Free: self-hosted OSS; 14-day Enterprise trial | Reach: 10,000+ models across 35+ providers
Bifrost, from Maxim AI, ships as a Go binary, Docker image or Kubernetes deployment with OpenAI-compatible endpoints, so switching is a base URL change. The free build already includes simple and semantic caching, automatic fallbacks, an MCP gateway, and budgets and rate limits per virtual key, team and customer.
Maxim quotes under 200µs of added overhead at 5,000 requests per second; that figure, like its head-to-head test against LiteLLM, is Maxim’s own measurement. Guardrails, SAML or OIDC sign-on, audit logs, Vault support and log exports are Enterprise features. The repository is Apache-2.0 with 10,216 stars.
7. Portkey: Enterprise Gateway Now Sold by Palo Alto Networks

Price: quote only | Free: MIT open-source gateway on GitHub | Reach: 1,600+ LLMs
Portkey built a gateway with fallbacks, conditional routing, load balancing, budgets, rate limits and guardrails, and says it powers 3000+ GenAI teams. Palo Alto Networks announced that it completed its acquisition of Portkey on May 29, 2026, and Portkey now presents the product as PRISMA AIRS AI Gateway.
For a developer, that changes the buying route. Portkey’s pricing link now leads to a Palo Alto Networks sales form, so pricing is by quote with no published figure. The MIT-licensed gateway on GitHub (13,481 stars) is the self-serve way to try it, and Portkey supports self-hosted, hybrid and air-gapped deployment.
8. TrueFoundry: Seats, Pooled Requests and SSO From $25

Price: Pro $25 per user a month, 20K requests per user pooled, $20 per extra 100K | Free: Developer tier, up to 3 users and 10K requests each | Reach: LLM and MCP gateway
TrueFoundry prices by seat rather than by token, and model costs pass through without markup. Pro includes 20K requests and tool calls per user each month, pooled across the team, plus built-in guardrails, up to 10 budget rules, 30-day log retention and SSO with custom roles.
Request-heavy teams with few seats pay overage in 100K blocks: seven users sending 1M requests a month pay $175 in seats plus $180 for 860K extra requests, $355 in all. VPC, on-prem and air-gapped deployment need Enterprise, on a custom annual commitment.
9. Kong AI Gateway: Model Proxies Priced per Model

Price: Plus from $25 a month plus usage; $100 a month per model proxy | Free: 30-day Plus trial, no credit card | Reach: 17 providers in the AI Proxy plugin
Kong AI Gateway adds model traffic rules to Kong’s API platform. The AI Proxy plugin uses the OpenAI format by default across 17 providers, from OpenAI and Anthropic to Ollama and vLLM, and the platform adds semantic caching, semantic routing, load balancing and token quotas by user, model and time window.
The bill stacks. On Konnect Plus, a serverless control plane is $25 a month, each proxied model $100 a month (five at most), and traffic past the included 1 million requests costs $200 per extra million, up to 10 million. The semantic cache and AI Sanitizer plugins are paid add-ons on Plus. It suits a team already running Kong for APIs better than a solo developer.
10. Azure API Management: Token Quotas for Azure Deployments

Price: Basic v2 $150.01 a month with 10M requests; tier prices vary by Azure region | Free: Consumption tier includes the first 1M operations | Reach: OpenAI, Anthropic Messages and Vertex AI backends
Azure’s AI gateway is a set of policies inside API Management, not a separate product. The llm-token-limit policy caps tokens per minute or sets quotas per subscription key, IP address or custom key, load balancing runs round-robin, weighted or priority-based with a circuit breaker, and prompts and completions can be logged to Azure Monitor.
It is the natural pick when models already live in Azure OpenAI or Microsoft Foundry. Tiers bill by the hour even when idle (Consumption excepted), and semantic caching needs a Redis-compatible cache that you pay for.
What a Gateway Adds to $4,000 of Monthly Model Spend
Take an app that spends $4,000 a month on tokens, sends 500,000 requests, has three developers and calls two models. The table shows what each gateway adds on top of the token bill, with the inputs behind each figure so the sums can be rerun.
| Gateway | Pricing input | Working | Added per month |
|---|---|---|---|
| Vercel AI Gateway | No markup or platform fee | add-ons switched off | $0 |
| LiteLLM or Bifrost (open source) | $0 licence | self-hosted | $0 plus your servers |
| Cloudflare AI Gateway | 5% on Unified Billing credits | $4,000 x 5% | $200 ($0 on your own keys) |
| Requesty | 5% of model cost | $4,000 x 5% | $200 |
| OpenRouter Standard | 5.5% on card top-ups | $4,000 x 5.5% | $220 |
| Azure API Management | Basic v2, 10M requests included | one unit | $150.01 (region-dependent) |
| OpenRouter Business | 8% on top-ups | $4,000 x 8% | $320 |
| TrueFoundry Pro | $25 per user; 20K requests per user; $20 per extra 100K | 3 x $25 + 5 x $20 (440K over) | $175 |
| Kong Konnect Plus | $25 control plane; $100 per model; 1M requests included | $25 + 2 x $100 | $225 |
| Portkey | Quote only | not published | Not published |
Percentage fees scale with tokens, so doubling the token bill doubles them, while Kong and TrueFoundry move with models, seats and requests instead. OpenRouter’s BYOK allowance changes the maths again: the first $25,000 of list-price inference a month on your own keys carries no fee. The same markup arithmetic decides other API middlemen, such as WhatsApp Business API providers ranked by markup.
Caching and Fallbacks: Where the 10 Gateways Differ
Caching splits the field. Exact-match caching returns a stored answer only when the whole request repeats; semantic caching also matches prompts with similar meaning, using embeddings.
- Semantic caching in the free build: LiteLLM and Bifrost.
- Semantic caching on a paid tier or add-on: Kong (AI Semantic Cache plugin), Portkey (select Enterprise plans) and Azure API Management (needs a Redis-compatible cache).
- Exact match only: Cloudflare AI Gateway, for text and image responses.
- Provider prompt caching rather than a response cache: OpenRouter, Requesty and TrueFoundry.
Semantic caching saves tokens on near-duplicate questions, but Microsoft warns it “can surface responses that are incorrect, outdated, or unsafe”, so scope it to answers that do not change per user. Fallback behaviour varies too: OpenRouter moves to the next provider and skips billing for the failed try, Vercel retries the same model elsewhere, and Kong and Azure balance across backends with weights or priorities.
Self-Hosting an LLM Gateway: Free Licence, Your Uptime
Three picks have a free self-hosted build: LiteLLM, Bifrost and Portkey’s MIT gateway. Kong Gateway’s core is Apache-2.0, but its enterprise AI plugins are paid add-ons on Plus and fully self-hosted AI gateways fall under Gateway Enterprise. Azure’s self-hosted gateway costs nothing extra on the Developer tier, which is for non-production use.
Self-hosting keeps prompts and provider keys inside your network and removes the per-token fee, but you own patching. LiteLLM disclosed two 2026 incidents in which compromised releases reached public registries (1.82.7 and 1.82.8 on PyPI in March, 1.107.0 in October), clean versions followed, and pinning an exact version is the standard safeguard. Apps that ground model answers in live search results usually pair the gateway with one of the SERP APIs for Google and Bing.
Picking an LLM Gateway for Your Stack
- You want one key and no servers: OpenRouter, or Requesty if guardrails and EU residency matter on the base plan.
- You deploy on Vercel or want list-price tokens: Vercel AI Gateway, with add-ons off until you need them.
- You need logs, caching and rate limits in front of keys you already hold: Cloudflare AI Gateway, free.
- Prompts or keys must stay in your network: LiteLLM or Bifrost, version-pinned.
- A team needs SSO on a published price: TrueFoundry Pro at $25 per user.
- You already operate Kong or Azure API Management: add the AI gateway to that platform.
Frequently Asked Questions
What is the difference between an LLM gateway and an LLM router?
A router picks which model or provider serves each request, by price, latency or availability. A gateway includes that routing and adds keys, budgets, rate limits, logging and caching. OpenRouter and Requesty now cover most gateway features, while LiteLLM and Kong are gateways with routing built in.
Is there a free LLM gateway?
Yes. LiteLLM and Bifrost are free to self-host, and Cloudflare’s core features are free on every plan. Hosted free tiers are small: OpenRouter allows 50 requests a day on free models and Requesty 200.
Can I use my own provider API keys?
Yes on most. OpenRouter waives its fee on the first $25,000 of BYOK inference a month, Vercel adds no markup but still charges any add-ons you enable, and Cloudflare’s key storage is in beta. Self-hosted gateways always use your keys.
Related Articles
Get the Fox Bulletin briefing
The stories that matter, in your inbox. No spam, unsubscribe anytime.
Newsletter signup will be available soon.
