AI Gateway filters providers by headquarters country
AI Gateway lets you set an allowlist of countries to use or a denylist of countries to block.
- Team-wide settings
- Pro and Enterprise plans; applies to all requests
- Per-request option
- Any plan; can only narrow a team list
- List formats
- Country codes to allow; ! prefix to block
- No allowed provider
- Tries fallback models, then fails
- No country on record
- Never receives requests
Request and team controls
On any plan, you can pass country codes in the headquarters provider option to allow or block countries on a single request.
Pro and Enterprise teams can apply one provider headquarters list to every AI Gateway request in team settings, and per-request options can only narrow that list.
Routing and fallback behavior
AI Gateway skips blocked providers and tries your fallback models if no allowed provider is available.
If no allowed provider or fallback model is available, the request fails rather than routing to another country, and providers with no country on record never receive requests.
Teams using AI Gateway that have compliance or procurement rules about where AI vendors are based.
Set a team list in AI Gateway settings on Pro or Enterprise plans, or add the headquarters option to single requests on any plan.
AI Infrastructure
Vercel notes that provider headquarters filtering can be paired with regional hosting and regional inference to control where a request is received, where a model runs, and who operates it.
Team headquarters settings apply automatically as AI Gateway adds new models and providers. For single requests, developers pass country codes for an allowlist or prefix each code with an exclamation mark to set a denylist.