What problem does it solve?
This Skill provides a repeatable, policy-driven way to configure Azure API Management as an AI Gateway that enforces model governance, controls token consumption, protects tools, and filters harmful content so teams can safely expose AI models and tools at scale.
Core Features & Use Cases
- Semantic Caching: Reduce costs by serving similar prompts from a cache before calling the model.
- Token Rate Limiting & Metrics: Enforce tokens-per-minute limits, emit token usage metrics, and enable chargeback or throttling.
- Content Safety & Jailbreak Detection: Apply content-moderation policies to inputs and outputs to block harmful or policy-violating content.
- Backend Management & Load Balancing: Attach Azure OpenAI / AI Foundry / embeddings backends, enable managed identity authentication, and distribute traffic across backends.
- MCP Tool Conversion: Import OpenAPI specs and expose APIs as MCP-compatible tools with per-agent rate limiting.
- Troubleshooting & Patterns: Includes diagnostic checks, best-practice policy order, and retry/circuit-breaker guidance for production readiness.
Quick Start
Use the azure-aigateway skill to configure an APIM instance with managed identity, add an Azure OpenAI backend, and apply semantic caching, token limits, and content safety policies.