AI Gateway Model Allowlist
The model allowlist lets team owners restrict which models can be used through AI Gateway. A request returns a 403 when the requested model is not on the allowlist. The feature is opt-in and available on Pro and Enterprise plans.
A common reason to enable this is governance: your team has approved a specific set of models, and you want to guarantee that AI Gateway never serves one you haven't reviewed.
| Option | Cost | Availability |
|---|---|---|
| Team-wide model allowlist | $0.10 per 1,000 billed requests | Pro and Enterprise |
The surcharge applies to each request AI Gateway bills. That includes a request billed without completing normally, such as a response the provider blocks on safety grounds and still charges for. Requests blocked by the allowlist (403) and other failures that AI Gateway doesn't bill are not charged.
If your team also has the provider allowlist enabled, a request is charged a single restriction surcharge, not one per allowlist. You are never billed twice for having both active.
Only team owners can change this setting.
- Open the AI Gateway Settings tab.
- Toggle on Model Allowlist.
When you toggle on, every model currently available on AI Gateway is added to the allowlist by default. This guarantees that turning the feature on never breaks existing traffic. You then remove models you want to block as an explicit action.
With the allowlist enabled, switch off any models your team should not use. Models are grouped by their creator.
When a request targets a disabled model, AI Gateway returns:
{
"error": "Your team has restricted access to this model. Team owners can edit AI Gateway Settings (https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway%2Fsettings&title=AI+Gateway+Settings) to enable this model in Model Allowlist. Model: example/model-name",
"type": "no_providers_available",
"statusCode": 403
}When AI Gateway adds a new model after you enable the allowlist, the new model is disabled by default and shows a New badge in the settings list. An info note at the top of the list tells you how many new models are waiting for a decision.
To clear the badges, decide which new models to enable and click Save. A save with no changes also counts as acknowledgment and clears the badges. Disabled new models stay disabled until you enable them.
A request through a virtual model is evaluated against the underlying model it resolves to. If that model is not on the allowlist, the request is blocked, even though the virtual model itself is not listed in the settings.
The allowlist applies to models in the AI Gateway model library. Your team's private models are endpoints you registered yourself, so they remain available and are not affected by the allowlist.
The model allowlist and the provider allowlist are independent checks, and a request must pass both:
- The model allowlist controls which models your team can use.
- The provider allowlist controls which providers can serve them.
A model on your allowlist can still be blocked if every provider that serves it is disabled on the provider allowlist. Keep at least one of its providers enabled for each model you want to use.
If both allowlists are enabled, you are charged a single restriction surcharge per billed request, as described in Pricing.
The allowlist applies to BYOK requests too. Disabling a model means your team does not want any traffic to that model through AI Gateway, even with your own credentials. The surcharge applies to BYOK requests too, charged to your AI Gateway Credits.
| Requirement | Detail |
|---|---|
| Plan | Pro or Enterprise (not Pro trial) |
| Role | Owner |
Team members on non-owner roles can view the current configuration but cannot modify it.
Was this helpful?