BlogWhat Is an LLM Gateway? How It Works and When You Need One
What is an LLM gateway? One API between your app and AI model providers for routing, fallbacks, spend limits and security. How it works and how to choose.
Concentrate.ai
BlogWhat is an LLM gateway? One API between your app and AI model providers for routing, fallbacks, spend limits and security. How it works and how to choose.
Concentrate.ai
An LLM gateway is a single API that sits between your application and AI model providers like OpenAI, Anthropic, Google and open-weight model hosts. Every request goes through it, so one place handles routing, fallbacks, keys, spend limits, logging and security for every model you use. You change a base URL and an API key, and your app can reach hundreds of models without a separate integration for each provider.
Every provider has its own SDK, request shape, errors and model names. A gateway normalizes them behind one OpenAI-compatible API, so switching from Claude Sonnet 5.5 to DeepSeek V4.1 Flash is a model name change. Good gateways also support each provider's native format, like the Anthropic Messages API, so tools like Claude Code work without changes.
The same model is often served by several providers. Claude runs on Anthropic, Azure, Google Vertex AI and Amazon Bedrock. A gateway can send each request to a healthy, fast route and fail over when one goes down, without your code knowing. See fallbacks.
Provider invoices show one total. A gateway ties every request to a team, member, project and key, so you can set daily or monthly spend limits and get alerts before a budget runs out. This matters most for coding agents, where one developer can burn through a week of budget in an afternoon. More in AI spend management.
Because every call passes through it, a gateway can show usage, cost, latency and error rates by model and provider. Some log full prompts and responses. That helps debugging, but it also turns your gateway's logs into one of your most sensitive data stores. For sensitive data you want metadata logged and request bodies kept out.
A gateway is where you enforce company rules once instead of in every app: which models are allowed, which providers can host them, zero data retention, PII and PHI redaction, SSO, role-based access and audit logs of who changed what.
| What it routes by | What it understands | Examples | |
|---|---|---|---|
| API gateway | Path, method, headers | HTTP requests | Kong, Apigee, AWS API Gateway |
| LLM proxy | Model name | Model requests, usually with keys you bring | Self-hosted LiteLLM |
| LLM gateway | Model, cost, policy | Tokens, streaming, spend, providers, compliance |
An API gateway rate limits by request count, but one LLM request can cost a fraction of a cent or several dollars depending on tokens. That's why LLM traffic needs a gateway that counts tokens and dollars. People often say LLM proxy and LLM gateway interchangeably. More in LLM proxy vs LLM gateway.
If you call one model from one provider for one app, probably not yet. You need one when any of these is true:
A self-hosted proxy like LiteLLM is free to download, but you run it: servers, scaling, upgrades, uptime and security patches. It sits in the critical path of every AI request, so when it goes down, your AI features go down. You also bring your own keys and sign your own agreements with every provider.
A managed gateway runs that for you. The best managed gateways also provide the inference, so you don't need an account, contract or rate limit increase with each provider. Concentrate is managed and provides the inference: about 200 models from about 30 providers, with no per-request fees and no markup on tokens. More in LiteLLM alternatives: managed vs self-hosted.
Yes, if the gateway signs a BAA and covers the inference behind it. HIPAA requires a BAA with any service that handles PHI for you, and that includes the gateway and every model provider it routes to. A gateway that only proxies your own keys leaves you signing and tracking a BAA with each provider. A self-hosted gateway doesn't remove that work either.
Concentrate signs one BAA that covers the gateway and the inference on 8 BAA-eligible providers: Anthropic, OpenAI, Azure, Google Vertex AI, Fireworks AI, Azure Fireworks, Baseten and Azure Baseten. In HIPAA mode, zero data retention is locked on, request bodies aren't logged, and fallbacks only go to covered routes. With a BAA, Concentrate is $499/month, with no per-request fees and no markup on tokens. See the HIPAA LLM gateway.
| Gateway | Type | Provides inference | BAA covering inference | Fees |
|---|---|---|---|---|
| Concentrate AI | Managed | Yes | Yes, 8 providers | No per-request fees or token markup; $499/month with a BAA |
| OpenRouter | Managed | Yes |
See the 9 best LLM gateways in 2026 for more options.
What is an LLM gateway? A single API between your application and AI model providers that handles routing, fallbacks, keys, spend limits, logging and security for every model you use.
What is the difference between an LLM gateway and an AI gateway? Nothing in most cases. Both terms describe a gateway for model traffic. Some vendors use AI gateway to include image, speech or agent traffic too.
Is an LLM gateway the same as an API gateway? No. API gateways route HTTP requests and count calls. LLM gateways understand models, tokens, streaming and cost.
Does an LLM gateway add latency? It adds a network hop, usually small next to model response times. Routing to a faster provider and failing over quickly can lower total latency.
Do I need my own provider accounts to use an LLM gateway? Not with a gateway that provides the inference. Concentrate gives you about 200 models with no provider accounts. You can still bring your own keys if you have committed spend with a provider.
Can an LLM gateway cut AI costs? Yes. It shows where spend goes, enforces limits, and makes it easy to move work to cheaper models like DeepSeek V4.1 Flash or GLM-5.3-Flash. Pick one with no fees so savings aren't eaten by markup.
Is there an LLM gateway with a BAA for HIPAA? Yes. Concentrate AI signs a BAA covering the gateway and the inference on 8 BAA-eligible providers. BAA use is $499/month, with no per-request fees and no markup on tokens. Use without a BAA has no subscription fee.
What is the best LLM gateway? It depends on the job. For a managed gateway that provides the inference, charges no fees and covers HIPAA workloads under one BAA, Concentrate AI. For a self-hosted proxy with your own keys, LiteLLM.
LLM Gateway
Change models, providers, add fallbacks, and more by running all AI usage through one platform.
| Concentrate AI, OpenRouter, Aptible |
| No public BAA |
| 5.5% on credit purchases (Standard) |
| Aptible LLM Gateway | Managed | Yes | Yes | List price plus a markup |
| LiteLLM | Self-hosted | No, bring your own keys | No | Free to run; you pay for infrastructure |
| Bifrost | Self-hosted | No, bring your own keys | No | Free to run; you pay for infrastructure |