TL;DR: Direct LLM API integration creates brittle, hardcoded dependencies, scattered observability, inconsistent failover, and compliance gaps as AI usage scales, according to Kong's analysis and cited industry research. An AI gateway centralises routing, policy, and visibility, making provider change and governance structurally easier than per-service integrations.
NHIMG editorial — based on content published by Kong: AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy
By the numbers:
- 88% said they plan to increase AI-related budgets in the next 12 months.
- The GenAI infrastructure layer captured $18 billion in 2025, up 2x from $9.2 billion in 2024.
- 86% of respondents expect AI infrastructure budgets to increase over the next three years, with average budgets expected to more than triple.
Questions worth separating out
Q: How should security teams govern direct LLM integrations at scale?
A: They should treat direct integrations as a temporary pattern and move policy, routing, and observability into a central control plane.
Q: Why do direct LLM integrations create more operational risk as use grows?
A: Because every new service adds another embedded endpoint, credential path, prompt pattern, and retry model.
Q: What breaks when AI traffic is governed only inside application code?
A: Observability, policy consistency, and failover discipline break first.
Practitioner guidance
- Audit every direct LLM integration Inventory each service, the provider it calls, the authentication method it uses, and where prompt templates or fallback logic live.
- Centralise AI routing and policy enforcement Move provider selection, failover chains, rate limits, and prompt guardrails into a gateway layer so changes happen in configuration rather than in multiple codebases.
- Separate application logic from provider-specific identity Remove hardcoded endpoints and embedded credentials from service code, and replace them with managed access to a common control plane for AI traffic.
What's in the full article
Kong's full blog post covers the operational detail this post intentionally leaves for the source:
- The six-dimension comparison framework for direct integration versus an AI gateway.
- The five-phase switchover checklist with definition-of-done and failure modes.
- The migration effort rationale behind the 60 to 80 percent reduction claim.
- The production-oriented hardening sequence for routing, guardrails, and cost controls.
👉 Read Kong's analysis of AI gateway architecture versus direct LLM integration →
AI gateway architecture: what it means for IAM teams?
Explore further
AI gateway architecture is now an identity governance decision, not just an infrastructure choice. Once LLM access is embedded directly in applications, each service becomes its own identity and policy island. That fragmentation is what makes auditability, cost control, and policy enforcement fail at scale. The practical conclusion is that AI traffic needs a single governance boundary before the number of consumers and providers makes change unmanageable.
A few things that frame the scale:
- Prompt injection is ranked as the number one risk in OWASP's Top 10 for LLM Applications, according to AI Agents: The New Attack Surface report.
- 92% agree governing AI agents is critical to enterprise security, yet only 44% have implemented any policies to do so.
A question worth separating out:
Q: Which frameworks are most relevant to AI gateway governance?
A: NIST Cybersecurity Framework, OWASP Top 10 for LLM Applications, and zero trust architecture are the clearest references because they all push toward central control, continuous verification, and consistent policy enforcement. That makes them useful for evaluating whether AI traffic is being governed as an enterprise control plane.
👉 Read our full editorial: AI gateway architecture is becoming the control plane for LLM use