Gateway Control Plane (API / AI / MCP Gateways)
The gateway layer that governs traffic to services and to LLMs and agent tools (routing, token and rate limits, auth, guardrails, observability), and the open question of whether API, AI and MCP gateways converge.
Also known as: AI gateway, MCP gateway, LLM gateway, gateway control plane, gateway convergence
Part of: Model Routing
How authors use it
Oldest first (extraction date when no publication date is known).
| Author | Their term | Their meaning |
|---|---|---|
| The Pulse: a new trend, smart model routing The Pragmatic Engineer (Gergely Orosz) · 2026-07-03 | AI gateway | A proxy layer through which a workplace funnels its LLM API calls; increasingly ships with routing that can pick models by cost, latency, and availability |
| An Evolutionary Architecture Pattern for Managing AI's Pace of Change Joe Price, Branimir Đurek, Pavlos Migkiros, Trevor Dearham · 2026-07-27 | AI gateway | A single control plane — an architectural seam — that concentrates the fastest-changing concerns of agentic AI systems (model routing, agent identity, action policy, segmentation, content guarding, and audit) so the rest of the enterprise architecture can stay stable while that layer evolves at its own pace. |
| API Gateway and AI Gateway: Do You Need Both? Janet Wagner · 2026-10-21 | AI gateway | Middleware and single control plane for outbound application-to-LLM interactions: prompts and responses, and for some products MCP tool calls and A2A traffic; capabilities include model routing, semantic caching, token rate limiting, prompt enrichment, input/output guardrails and LLM observability. |
Documents (3)
- API Gateway and AI Gateway: Do You Need Both? Janet Wagner · 2026-10-21 source ↗ Reader 🖥️
API gateways govern inbound client-to-service traffic with request-based semantics while AI gateways govern outbound application-to-LLM traffic with token-based semantics, so most organizations building LLM-driven applications need both today, even though vendors are converging them into a single layer. - An Evolutionary Architecture Pattern for Managing AI's Pace of Change Joe Price, Branimir Đurek, Pavlos Migkiros, Trevor Dearham · 2026-07-27 source ↗ Reader 🖥️
Because AI capabilities, protocols, and threats now change faster than enterprise systems can safely absorb — a gap the authors treat as permanent rather than a phase to wait out — organizations should deliberately concentrate the fastest-moving AI concerns (model routing, identity, action policy, segmentation, content guarding, and audit) into one architectural seam, the AI gateway, so the rest of the enterprise can remain stable, and should build that seam proactively rather than at the higher cost of building it after an incident forces the issue. - The Pulse: a new trend, smart model routing The Pragmatic Engineer (Gergely Orosz) · 2026-07-03 Reader 🖥️
A new category of 'intelligent' model-routing tools is emerging to let engineering organizations cut AI spend by automatically directing each task to the cheapest model capable of handling it, and — because cheaper open models are now considered sufficient for a large share (~60%) of coding work — this routing capability is on track to become table stakes across all AI vendors.
Propositions touching this concept (9)
By publication month, oldest first (extraction month when no publication date is known).
2026-07
- explicitcorroboratedConcentrating the fastest-changing AI concerns — model routing, identity/authorization, action policy, segmentation, content guarding, and audit — into a single gateway control plane lets the rest of the enterprise architecture remain stable while that layer evolves at its own pace.
- explicitdevelopedThe AI gateway pattern introduces real costs — latency, centralization risk, false-positive/false-negative guardrail failures, and operational overhead — and is not always the right choice; single-team or single-LLM-provider use cases may find in-application guardrails sufficient.
- implicitOrganizations with mature API governance, observability, and platform engineering can transfer that maturity to build an AI gateway proactively, while organizations lacking it will discover the need only under incident pressure and pay the difference — treated as a difference in prior organizational capability rather than a choice equally available to any organization.
- explicitBecause most STAR processing is I/O-bound (telemetry retrieval and LLM requests), an asynchronous, Redis-backed execution model lets it process multiple analyses concurrently while respecting external rate limits from Datadog and the internal AI gateway.
- explicitUber's generative-AI gateway takes a related but distinct approach at the application boundary: an OpenAI-compatible interface across externally-hosted and internally-managed models, centralizing authentication, caching, observability, and routing.
2026-10
- explicitAn AI gateway is primarily about outbound traffic: it is the single control plane governing how applications call external or self-hosted LLMs (and, for some products, MCP tool calls and A2A traffic).
- explicitRequest-count rate limiting is the wrong cost-control unit for LLM traffic: it treats a 50k-token prompt and a 200-token prompt as the same, whereas an AI gateway limits on input and output tokens.
- explicitMost companies building LLM-driven applications should run both an API gateway (if they expose more than a few services) and an AI gateway (if they rely on multiple LLMs).
- explicitRouting LLM traffic through an existing API gateway leaves teams blind to per-team token spend and unable to set budget caps that fire before the bill arrives; the failure is a category error (building an AI gateway inside an API gateway), not a defect of the API gateway.
Tensions
Is the model a swappable, commoditized component (so selection is a cost decision), or is model choice load-bearing (so selection is a capability decision)?
from: When working with AI coding agents, how should you select the model, its reasoning/effort level, and its context size for a given task?
- GitHub - musistudio/claude-code-router: Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the model while enjoying updates from Anthropic. (musistudio): Swap camp: the model is fungible config behind Claude Code's durable harness; route each sub-task to the cheapest capable model across many providers and keep the harness.
- Hugging Face's Clem Delangue: Stop Comparing Engines to Cars (Turing Post (Ksenia Se interviewing Clem Delangue)): Swap camp: open weights are not 'behind' — they only look weaker because harnesses were optimized for proprietary APIs; the gap is a harness artifact.
- The Pulse: a new trend, smart model routing (The Pragmatic Engineer (Gergely Orosz)): Swap camp: 'which model to use' is shifting from a deliberate engineering decision to a commoditized, automatable one; open models cover ~60% of coding work by token spend.
- Coding Models Are Doing Too Much (nrehiew.github.io): Load-bearing camp: model choice materially changes output quality — the spread is enormous on the exact behavior that matters for brown-field editing.
- [MODEL] Claude Code is unusable for complex engineering tasks with the Feb updates #42796 (stellaraccident (via https://github.com/anthropics/)): Load-bearing camp: the specific model and its reasoning allocation are structurally required; degrading the SAME model catastrophically broke a proven workflow.
- Claude Code: Best practices for agentic coding (Anthropic (Claude Code best practices guide)): In the middle / silent: treats 'Claude' as one undifferentiated model and never addresses model selection at all.
Assessment: Both camps are right about different task strata, and the tie is broken by the routing camp's own artifact. Commoditization holds on the bulk/background tier (musistudio and the Pragmatic Engineer are correct that a cheap or open model suffices for a large share of tokens), but model choice is load-bearing exactly on the hard tier — the 'hardest 40%' the routing camp routes AWAY (the Pragmatic Engineer's own gap notes 60%-of-token-spend is not 60%-of-value). nrehiew's 6.5x over-editing spread and stellaraccident's collapse are measured on precisely that hard tier. The clincher the swap camp does not concede: musistudio's OWN per-model transformers (tooluse, enhancetool, reasoning, deepseek, gemini) prove the harness is NOT model-agnostic — every model needs bespoke request/response rewriting just to work behind Claude Code, so the 'any model' artifact self-refutes. Delangue even concedes the frontier gap himself. Verdict: select cheap-and-swappable for bulk, and treat the model as a load-bearing capability decision for the hardest slice — the two positions are not competitors but a partition of the task distribution.
Who selects the model/effort/context — a human deciding per task, or an automatic router — and who is trusted to hold the dial?
from: When working with AI coding agents, how should you select the model, its reasoning/effort level, and its context size for a given task?
- Charlie Hills 🦩's Post (Charlie Hills 🦩): Human selects: the developer manually assigns Opus to think and Sonnet to build.
- Claude Code: Best practices for agentic coding (Anthropic (Claude Code best practices guide)): Human selects: the user picks the thinking level (think/ultrathink) and configures the tools per task.
- The Pulse: a new trend, smart model routing (The Pragmatic Engineer (Gergely Orosz)): Auto-router selects — but beware who owns it: an intelligent router (or Cursor 'Auto') picks the cheapest capable model automatically.
- GitHub - musistudio/claude-code-router: Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the model while enjoying updates from Anthropic. (musistudio): Semi-automatic, user-owned rules: config-driven scenario routing plus custom-router JS and subagent pinning.
- [MODEL] Claude Code is unusable for complex engineering tasks with the Feb updates #42796 (stellaraccident (via https://github.com/anthropics/)): The dial must be transparent and user-controllable: the real harm was the PROVIDER silently rationing the effort dial.
Assessment: The human-vs-auto axis is less about capability than about (a) whether task difficulty can be detected a priori and (b) who bears the principal-agent risk. No router in the corpus actually measures difficulty — musistudio routes by token-count and static scenario, and the Pragmatic Engineer's routers infer 'good enough' without a demonstrated oracle — so 'auto' today means 'static-heuristic', not 'optimal'. Automation is safe when the user owns the policy (musistudio) and dangerous when the router profits from the choice (Cursor Auto) or when the provider adjusts the dial invisibly (stellaraccident). Verdict: keep the human holding the difficulty judgment and the effort dial until routers can both measure adequacy and prove neutral incentives; automate only the mechanical dispatch, over rules you own and can audit.
Open gaps (5)
- incompleteEvery quantitative claim (20-30% savings, 60% of work sufficient for open models) is sourced from vendors or a vendor CEO with a direct commercial interest; there is no independent benchmark of either the cost savings or, crucially, the routing quality.The Pulse: a new trend, smart model routing — read next: Independent routing benchmarks and methodology — e.g., the RouteLLM paper, Not Diamond's / LMSYS routing evaluations, and cost-vs-quality studies that measure whether the 'cheapest capable' choice actually holds up on hard tasks.
- incompleteThe load-bearing assumption — that 'good enough' can be reliably detected per task so that downgrading to a cheaper model preserves quality — is never examined. The hard part of any routing system is the evaluation of task difficulty and output adequacy, which the piece treats as solved.The Pulse: a new trend, smart model routing — read next: LLM-eval literature and task-difficulty classification; how routers estimate confidence/complexity; the adjacent argument (e.g. Elena Verna's 'AI Confidence Theater') that the real work is the ongoing eval/iteration, not the first prompt.
- incompleteBanks are named as the marquee buyers, yet the governance/security dimension is entirely absent: routing sensitive enterprise code and prompts to cheaper/open/third-party-hosted models raises data-residency, IP-leakage, and compliance questions that go unmentioned — a genuine blind spot given the audience.The Pulse: a new trend, smart model routing — read next: Enterprise AI governance and data-egress controls; self-hosting open-weight models behind the firewall; regulatory constraints on where model inference may run (especially relevant to Nordic/EU public-sector and critical-infrastructure contexts).
- incompleteThe incentive-conflict problem is flagged only for Cursor but never generalized: any router operated by a party that profits from token usage or from steering to a preferred model is a principal-agent problem, and the reader is left to notice this alone.The Pulse: a new trend, smart model routing — read next: Frame routing as a two-sided market / principal-agent design problem; evaluate router neutrality (bring-your-own-keys, router-only services like Kilo) versus vendor-locked routers.
- incompleteThe '60% sufficient by token spend' figure conflates volume with value: 60% of token spend is not 60% of business value, and the hardest 40% may be exactly where frontier-model quality matters most, so the savings story may understate the risk concentrated in high-stakes tasks.The Pulse: a new trend, smart model routing — read next: Distribution of task criticality and the marginal value of frontier models on the hardest tasks; portfolio thinking about where to spend the expensive tokens rather than average-cost reasoning.