跳至主要內容
所有用戶端
Self-Hosted AI Workspace · Docker1M Context · ZDR

Open WebUI

Self-hosted multi-user web workspace with automatic /v1/models discovery, local RAG pipelines, and full mobile/PWA support.

基礎網址
https://api.bf16.ai/v1
協定
openai-completions

適用對象
Self-hosters and engineering teams running Open WebUI in Docker who want a private ChatGPT-class web interface backed by bf16.ai.

架構原理與接入優勢

Open WebUI Docker container connected via OPENAI_API_BASE_URLS to https://api.bf16.ai/v1
Open WebUI queries GET https://api.bf16.ai/v1/models server-side, keeping your sk-bf16-v1-* key inside the container while serving authorized team or personal browsers.

Open WebUI (`open-webui/open-webui`) is the leading self-hosted web workspace for LLMs, offering local document RAG, web search integration, Python tool/function pipelines, collapsible `<think>` reasoning panels, and fine-grained user/group model permissions.

Connecting Open WebUI to `https://api.bf16.ai/v1` via `OPENAI_API_BASE_URLS` (or Admin Panel → Settings → Connections) automatically imports every active uncensored model on bf16.ai while keeping your API key strictly server-side inside your Docker container.

指令預設顯示 $BF16_API_KEY。登入並建立金鑰後會自動填入你的真實金鑰。

一鍵快速配置

One-Command Open WebUI Docker Launch Pre-Wired to bf16.ai

Verifies your bf16.ai key and starts Open WebUI on http://127.0.0.1:3080 with OPENAI_API_BASE_URLS pre-configured and Ollama probing disabled for instant model loading.

export BF16_API_KEY="sk-bf16-v1-..."
curl -fsS "https://api.bf16.ai/v1/models" -H "Authorization: Bearer $BF16_API_KEY" >/dev/null && \
docker run -d --name open-webui --restart unless-stopped \
  -p 3080:8080 \
  -e ENABLE_OLLAMA_API=false \
  -e OPENAI_API_BASE_URLS="https://api.bf16.ai/v1" \
  -e OPENAI_API_KEYS="$BF16_API_KEY" \
  -v open-webui-data:/app/backend/data \
  ghcr.io/open-webui/open-webui:main && \
echo "Open WebUI live at http://127.0.0.1:3080"
  1. 1

    Open Admin Panel → Settings → Connections

    Under OpenAI API, click "+" (or edit the default row), enter URL https://api.bf16.ai/v1, paste your API key, and click the Verify (refresh) icon.

    URL: https://api.bf16.ai/v1
    Key: $BF16_API_KEY
  2. 2

    Optional: Set Default Models & Vision Capabilities in Workspace → Models

    In Admin Panel → Settings → Models, pin deepseek/deepseek-v4.1-flash-uncensored as the default workspace model and ensure Vision capability is enabled on Flash and Kimi K3.1 Pro.

Open WebUI — Admin Panel → Settings → Connections
介面與設定檔欄位對照
Admin Settings / Connections / OpenAI API

關鍵參數核對清單

URL (OPENAI_API_BASE_URLS)
https://api.bf16.ai/v1

Must end with /v1 (no trailing slash).

Key (OPENAI_API_KEYS)
sk-bf16-v1-••••••••••••
Prefix ID (Optional)
bf16

Namespaces models cleanly if you also connect local Ollama.

Disable Ollama API in Admin → Connections if you are not running a local Ollama daemon, eliminating 5-second startup connection timeouts.

推薦模型分層配置

架構規劃使用旗艦模型,高頻子任務與螢幕截圖使用 Flash 模型以節省開銷。

工作流角色模型 ID選型說明USD / 1M Tokens
Default Workspace & Multimodal Chatdeepseek/deepseek-v4.1-flash-uncensoredFast responses, Vision attachments, and low-cost RAG synthesis across long documents.$0.26 in / $0.045 cached / $1.00 out
Deep Coding, Security & Technical Analysiszai-org/glm-5.3-uncensoredFlagship reasoning with clean Thought-panel streaming.$1.35 in / $0.25 cached / $4.20 out
2.8T Multimodal Research & Long-Form Writingmoonshotai/kimi-k3.1-pro-uncensoredTop-tier nuance for uncut literary translation, policy analysis, and visual documents.$1.95 in / $0.28 cached / $6.90 out

如何確認設定成功

  • Verify Connection button in Admin → Connections reports "Server connection verified".
  • All active bf16.ai models appear in the Open WebUI model selector and stream cleanly.
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

生產環境護欄與預算隔離

  • On multi-user Open WebUI deployments, set `ENABLE_SIGNUP=false` after creating your admin account so strangers on the internet cannot use your shared key.

常見錯誤

現象
Model selector takes 10+ seconds to load on every page refresh.
原因
Open WebUI is trying to reach a non-existent local Ollama daemon or OpenAI’s default endpoint alongside bf16.ai.
解法
Remove unused api.openai.com rows in Admin → Connections and toggle Ollama API OFF if unused.

還沒安裝?

docker pull ghcr.io/open-webui/open-webui:main
官方文件