← 返回 💻 编程 & 软件工程

Choose AI Gateway providers by headquarters country

Vercel News Rohan Taneja 13 小时前 vercel.com

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.

Allowlist or denylist AI Gateway providers based on their headquarters location.Allowlist or denylist AI Gateway providers based on their headquarters location.Allowlist or denylist AI Gateway providers based on their headquarters location.Allowlist or denylist AI Gateway providers based on their headquarters location.
Allowlist or denylist AI Gateway providers based on their headquarters location.

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:

API
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);
View model details ↗

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.

Contributors

Eric Dodds

在原文站打开 ↗

Cloudflare Workers 每 3 分钟抓一批,9 批轮完最快约 27 分钟 · 点右上 ↻ 立刻全量抓一次