· AI dev tools

AI Gateway allows country-based provider headquarters for compliance and procurement rules

A model remains accessible as long as it is available in one of its allowed provider locations, even when using the provider headquarters feature.


This capability allows users to control precisely where a request is handled, where the model executes, and who is operating it, when combined with regional hosting and regional inference.

For Pro and Enterprise clientele, the ability to enforce a specific provider headquarters list across every single AI Gateway request for their entire team is available; this list is managed within the AI Gateway settings. Furthermore, whenever AI Gateway incorporates new models and providers, the provider headquarters settings are automatically enforced. Providers that do not have a recorded headquarters country will never receive any of your requests.

The core function of provider headquarters is to direct your AI Gateway requests exclusively to vendors whose headquarters reside in the nations you specify, thereby helping organizations adhere to procurement and compliance mandates regarding vendor locations. You have the flexibility to define this configuration either as an "allowlist" of acceptable countries or as a "denylist" to prevent certain countries from being used.

On any subscription tier, you can restrict an individual request by setting the headquarters within the gateway provider options; this can involve passing a list of country codes for an allowlist, or you can prefix every code with "!" to designate it as a denylist, such as ['!US']. If your team has already established a headquarters list, a specific request can only narrow down the options available based on that existing list.

In situations where both settings are active, both act as filters, ensuring the model remains available if at least one of its providers is situated in a permitted nation. Should no provider exist in an approved country, AI Gateway will then attempt to utilize your configured fallback models. If those fallback models are either unavailable in the approved territories or if no fallback models have been set up, the request will ultimately fail without attempting to route to any providers outside the designated locations. For comprehensive details regarding supported nations, pricing structures, and setup procedures, please consult the provider headquarters documentation.

Why it matters

This feature gives developers granular control over vendor location for AI services, which is critical for meeting strict compliance and procurement requirements. Understanding how this filtering interacts with regional hosting and inference is key for building globally compliant applications.

Related coverage

Also worth reading

  1. next.js 16.5.0-canary.62 released with switchyard updates, Turbopack fixes
  2. Character.AI, OpenAI, xAI, Google, Air Canada cite First Amendment in AI liability suits
  3. Xalgorix, open-source AI penetration testing tool, checks findings to reduce false positives
  4. AI Gateway now runs canary ZDR audits against inference providers
  5. COBIT 7, ISACA framework, adds AI risk scenarios for IT governance