Starting With OpenAI
Overviewβ
Open WebUI makes it easy to connect and use OpenAI and other OpenAI-compatible APIs. This guide will walk you through adding your API key, setting the correct endpoint, and selecting models β so you can start chatting right away.
Step 1: Get Your OpenAI API Keyβ
To use OpenAI models (such as GPT-4 or o3-mini), you need an API key from a supported provider.
You can use:
- OpenAI directly (https://platform.openai.com/account/api-keys)
- Azure OpenAI
- Any OpenAI-compatible service (e.g., LocalAI, FastChat, Helicone, LiteLLM, OpenRouter etc.)
π Once you have the key, copy it and keep it handy.
For most OpenAI usage, the default API base URL is: https://api.openai.com/v1
Other providers use different URLs β check your providerβs documentation.
Step 2: Add the API Connection in Open WebUIβ
Once Open WebUI is running:
- Go to the βοΈ Admin Settings.
- Navigate to Connections > OpenAI > Manage (look for the wrench icon).
- Click β Add New Connection.
- Standard / Compatible
- Azure OpenAI
Use this for OpenAI, DeepSeek, OpenRouter, LocalAI, FastChat, Helicone, LiteLLM, etc.
- Connection Type: External
- URL:
https://api.openai.com/v1(or your provider's endpoint) - API Key: Your secret key (usually starts with
sk-...)
For Microsoft Azure OpenAI deployments.
- Find Provider Type and click the button labeled OpenAI to switch it to Azure OpenAI.
- URL: Your Azure Endpoint (e.g.,
https://my-resource.openai.azure.com). - API Version: e.g.,
2024-02-15-preview. - API Key: Your Azure API Key.
- Model IDs (Deployments): You must add your specific Deployment Names here (e.g.,
my-gpt4-deployment).
Advanced Configurationβ
-
Model IDs (Filter):
- Default (Empty): Auto-detects all available models from the provider.
- Set: Acts as an Allowlist. Only the specific model IDs you enter here will be visible to users. Use this to hide older or expensive models.
OpenRouter RecommendationWhen using OpenRouter, we highly recommend using this allowlist (adding specific Model IDs). OpenRouter exposes thousands of models, which can clutter your model selector and slow down the admin panel if not filtered.
-
Prefix ID:
- If you connect multiple providers that have models with the same name (e.g., two providers both offering
llama3), add a prefix here (e.g.,groq/) to distinguish them. The model will appear asgroq/llama3.
- If you connect multiple providers that have models with the same name (e.g., two providers both offering
- Click Save β .
This securely stores your credentials.

Step 3: Start Using Modelsβ
Once your connection is saved, you can start using models right inside Open WebUI.
π§ You donβt need to download any models β just select one from the Model Selector and start chatting. If a model is supported by your provider, youβll be able to use it instantly via their API.
Hereβs what model selection looks like:

Simply choose GPT-4, o3-mini, or any compatible model offered by your provider.
All Set!β
Thatβs it! Your OpenAI-compatible API connection is ready to use.
With Open WebUI and OpenAI, you get powerful language models, an intuitive interface, and instant access to chat capabilities β no setup headaches.
If you run into issues or need additional support, visit our help section.
Happy prompting! π