Skip to contentNewKimi K3.1 Pro is now availableTry it now
Docs / Open WebUI

Open WebUI

Connect Open WebUI to Inference.net via Docker or the Admin Panel using the OpenAI-compatible API endpoint and your API key.

Last updated

Connect Open WebUI to Inference.net by setting OPENAI_API_BASE_URL to https://api.inference.net/v1 and OPENAI_API_KEY to your Inference.net API key, either through Docker environment variables or in the Open WebUI Admin Panel. Open WebUI reads GET https://api.inference.net/v1/models automatically and lists every available model in the chat selector.

Quick Docker setup

Create an account at /register and generate a project key in API keys. Then launch Open WebUI pointing directly at Inference.net:

export INFERENCE_API_KEY="inf_sk_..."

docker run -d \
  -p 3000:8080 \
  -e OPENAI_API_BASE_URL="https://api.inference.net/v1" \
  -e OPENAI_API_KEY="$INFERENCE_API_KEY" \
  -v open-webui:/app/backend/data \
  --name open-webui \
  --restart always \
  ghcr.io/open-webui/open-webui:main

Open http://localhost:3000, create your local Open WebUI admin user, and select a model such as deepseek-v4.1-flash-1017 or glm-5.3 from the top model dropdown.

Configure in the Admin Panel

If Open WebUI is already running, add Inference.net through the browser UI without restarting the container:

  1. Open Connections settings

    Sign in as an Open WebUI administrator and navigate to Admin Panel > Settings > Connections.

  2. Add an OpenAI API connection

    Under OpenAI API, click + to add a new connection (or edit an existing entry).

  3. Enter URL and API key

    Set these fields:

    FieldValue
    URLhttps://api.inference.net/v1
    KeyYour Inference.net API key (inf_sk_...)
    Prefix ID (optional)inference (helps distinguish models if you have multiple providers)
  4. Verify and save

    Click the Verify Connection icon to confirm Open WebUI can reach GET https://api.inference.net/v1/models, then click Save.

  5. Start chatting

    Return to the main chat view, choose a model from the dropdown, and send a message. Confirm tokens and spend in Usage.

US-only routing in Open WebUI

To restrict traffic to US data centers, add a connection with https://us.api.inference.net/v1 as the URL (for example, with Prefix ID inference-us). Only models displaying the US badge in the model catalog accept requests on the US-only base URL; other models return HTTP 400 with code region_not_supported.

Open WebUI loads the full catalog from GET /v1/models. You can pin or hide models under Admin Panel > Settings > Models. Popular choices:

Model IDContext windowModalitiesBest for
deepseek-v4.1-flash-10171,040,000Text, imageFast general chat, coding, and vision uploads
glm-5.31,048,576TextDeep reasoning and long technical responses
glm-5.3-flash1,048,576Text, image, videoHigh-throughput multimodal chat
moonshotai/kimi-k3.1-pro1,048,576Text, imageComplex research and agentic tool use
inference-net/schematron-v2-turbo128,000TextExtracting structured JSON from raw HTML

Troubleshooting

  • Models do not appear in the dropdown: Confirm the URL ends with /v1 (https://api.inference.net/v1), click Verify Connection, and reload the browser tab.
  • Environment variables ignored after first boot: Open WebUI persists connection settings in its SQLite database after initial startup. Update the connection in Admin Panel > Settings > Connections, or set ENABLE_PERSISTENT_CONFIG=false in Docker if you want environment variables to win on every restart.
  • 401 Unauthorized: Check that your key in API keys is active and has not been revoked.
  • Vision upload fails: Choose a model whose input_modalities includes "image", such as deepseek-v4.1-flash-1017, glm-5.3-flash, or moonshotai/kimi-k3.1-pro.

Explore all supported editors, gateways, and SDKs in the Integrations hub.