OpenAI
Overview
Open WebUI makes it easy to connect to OpenAI and Azure OpenAI. This guide will walk you through adding your API key, setting the correct endpoint, and selecting models, so you can start chatting right away.
For other providers that offer an OpenAI-compatible API (Mistral, Groq, DeepSeek, and many more), see the OpenAI-Compatible Providers guide. For Anthropic's Claude models, see the dedicated Anthropic (Claude) guide.
Important: Protocols, Not Providers
Open WebUI is a protocol-centric platform. While we provide first-class support for OpenAI models, we do so mainly through the OpenAI Chat Completions API protocol.
We focus on universal standards shared across dozens of providers, with experimental support for emerging standards like Open Responses. For a detailed explanation, see our FAQ on protocol support.
Step 1: Get Your OpenAI API Key
- OpenAI: Get your key at platform.openai.com/account/api-keys
- Azure OpenAI: Get your key from the Azure Portal
Step 2: Add the API Connection in Open WebUI
Once Open WebUI is running:
- Go to Settings > Admin > Connections.
- Find the Manage OpenAI API Connections list.
- Click the ➕ Add Connection button next to it.
- OpenAI
- Azure OpenAI
- Connection Type: External
- URL:
https://api.openai.com/v1 - API Key: Your secret key (starts with
sk-...)
For Microsoft Azure OpenAI deployments.
- Expand Advanced and set the Provider dropdown to Azure OpenAI. An Azure endpoint URL usually flips this on by itself.
- 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.
- One entry per ID: Leading and trailing spaces are stripped from what you type, and an ID that is already on the list is refused with Model ID is already added. Reopening a connection whose stored list contains duplicates collapses them to one entry each, and saving writes the cleaned list back.
-
Prefix ID:
- If you connect multiple providers that have models with the same name (e.g., two providers both offering
qwen3.6), add a prefix here (e.g.,groq/) to distinguish them. The model will appear asgroq/qwen3.6.
- If you connect multiple providers that have models with the same name (e.g., two providers both offering
-
Provider:
- Tells Open WebUI what kind of server is behind the URL, which switches on extras such as Azure routing, local model management or Anthropic passthrough. Leave it at Default for OpenAI. See The Provider Setting.
- Click Save ✅.
This securely stores your credentials.
If your API provider is slow to respond or you're experiencing timeout issues, you can adjust the model list fetch timeout:
# Increase timeout for slow networks (default is 10 seconds)
AIOHTTP_CLIENT_TIMEOUT_MODEL_LIST=15If you've saved an unreachable URL and the UI becomes unresponsive, see the Model List Loading Issues troubleshooting guide for recovery options.

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-5.6 Sol, GPT-5.6 Terra, or any compatible model offered by your provider.
All Set!
That's it! Your OpenAI API connection is ready to use.
If you want to connect other providers, see the Anthropic (Claude) guide or the OpenAI-Compatible Providers guide for Mistral, Groq, DeepSeek, and more.
If you run into issues or need additional support, visit our help section.
Happy prompting! 🎉