Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configures Azure API Management as an AI Gateway for AI models, MCP tools, and agents, with token limits, caching and content safety.
Use this skill ↓14% 45%+32 ptsof test cases passed
Passed 10 of 22 test cases with the skill, and 3 of 22 without it.
3 of 3 safety checks passed
Not used yet
Complete reference for Azure API Management AI governance policies.
Recommended order in <inbound> section:
1. Authentication (managed identity)
2. Semantic Cache Lookup
3. Token Rate Limiting
4. Content Safety
5. Backend Selection / Load Balancing
6. Token Metrics
Control costs by limiting token consumption per minute.
<azure-openai-token-limit
tokens-per-minute="50000"
counter-key="@(context.Subscription.Id)"
estimate-prompt-tokens="true"
tokens-consumed-header-name="x-tokens-consumed"
remaining-tokens-header-name="x-tokens-remaining" />
| Attribute | Purpose | Default |
|---|---|---|
tokens-per-minute | Max tokens per counter window | Required |
counter-key | Grouping key (subscription, IP, custom) | Required |
Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.