Open WebUI
Connect Open WebUI to the llmbox API through OpenAI API Connections — chat with catalog models and generate images.
Open WebUI is a self-hosted chat web interface. Connect the llmbox API as an
OpenAI-compatible connection: chat goes through /v1/chat/completions, and
Open WebUI loads the model list from GET /v1/models, so the models in
the catalog show up on their own.
For an overview and model pricing, see Open WebUI on llmbox.
Quick start
Run Open WebUI in Docker — the interface opens at http://localhost:3000:
docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main
- Create the admin account on first sign-in.
- Open Settings → Admin → Connections and find Manage OpenAI API Connections.
- Click ➕ Add Connection.
- URL:
https://llmbox.cc/v1 - API Key — your key from the cabinet.
- Click Verify Connection, then Save.
- Pick a model at the top of a new chat, e.g.
openai/gpt-6.1-sol.
To keep only the models you need in the list, enter their IDs in the
connection's Model IDs field (the + button) — e.g.
openai/gpt-6.1-sol and deepseek/deepseek-v4-pro.
Configure with environment variables
You can set up the same connection when starting the container:
export LLMBOX_API_KEY="your-key"
docker run -d -p 3000:8080 \
-e OPENAI_API_BASE_URL=https://llmbox.cc/v1 \
-e OPENAI_API_KEY="$LLMBOX_API_KEY" \
-e TASK_MODEL_EXTERNAL=deepseek/deepseek-v4.1-flash \
-v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main
TASK_MODEL_EXTERNAL is the model for background tasks: chat titles and
suggestions. A fast, inexpensive model here saves the main model's tokens.
Image generation
To create images right in the chat, add the IMAGES_* and
IMAGE_GENERATION_* variables at startup:
docker run -d -p 3000:8080 \
-e OPENAI_API_BASE_URL=https://llmbox.cc/v1 \
-e OPENAI_API_KEY="$LLMBOX_API_KEY" \
-e ENABLE_IMAGE_GENERATION=true \
-e IMAGE_GENERATION_ENGINE=openai \
-e IMAGES_OPENAI_API_BASE_URL=https://llmbox.cc/v1 \
-e IMAGES_OPENAI_API_KEY="$LLMBOX_API_KEY" \
-e IMAGE_GENERATION_MODEL=openai/gpt-image-2 \
-v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main
Images are created through POST /v1/images/generations and billed at the
model's price — see the catalog.
How it works
- Open WebUI sends requests to
/v1/chat/completionswith streaming and your key; usage shows up in the cabinet. - The model list comes from
GET /v1/modelswhen the connection is verified and saved. - Chat titles and suggestions are separate requests: without
TASK_MODEL_EXTERNALthey go to the current chat's model.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| Verify Connection fails | Wrong key or a typo in the URL — the address must end with /v1; copy it from step 4. |
401 invalid_api_key | Wrong or revoked key — check it in the cabinet and update it in the connection. |
404 model_not_found | A typo in an ID under Model IDs — check against GET/v1/models. |
| Environment variables had no effect | Open WebUI reads them only on the first launch; after that the settings in Settings → Admin win — change the connection there. |
| No image is created | Check the IMAGES_OPENAI_* variables and the model ID in IMAGE_GENERATION_MODEL. |