Vercel AI Gateway now routes requests exclusively to AI providers headquartered in countries you specify. The feature supports both allowlists and denylists using ISO country codes, configured either globally for Pro and Enterprise teams via AI Gateway settings, or per-request using the `headquarters` provider option. Prefixing a country code with `!` denies it, so `['!US']` blocks all US-based providers.
The routing logic is deterministic and fails safely. If no provider for a given model exists in an allowed country, Gateway falls through to configured fallback models. If those also fail the country check, or no fallbacks exist, the request fails. Providers with no headquarters country on record are never used. Settings applied at the team level cannot be broadened by per-request overrides, only narrowed.
The feature is worth reading in full for how it composes with regional hosting and regional inference controls, which together let you specify where a request is received, where compute runs, and which legal entity operates it. That three-layer separation is what makes this more than a simple vendor filter.
[READ ORIGINAL →]