An AI gateway is a layer that applications call instead of calling AI models directly, so that one place decides which models are reached, with which credentials, at what volume and with what record. Many AI products now ship a setting with the same name that does part of that job for one path, the AI calls the product itself makes. Telling the two apart is the first step in any gateway review.
An IT or platform evaluator with “AI gateway” on a requirements list will often find a tab of the same name inside the AI tools being evaluated. So the question follows quickly: does that setting replace an AI gateway like Azure API Management?
Usually not, and it isn’t built to. A product-scoped gateway is a provider policy for one application: it governs which providers and whose keys serve that product’s own AI features. It isn’t a proxy that your other applications call, and several jobs on a gateway’s usual list may not be there at all. This post sets out Microsoft’s list of what an AI gateway does, how to grade a product’s setting against each row, and when you still need a gateway of your own.
What is an AI gateway?
An AI gateway is a proxy that sits between applications and the AI models they call, so that one layer can authenticate, route, limit, cache, filter and log that traffic. Microsoft describes the AI gateway in Azure API Management as “a set of capabilities that help you manage your AI backends effectively”, used to “secure, scale, monitor, and govern AI models, agents, and tools”. Its reasons to use one are to:
- “Authenticate and authorize access to AI services”
- “Load balance across multiple AI endpoints”
- “Monitor and log AI interactions”
- “Manage token usage and quotas across multiple applications”
AWS’s Guidance for Multi-Provider Generative AI Gateway has the same shape: tenants and client applications access a LiteLLM gateway proxy API through one endpoint, which tracks usage and applies governance across many model providers.
The name is also used at a narrower scope. Microsoft’s architecture guide to model gateways notes that the AI Gateway built into Microsoft Foundry “is designed to support ingress to a single Foundry resource and doesn’t span multiple resources.” A product’s own “AI gateway” setting is scoped the same way, to that product.
What should you ask of each gateway job?
Take Microsoft’s list row by row, and grade a product’s setting Covered, Partly or Not described against each. Covered means the vendor’s documentation describes a control that does the job for the product’s own AI calls; Partly means a control does part of it; Not described means the documentation is silent, which is a reason to ask the vendor, not proof either way.
| What an AI gateway does, in Microsoft’s terms | What to ask of a product-scoped gateway |
|---|---|
| Govern models from several providers: manage models deployed in Microsoft Foundry “or providers such as Amazon Bedrock”, and apply governance policies “once across all models” | Can an admin limit which providers serve the product, in what order, and does the list admit providers or individual models? |
| Authenticate and authorize access to AI services | Can every call be forced onto your own keys, and does a provider without one fail closed or fall back to the vendor’s key? |
| Resiliency: “circuit breaker rules to stop forwarding requests to AI service backends if they’re not responsive” | Does a failing call retry elsewhere, does the product say so, and does anything stop sending to a failing provider? |
| Load balancing: round-robin, weighted or session-aware distribution across backends | Is traffic spread across providers, or only failed over? |
| Token rate limiting and quotas: “a TPM limit or a token quota over a specified period, such as hourly, daily, weekly, monthly, or yearly”, per API consumer | Are limits per person, app or agent, in tokens, or one organization-wide spend cap? |
| Observability: “Track token metrics per consumer” and “Log prompts and completions” | Is there a record of what was sent, or a billing view of who spent what? |
| Semantic caching: reusing completions of similar prior prompts to cut backend calls | Is any caching described? |
| Content safety: policies “to automatically moderate LLM prompts by using Azure AI Content Safety” | Is prompt moderation described? |
| Prompt-log export: prompts and completions logged to Azure Monitor and analyzed in Application Insights | Can logs be exported into your monitoring stack? |
| Sit in front of every caller: a reverse proxy that decouples “the intelligent application” from the model backends | Can the product’s model calls be routed through your own gateway or a custom endpoint? |
The left column keeps to what Microsoft’s pages state. Microsoft’s list also includes jobs outside this comparison, such as governing MCP servers and A2A agent APIs, and self-service developer portals.
Why are spend limits and usage views not quotas and logs?
Because they answer a billing question, who spent what, rather than a gateway’s question of how much each consumer may send and what was sent.
Token quotas. Microsoft’s token limit policy sets limits “per API consumer”, on “any counter key, such as subscription key, originating IP address, or an arbitrary key defined through a policy expression”. An organization-wide monthly spending cap counts dollars, not tokens, and has no per-consumer key. When you bring your own key, the provider bills the tokens directly, so its own limits on that key are the per-key control; AI API spend limits when you bring your own key covers how a provider’s limits and a product’s cap fit together.
Logging. Microsoft’s gateway can “Log prompts and completions to Azure Monitor” and “Track token metrics per consumer in Application Insights”. A usage panel that groups spend by user, app or model covers the second half in billing terms. It does not cover the first: it tells you who spent how much on which model, not what anyone sent.
When do you still need your own AI gateway?
When your own applications call model APIs directly, or when you need a job a product’s setting doesn’t describe: per-consumer token quotas, semantic caching, content safety, or prompt logs in your monitoring stack. A product-scoped gateway governs the AI features inside that product. A call your own software makes to a model provider never reaches it.
Microsoft’s architecture guide treats adding a gateway as a design decision with costs. It says to “make the decision to add a gateway as part of the application design”, and warns about the cost: a gateway “is in a unique position to see raw request data and formulated responses from the language model”, and it “can introduce a single point of failure.” Without one, Microsoft notes, failover between model instances is the client’s job.
Before you mark the requirement met or unmet, check five things:
- Which calls must the gateway see? If only one product’s, its own setting may govern them. If your own applications’ too, they need a gateway of their own.
- Must every call use your own keys? Look for a switch that fails closed, and match every allowed provider to a connected key first.
- Do you need quotas per person, app or team? If the product has only an organization-wide cap, set per-key caps at the provider.
- Do you need prompt and completion logs? Ask what’s retained and how it can be exported before you count it as met.
- Do you need caching or content moderation? Ask whether either applies to the product’s own calls.
How Insulin’s AI Gateway compares
Insulin’s AI Gateway is a tab under Settings → Organization, formerly AI Model Policy, that only an org ADMIN can change. It holds two controls. Allowed AI integrations is an ordered allow-list: AI features use only the providers on it, the top row (Default) serves any feature without its own model picker, and an empty list means no restriction; on a non-empty list, the Fours-hosted models need a Fours Hosted (DeepInfra) row. Allow Fours platform key is on by default; turned off, every AI call must use one of your own connected keys, and an allowed provider with no connected key fails closed. Organization agents use the organization’s connections; the built-in assistant and personal agents use each person’s own. A call that fails on an outage, a usage limit or a rejected key retries on your next connected provider, and the reply names the model that took over. On your own keys, Fours’ metering documentation says the platform “still routes and secures every request and meters the token usage the provider reports.” How the AI model allowlist decides which vendors see your prompts covers the checks before turning Fours’ key off.
Graded against the list above, as Fours’ documentation stood on October 23, 2026:
| Gateway job | Insulin’s documented counterpart | Grade |
|---|---|---|
| Govern models from several providers | Allowed AI integrations, ordered, top row the default | Covered |
| Authenticate and authorize access | Allow Fours platform key off: your own keys only, failing closed | Covered |
| Resiliency | Per-turn failover with a note naming both models; no rule that stops sending to a failing provider | Partly |
| Token rate limiting and quotas | One organization-wide monthly spending limit in dollars; no per-person, per-app or per-agent token quota | Partly |
| Observability | The Usage panel: a billing view grouped by resource, user, app, model or provider | Partly |
| Load balancing | Not described; Insulin fails over, it doesn’t spread traffic | Not described |
| Semantic caching | Not described | Not described |
| Content safety | Not described | Not described |
| Prompt-log export | Not described; the Usage panel has no CSV export | Not described |
| Routing through your own gateway | Not described | Not described |
What it leaves to you: each allow-list row admits a provider, not a model, which restricting AI models, not just their providers works through. The monthly spending limit, set on Settings → Billing from 0 to $100,000, pauses AI requests for the rest of the month once reached; the only other documented cap counts job runs, not tokens, at 60 an hour per job and 300 per organization. The Usage panel is re-aggregated every couple of hours, and “There is no CSV export and no per-request drill-down.” The documented provider connections ask for credentials only (the OpenAI connection takes an API key and an optional Organization ID), and none takes a custom endpoint or base URL, so putting Insulin’s model traffic behind Azure API Management or a LiteLLM proxy is a question to ask Fours, not a step to plan on.
Frequently asked questions
What is an AI gateway?
A layer that applications call instead of calling AI models directly, so that one place can authenticate, route, limit, cache, filter and log that traffic. Microsoft describes the AI gateway in Azure API Management as capabilities to secure, scale, monitor and govern AI models, agents and tools.
Does Insulin’s AI Gateway replace Azure API Management?
No. Insulin’s AI Gateway governs the AI calls Insulin makes: which providers may serve your organization, in what order, and whether only your own keys may be used. It isn’t a proxy your other applications call, so their model traffic needs a gateway of its own.
Sources
Primary sources for the platform rules cited above. Last verified October 23, 2026. Providers change their products, prices and terms without notice — check the source before relying on a detail.
- Fours docs: Getting Started — AI Gateway — Settings → Organization → AI Gateway (formerly AI Model Policy) deciding which AI providers may serve the organization, and in what order; Organization tabs changeable only by an org ADMIN; the ordered Allowed AI integrations list, AI features using only the integrations on it, the top row badged Default as the organization default, and an empty list meaning no restriction; a non-empty list needing Fours Hosted (DeepInfra) to keep the Fours-hosted pool; Allow Fours platform key, on by default, and off meaning every AI call uses one of your own connected keys, an allowed provider with no connected key failing closed
- Fours docs: Agents — Model Selection and When a model fails over — Each agent failing over automatically when a model call fails (a provider outage, a usage limit or a rejected key), the turn retrying on the next connected provider; the italic note naming both models when a turn switches and succeeds; the built-in assistant and personal agents using each person's own connections, organization agents the organization's
- Fours docs: Payment, Limits, and Top-Ups — The monthly spending limit: a ceiling on what the organization may spend in a calendar month, entered in US dollars on Settings → Billing, from 0 to $100,000; reaching it pauses AI requests for the rest of the month and stops automatic top-up; it resets at the start of the next month
- Fours docs: Reading Your Usage — The Usage panel grouping a period's consumption by Resource, User, App, Model or Provider; re-aggregated every couple of hours; no CSV export and no per-request drill-down, the finest grain being a grouped row for the period
- Fours docs: What Is Metered — Using your own provider keys (BYOK) — On your own key the provider bills you directly for the tokens, Fours charges a flat fee per unit, and the platform still routes and secures every request and meters the token usage the provider reports
- Fours docs: Jobs — Rate limits — Runs Insulin starts for you, a cron tick or a push event, limited to 60 runs per job and 300 per organization over a rolling hour, fixed with no setting
- Fours docs: OpenAI integration — The connection's fields: an API key and an optional Organization ID; no endpoint or base URL field is described
- Microsoft Learn: AI gateway in Azure API Management — Page dated May 29, 2026. The AI gateway as a set of capabilities to secure, scale, monitor and govern AI models, agents and tools; why to use one (authenticate and authorize access to AI services, load balance across endpoints, monitor and log AI interactions, manage token usage and quotas across applications); token rate limiting and quotas per API consumer, as a TPM limit or a quota over an hourly to yearly period; semantic caching; managed identities, OAuth authorization and Azure AI Content Safety moderation of prompts; round-robin, weighted, priority-based and session-aware load balancing and the circuit breaker; logging prompts and completions to Azure Monitor and tracking token metrics per consumer in Application Insights
- Microsoft Learn: Access Foundry Models and other language models through a gateway — A reverse proxy gateway decoupling the intelligent application from the model backends; failover between model instances based on service availability being a client responsibility without a gateway; a gateway seeing raw request data and model responses, and able to introduce a single point of failure; deciding on a gateway as part of application design; Foundry's AI Gateway supporting ingress to a single Foundry resource and not spanning multiple resources
- AWS Solutions Library: Guidance for Multi-Provider Generative AI Gateway on AWS — Tenants and client applications accessing a LiteLLM gateway proxy API through one endpoint, with usage tracking, cost management and governance features across many LLM providers
Keep reading
Stay Updated
New posts, product updates and marketplace strategy are shared on LinkedIn as they publish.
Follow Fours on LinkedIn