Skip to content

Support for OpenAI EU Regional Endpoints #10157

Description

@eddial

Description

Problem

Vercel AI Gateway currently routes all OpenAI requests to api.openai.com, but OpenAI now offers EU data residency via eu.api.openai.com. There's no way to configure AI Gateway to use the EU endpoint, forcing enterprises to choose between Gateway features or GDPR compliance.

Use Case

European enterprise customers require EU data residency for regulatory compliance. This is now a non-negotiable requirement for AI vendor selection in healthcare, finance, and public sector organizations.

Proposed Solution

Option 1: BYOK Configuration with Region Selection

// In Gateway BYOK configuration UI:
{
  provider: "openai",
  apiKey: "sk-...",
  region: "eu" // As we can't set baseURL as we would not hit AI gateway
}

Option 2: Provider Options Extension

// In code via providerOptions:
const result = streamText({
  model: 'openai/gpt-4o',
  prompt: 'Hello',
  providerOptions: {
    openai: {
      region: 'eu'
    },
  }
});

Impact

  • Blocking: Enterprise adoption in Europe
  • Competitive: First multi-provider gateway to support OpenAI EU endpoints
  • Market timing: OpenAI launched EU residency Feb 2025; demand is immediate

References


This would enable European enterprises to use AI Gateway while maintaining regulatory compliance.

AI SDK Version

latest

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions