llmboxDocumentationSign in
Integrations · Open WebUI

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:

bash
docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main
  1. Create the admin account on first sign-in.
  2. Open Settings → Admin → Connections and find Manage OpenAI API Connections.
  3. Click ➕ Add Connection.
  4. URL: https://llmbox.cc/v1
  5. API Key — your key from the cabinet.
  6. Click Verify Connection, then Save.
  7. 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:

bash
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:

bash
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/completions with streaming and your key; usage shows up in the cabinet.
  • The model list comes from GET /v1/models when the connection is verified and saved.
  • Chat titles and suggestions are separate requests: without TASK_MODEL_EXTERNAL they go to the current chat's model.

Troubleshooting

SymptomCause and fix
Verify Connection failsWrong key or a typo in the URL — the address must end with /v1; copy it from step 4.
401 invalid_api_keyWrong or revoked key — check it in the cabinet and update it in the connection.
404 model_not_foundA typo in an ID under Model IDs — check against GET/v1/models.
Environment variables had no effectOpen WebUI reads them only on the first launch; after that the settings in Settings → Admin win — change the connection there.
No image is createdCheck the IMAGES_OPENAI_* variables and the model ID in IMAGE_GENERATION_MODEL.