Overview
Open WebUI supports OpenAI’s API and any OpenAI-compatible API endpoints, including Azure OpenAI, Anthropic, Google AI, and custom providers.Quick Start
Configuration
OpenAI
Azure OpenAI
Azure OpenAI requires deployment names. The model ID in Open WebUI should match your Azure deployment name.File: backend/open_webui/routers/openai.py:800
Advanced Configuration
Authentication Types
Open WebUI supports multiple authentication methods:Custom Headers
Add custom headers to API requests:Model Filtering
Specify which models to expose:Connection Types
Tag connections as local or external:OpenAI-Compatible Providers
Anthropic
Google AI (Gemini)
OpenRouter
Local Providers
Reasoning Models (o1, o3)
Open WebUI automatically handles OpenAI’s reasoning models:Responses API
For providers supporting OpenAI’s Responses API:API Endpoints
Model Management
-
GET /openai/models- List available models
File: backend/open_webui/routers/openai.py:556 -
POST /openai/verify- Verify connection and API key
File: backend/open_webui/routers/openai.py:659
Completions
-
POST /openai/chat/completions- Chat completions
File: backend/open_webui/routers/openai.py:936 -
POST /openai/responses- Responses API (experimental)
File: backend/open_webui/routers/openai.py:1256
Audio
POST /openai/audio/speech- Text-to-speech
File: backend/open_webui/routers/openai.py:272
Embeddings
For RAG and semantic search:Troubleshooting
API Key Invalid
API Key Invalid
- Verify the API key format
- Check for leading/trailing whitespace
- Ensure the key has necessary permissions
- Test with the provider’s verify endpoint
Models Not Loading
Models Not Loading
OpenAI API filters out certain models by default:
- Embedding models
- TTS/Whisper models
- DALL-E models
- Legacy babbage/davinci models
Azure OpenAI Errors
Azure OpenAI Errors
Common issues:
- Deployment name doesn’t match model ID
- Incorrect API version
- Missing api-key header for non-Entra auth
- Unsupported parameters for API version
Rate Limiting
Rate Limiting
Open WebUI respects provider rate limits. Consider:
- Using multiple API keys with load balancing
- Implementing backoff in Pipelines
- Monitoring usage through provider dashboard
Advanced Features
Logit Bias
Control token generation probabilities:User Info Forwarding
Forward user context to API:X-OpenWebUI-User-NameX-OpenWebUI-User-IdX-OpenWebUI-User-EmailX-OpenWebUI-User-RoleX-OpenWebUI-Chat-Id
Model Caching
Models are cached for performance:Best Practices
Use Environment Variables
Keep API keys in environment variables, not in database
Multiple Keys
Configure multiple API keys for load balancing and redundancy
Model Access Control
Use Open WebUI’s RBAC to control model access per user
Monitor Costs
Track usage through provider dashboards and OpenTelemetry