Overview
Open WebUI is a self-hosted web interface for AI models. Its OpenAI connection accepts any OpenAI-compatible base URL, so pointing it athttps://api.edenai.run/v3 lists Eden AI’s chat models in the model picker and sends chats through Eden AI.
Open WebUI sends embeddings, speech-to-text, image generation and web search through settings of their own. Each one reads its own base URL and key, so the chat connection alone does not move them to Eden AI. The sections below set each one.
Prerequisites
- Docker
- An Eden AI API key from app.edenai.run → API Keys
Setup
Open WebUI reads the environment variables on this page only on its first start and saves them in its database. From then on the saved values win, so on an existing install change them in the Admin Panel instead, or set
ENABLE_PERSISTENT_CONFIG=false to make Open WebUI read the environment on every start. This applies to every block below.New install
-e flags or with --env-file .env.
Open http://localhost:3000 and register the first user, who becomes the admin. For Docker Compose, authentication, HTTPS and the other deployment options, see the Open WebUI documentation.
Existing install
- Open the Admin Panel, then Settings, then Connections.
- Under OpenAI API, select Add Connection.
- Set the URL to
https://api.edenai.run/v3and enter your Eden AI API key.
Model naming
Use a model name or~ alias from GET /v3/models, such as ~claude-sonnet-latest; a provider/model id pins one provider. Open WebUI fetches that list, so there is nothing to add by hand. To use a provider/model id, add it under the connection’s Model IDs, which then replaces the fetched list. If you also set the task model below, add ~gpt-luna-latest to that list too: Open WebUI runs tasks on the chat model when the task model is not in the list. To hide or rename models, use Admin Panel, Settings, Models.
To run Open WebUI’s background tasks (chat titles, tags) on a cheaper model, set a task model:
Embeddings for RAG
By default Open WebUI embeds documents locally. To embed them through Eden AI, select the OpenAI engine and give it its own base URL and key:OpenAI, and fill in API Base URL, API Key and Embedding Model. Reindex your knowledge bases after you change the embedding model. List the embedding models available to you with GET https://api.edenai.run/v3/embeddings/models.
Speech-to-text
/audio/transcriptions under that base URL, which Eden AI serves. See Speech to Text.
Image generation
512x512, and OpenAI’s image models accept 1024x1024, 1536x1024, 1024x1536 or auto, so set IMAGE_SIZE as shown. On an existing install, use Admin Panel, Settings, Images.
In a chat, turn on the Image toggle in the message box’s integrations menu, then send a prompt. See Image Generation.
Web Search
Open WebUI’s Perplexity Search engine works with Eden AI’s Perplexity-compatible search API. The engine sends a fixed body with nomodel, so the provider goes in the URL path:
- Open Admin Panel, then Settings, then Web Search.
- Turn on the Web Search toggle and select
perplexity_searchas the Web Search Engine. - Enter your Eden AI API key in Perplexity API Key.
- Set Perplexity Search API URL to
https://api.edenai.run/v3/search/tavily(or end it with another provideridfromGET /v3/search/models).
GET /v3/search/models lists each provider’s price.
Troubleshooting
Models do not appear
- Check the connection: Admin Panel, Settings, Connections, OpenAI API must list
https://api.edenai.run/v3with your key. On an existing install the environment variables are ignored (see the note under Setup). - Test the key outside Open WebUI:
- On an existing install, change the values in the Admin Panel. To make Open WebUI read the environment again, set
ENABLE_PERSISTENT_CONFIG=falseand recreate the container (docker rm -f open-webui, then thedocker runcommand again).docker restartkeeps the old environment.
Embeddings, audio or images fail while chat works
Each feature has its own base URL and key. IfRAG_OPENAI_API_BASE_URL, AUDIO_STT_OPENAI_API_BASE_URL or IMAGES_OPENAI_API_BASE_URL is not set to https://api.edenai.run/v3, Open WebUI sends that feature to api.openai.com with an empty key. Check the matching page in Admin Panel, Settings: Documents, Audio or Images.
Web search returns nothing
Check that Perplexity Search API URL ends with a provider fromGET /v3/search/models and that the result count is 20 or below.
Next Steps
- List LLM Models - Browse available models
- Search API - The search endpoint behind Web Search
- LibreChat - Alternative chat platform
- Monitoring - Track usage and spending