AI security integrations typically connect at the policy execution layer of the gateway. For Kong, this means custom Lua plugins or leveraging the Plugin Development Kit (PDK) to inject AI logic before, during, or after the proxy phase. In Apigee, AI models are invoked via ServiceCallout policies or JavaScript policies that call external inference endpoints. The primary surfaces are:
- Request Inspection: Analyzing payloads and headers in real-time for anomalies, malicious patterns, or data leakage.
- Traffic Analysis: Processing aggregated analytics data (e.g., from Apigee Analytics or Kong's Prometheus metrics) to detect behavioral shifts.
- Policy Generation: Dynamically creating or adjusting rate limits, IP allowlists, or authentication challenges based on AI-driven risk scores.




