> ## Documentation Index
> Fetch the complete documentation index at: https://braintrust.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to configure OpenAI for EU organizations

## Summary

For EU organizations, standard OpenAI setup in Braintrust can fail during API key validation because validation currently targets the global OpenAI endpoint instead of the EU base URL.

The workaround is to configure OpenAI as a custom provider with the EU OpenAI API key and explicitly set the EU API base URL. You will see a validation error when saving the key. This is expected and can be ignored, since it reflects the global-endpoint validation path rather than the actual EU endpoint configuration. Once configured, use the custom provider for requests.

## Applicable To

**Plans:** Any
**Deployments:** Any

## Configuration Steps

### Step 1: Configure custom provider

Go to **<Icon icon="settings-2" /> Settings** > [**<Icon icon="sparkle" /> AI providers**](https://www.braintrust.dev/app/~/configuration/org/secrets) > **Custom provider** > **Create**.

### Step 2: Enter credentials

Set the provider name (for example, OpenAI EU).
In API key, enter your EU OpenAI API Key.
Enter `https://eu.api.openai.com/v1` as API base URL.
In Auth Format, enter bearer.

<img src="https://mintcdn.com/braintrust/gppaK54tdq4Vi6cB/images/kb/image--1-.png?fit=max&auto=format&n=gppaK54tdq4Vi6cB&q=85&s=9e4e3ab8573458b7fdbe8e6324a68d79" alt="" width="728" height="390" data-path="images/kb/image--1-.png" />

### Step 2: Save and test

Save the provider.
If API key validation shows an error, ignore it (that check is currently hitting the global OpenAI endpoint).
Run Test connection for the custom provider and confirm it succeeds against the EU endpoint.
In your playground/prompt/gateway usage, select or route to this custom OpenAI EU provider (not the default OpenAI provider).
