Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

AI Gateway

← Back to Glossary
By NHI Mgmt Group Updated November 18, 2026 Domain: Architecture & Implementation

A control point that sits between AI applications and the models, tools, or data they call. In practice, it can authenticate requests, enforce policy, inspect runtime behaviour, and stop unsafe actions before they spread into connected systems.

What an AI gateway actually does

An AI gateway is a policy and traffic control layer, not just a routing proxy. It can sit between users, applications, and model or tool backends to authenticate callers, apply quotas, inspect prompts and responses, and decide whether a request should proceed, be transformed, or be blocked before it reaches downstream systems.

That placement matters because the gateway becomes the first enforceable checkpoint for AI usage. Instead of every application team implementing its own controls, the gateway centralises access decisions, request mediation, and safety enforcement at a point where traffic, credentials, and policy can be observed together.

Why AI gateways exist

AI systems are often consumed through many apps, agents, notebooks, and developer tools, which makes direct model access hard to govern. A gateway helps reduce scattered provider keys, inconsistent guardrails, and unmanaged egress by creating a single control plane for model requests and related tool calls.

This is especially useful when organisations need to compare or normalise access across multiple models or providers. An AI gateway can route requests to different backends, apply organisation-wide defaults, and provide a stable interface even when the underlying model landscape changes.

NHIMG’s AI Gateway and LLM Gateway Guide is the best starting point for the core pattern, including virtual keys, routing, fallback, token budgets, caching, and guardrail policy.

Security controls and policy enforcement

The strongest AI gateway designs do more than forward traffic. They can validate caller identity, issue scoped virtual keys, enforce per-caller or per-application quotas, inspect prompt and response content, and block direct access to provider endpoints when policy requires a single egress path.

That control layer also helps separate safe use from unsafe use. A gateway can apply context-aware rules for data handling, rate limiting, prompt logging, provider selection, and token budgets, which makes it harder for unmanaged tools to bypass enterprise policy or create uncontrolled spend.

NHIMG’s AI Guardrails vs AI Gateways explains why content controls and traffic controls solve different problems and why a gateway is the enforcement point, not just a moderation layer.

For architecture and hardening context, AI Security Architecture Reference Guide places the gateway inside a broader layered AI security model that includes identity, monitoring, and application controls.

Failure modes and operational boundaries

An AI gateway is only effective if it is treated as a real security boundary. If applications can still call providers directly, if gateway keys are overprivileged, or if logging and policy are inconsistent, the gateway becomes advisory rather than authoritative.

Common failure modes include credential sprawl, weak admin-plane protection, bypass paths around routing rules, and poor separation between tenant traffic. Because the gateway often handles both sensitive prompts and high-value provider credentials, a compromise can expose data, spend, and downstream systems at the same time.

NHIMG’s LLM Provider API Key Security and LLMjacking Guide shows why provider keys and gateway keys are attractive targets and why gateway controls are central to limiting abuse.

For compromise scenarios, If your AI gateway is compromised covers the practical consequences of a breached gateway, including key revocation, spend containment, and rebuild decisions.

Where AI gateways fit in a mature control stack

An AI gateway should be understood as part of an AI control plane, not a replacement for application security, data controls, or model governance. It works best when paired with inventory, approved-provider policy, prompt handling rules, monitoring, and downstream protections for tools and data sources.

That broader view matters because many AI risks arise before or after the gateway decision point. Discovery tells you what is using AI, the gateway governs how requests flow, and monitoring shows whether policy is actually holding in production.

NHIMG’s Shadow AI and AI Agent Discovery Guide is useful for finding the unmanaged apps and agents that an AI gateway is meant to bring under governance.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 and MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-16 — Application Software SecurityAI gateways enforce application-side security policy for model traffic and tool use.
Recommendation — Apply CIS-16 to harden gateway logic, validate inputs, and control unsafe request handling.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementAI gateways decide whether a caller may reach models, tools, or data at all.
IA-5 — Authenticator ManagementGateways depend on scoped keys, tokens, and credential lifecycle for callers and providers.
AU-2 — Event LoggingAI gateways need records of prompt, routing, and policy decisions for oversight.
Recommendation — Use AC-3 to enforce gateway policy on which requests can reach downstream AI resources. Use IA-5 to manage gateway credentials, rotation, revocation, and scoped authenticator use. Use AU-2 to log gateway decisions, access events, and blocked requests for review.
OWASP API Security Top 10API2 — Broken AuthenticationAI gateway traffic depends on strong caller authentication before model access is granted.
API4 — Unrestricted Resource ConsumptionToken budgets and rate limits are central gateway controls against runaway AI usage.
API8 — Security MisconfigurationGateway bypasses, weak defaults, and exposed admin settings are configuration risks.
Recommendation — Apply API2 to prevent weak or bypassed authentication on gateway entry points. Apply API4 to cap AI token consumption and stop uncontrolled spend through the gateway. Apply API8 to lock down gateway defaults, endpoints, and administrative exposure.
MITRE ATT&CKT1583 — Acquire InfrastructureAttackers may obtain or abuse AI-facing infrastructure to host malicious endpoints or staging.
T1110 — Brute ForceAI gateways can be targeted through repeated auth attempts against exposed entry points.
Recommendation — Map hostile AI gateway infrastructure to T1583 and hunt for suspicious endpoint setup activity. Detect and rate-limit repeated authentication attempts against gateway accounts and keys.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org