Provider headquarters sends your AI Gateway requests only to providers headquartered in countries you choose, so you can meet compliance and procurement rules about where your AI vendors are located.
You can configure provider headquarters to be an allowlist of the countries to use, or a denylist of the countries to block. AI Gateway skips providers in blocked countries and routes requests to the rest of the list, so a model stays accessible as long as it is available in one of its allowed provider locations.
Use provider headquarters with regional hosting and regional inference to control where a request is received, where the model runs, and who runs it.




Copy link to headingSet provider headquarters for your team
Pro and Enterprise customers can apply their provider headquarters list to every AI Gateway request across their team. Configure the list in AI Gateway settings.
Provider headquarters settings are applied automatically as AI Gateway adds models and providers. Providers without a headquarters country on record never receive your requests.
Copy link to headingSet provider headquarters per request
On any plan, set headquarters in the gateway provider options to restrict a single request. Pass country codes for an allowlist, or prefix every code with ! for a denylist, as in ['!US']. If your team has a list, a request can only narrow it.
In the examples below, requests are only sent to providers based in the US and Germany:
import { generateText } from 'ai';
const { text } = await generateText({ model: 'openai/gpt-oss-120b', prompt: 'Explain HTTP caching in one sentence.', providerOptions: { gateway: { headquarters: ['US', 'DE'], }, },});
console.log(text);
Both settings filter providers, so a model stays available as long as one of its providers is based in an allowed country. If no provider is available in an allowed country, AI Gateway tries your fallback models. If no fallback models are available in allowed countries, or if no fallback models are configured, the request will fail without trying to route to providers in other locations.
Read the provider headquarters documentation for the countries supported, pricing and setup details.