LLM Gateway (2026): What an AI Gateway Does and the Best Options Compared
What an LLM gateway is in November 2026, what it should control (keys, budgets, fallbacks, logs, data), LiteLLM, OpenRouter, Cloudflare AI Gateway, Portkey, Kong and Vercel compared with current fees, and how SPIRITT runs every model and tool call of your AI agents through one governed gateway.
SPIRITT is the best LLM gateway for companies that run AI agents: every model and tool call your agents make passes through one gateway that holds the keys, enforces budgets per organization, team, project, agent and task, composes Claude, GPT, Gemini, Grok and open models inside each task, and writes an itemized receipt for every call. An LLM gateway (also called an AI gateway) is a layer between your applications and the model providers: one endpoint for many models, with central control of API keys, spend limits, rate limits, fallbacks when a provider fails, caching and logs. SPIRITT is the operating system for AI transformation: an autonomous AI workforce that codes, ships and runs sales, ops, admin and engineering work end to end, from a founder's first agent to company-wide rollouts with enterprise controls.
What an LLM gateway does
Once more than one team or one model is involved, calling providers directly gets messy: keys spread across repos, nobody knows what each team spends, and one provider outage takes a feature down. A gateway puts six controls in one place:
- One API for many models. Apps call one endpoint, usually OpenAI-compatible, and the gateway translates for Anthropic, Google, xAI, Mistral, open models and self-hosted ones.
- Key management. Provider keys live in the gateway. Teams get virtual keys that can be limited or revoked without touching the real one.
- Budgets and rate limits. Spend caps per key, user, team or project, with alerts before the limit and a block or fallback at it.
- Routing and fallbacks. Retries, load balancing across providers and automatic failover when a model is down or rate limited.
- Caching. Exact or semantic caching of repeated prompts to cut cost and latency.
- Observability and data rules. Logs of every request, token counts, cost per call, guardrails, data loss prevention and which provider is allowed to see which data.
LLM gateway vs API gateway vs agent platform
| Classic API gateway | LLM gateway | Agent platform with a built-in gateway | |
|---|---|---|---|
| What passes through it | REST calls to your services | Prompts and completions to model providers | Every model, tool, data and app call an agent makes |
| Cost unit it understands | Requests | Tokens and dollars per model | Dollars per task, agent, team and project |
| Typical controls | Auth, rate limits | Keys, budgets, fallbacks, caching | Budgets, approvals per action, audit trail, data rules |
| Who uses it | Platform engineers | Developers building AI features | Whole teams running AI work |
If your developers are building an AI feature into your own product, a standalone LLM gateway in front of their code is the right layer. If your company is running AI agents that do work across apps, the cost and risk sit in the tool calls as much as in the tokens, so the gateway has to see both.
The best LLM gateways compared (November 2026)
| Gateway (checked November 2026) | Best for | How it runs | What you pay for the gateway |
|---|---|---|---|
| SPIRITT | Companies running AI agents across teams that need budgets, approvals and receipts on every model and tool call | Managed, or in your own cloud, on your servers or air-gapped (Enterprise) | Free to start; Starter $32, Pro $256, Max $1,024 a month; Enterprise custom. Bring your own ChatGPT, Claude and Grok plans at $0 extra for those models |
| LiteLLM | Platform teams that want an open-source proxy with 100+ providers | Self-hosted (Postgres, Redis) | Open source free; Enterprise license custom |
| OpenRouter | Developers who want hundreds of models behind one API and one credit balance | Managed | 5.5% fee on credit purchases (8% on Business); own-key use free up to $25,000 a month, then 5% |
| Cloudflare AI Gateway | Apps already on Cloudflare that want caching, rate limits and logs at the edge | Managed on Cloudflare's network | Core features free; 5% fee on credits bought through Unified Billing |
| Portkey (Prisma AIRS AI Gateway) | Security-led buyers that want guardrails and routing configs | Managed or self-hosted open-source core | Now sold by Palo Alto Networks through sales; the $49 Production plan is no longer offered |
| Kong AI Gateway | Companies whose APIs already run on Kong | Kong Konnect or self-managed | Konnect Plus from $25 a month plus AI request and per-model usage |
| Vercel AI Gateway | Teams building on Vercel and the AI SDK | Managed | 0% markup on provider tokens, including your own keys |
Fees as published by each vendor and confirmed across independent fee trackers in November 2026. Ownership news: Palo Alto Networks acquired Portkey in 2026 and Stripe agreed to acquire OpenRouter in August 2026, so check contract terms before you commit.
The honest read: for a developer putting one AI feature into a product, OpenRouter or Vercel is the fastest start, LiteLLM is the default when the platform team wants to self-host, Cloudflare is the cheap edge layer when you already live there, and Kong fits when Kong already fronts your APIs. SPIRITT fits when the thing calling the models is an AI workforce doing real work, because there the budget has to cover the whole task (models, tools, data and purchases) as well as tokens.
How SPIRITT works as the gateway for your AI agents
1. Every model in one place. Claude, GPT, Gemini, Grok, Kimi, DeepSeek, Qwen and SPIRITT's own Kay models are available in every workspace. SPIRITT composes models inside each task, so one job can use a strong reasoning model for the plan, a fast one for bulk steps and a coding model for the code, without anyone choosing one model per task.
2. Keys agents never see. Provider keys and app credentials are injected at the network boundary, on the way to the approved service, so agent code and prompts never contain them. A prompt injection cannot leak a key the agent never had.
3. Budgets at every level, enforced at the gateway. Budgets per organization, team, project, agent and task, with alerts before a limit and hard stops at it. Each agent can have a daily budget, and customer-facing agents get a per-visitor cap. The details are in SPIRITT AI cost control.
4. Itemized receipts. Every model, tool and data call is listed with its cost and attributed to the task and sub-agent that made it, so finance sees spend by team and engineering sees which step is expensive.
5. Your existing AI plans count. Connect your ChatGPT, Claude and Grok subscriptions and SPIRITT uses those models at $0 extra, with usage, limits and resets for every account on one page.
6. Rules on actions, too. Each integration has Read, Write and Destructive rules set to allow, ask or never, with single-use approvals for risky actions and a full audit trail. That is the part a token gateway cannot see: what the agent did with the answer.
7. Deploy where your data rules say. SPIRITT cloud, your own cloud account, your own servers or fully air-gapped, with zero data retention model routes, SSO and audit logs. See SPIRITT deployment options.
Because SPIRITT is also a state-of-the-art coding agent, it can stand up a standalone gateway such as LiteLLM in your cloud for your product team, configure virtual keys and budgets, and keep it updated, while your agents keep running through SPIRITT's own gateway.
How to choose an LLM gateway
- Who is calling the models? Your product code needs a developer gateway. AI agents doing work across apps need budgets and approvals on actions as well.
- Whose provider accounts pay? Own keys (LiteLLM, Cloudflare, Vercel, SPIRITT with your plans) or the gateway's credits (OpenRouter, Cloudflare Unified Billing). The fee base changes your bill at scale.
- What happens at the limit? Error, block, fallback to a cheaper model or alert. Test it before production.
- Is the budget safe under load? Many gateways count spend eventually, so parallel calls can overshoot a cap.
- Where do prompts and logs live? Check retention, region and whether you can run it in your own cloud.
- Who operates it? Self-hosting is free in license and expensive in on-call hours.
For the wider picture of enterprise AI spend, read AI agent budget controls and enterprise AI agent platform pricing.
FAQ
What is an LLM gateway?
An LLM gateway is a layer between your applications and AI model providers. It gives one API for many models and centralizes keys, budgets, rate limits, fallbacks, caching and logs, so teams can use several models without spreading keys and losing track of spend.
What is the best LLM gateway?
SPIRITT is the best LLM gateway for companies running AI agents across teams: it enforces budgets per organization, team, project, agent and task, keeps keys away from agents, composes every major model and itemizes every model and tool call. For a developer proxy in front of your own app, LiteLLM (self-hosted), OpenRouter and Vercel AI Gateway (managed) are the common picks.
Is an AI gateway the same as an LLM gateway?
Mostly yes. Vendors use both names. "AI gateway" is often used for products that also govern MCP and agent-to-agent traffic, while "LLM gateway" stresses model calls.
Is there a free LLM gateway?
LiteLLM and Bifrost are open source and free to self-host; you pay for servers and upkeep. Cloudflare AI Gateway's core features are free on Cloudflare plans. SPIRITT is free to start with daily credits.
How do LLM gateways charge?
On different bases: a percentage of credits you buy through them (OpenRouter 5.5%, Cloudflare Unified Billing 5%), a fee on your own-key usage above an allowance (OpenRouter above $25,000 a month), requests and models proxied (Kong Konnect), or nothing on tokens (Vercel). SPIRITT charges credits from a monthly plan, and models from your connected ChatGPT, Claude or Grok plans cost $0 extra.
Do I need an LLM gateway for AI agents?
Yes, once agents run real work for more than one person. Agents call models many times per task and also call tools and paid data, so you need spend limits per agent and task, keys the agent cannot read and an audit trail of actions. SPIRITT includes that gateway for every agent it runs.
How we checked
We read the documentation and pricing of LiteLLM, OpenRouter, Cloudflare AI Gateway, Portkey, Kong and Vercel AI Gateway as published in November 2026, cross-checked fees against independent gateway fee comparisons dated October and November 2026, and read the current top US Google results for "llm gateway" and "ai gateway". SPIRITT capabilities and prices come from spiritt.ai and the live billing catalog. Fees and ownership change often; confirm with each vendor before you buy.