跳至主要內容
所有用戶端
LLM App & Workflow Studio · 160k★1M Context · ZDR

Dify

開源視覺化 AI 工作流、RAG 與多智能體開發平台,支援 OpenAI 相容及 bf16 外掛。

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

適用對象
在 Dify Cloud 或自託管 Docker 建置生產級 AI 應用的研發團隊。

架構原理與接入優勢

Dify AI workflow studio connected to https://api.bf16.ai/v1 via OpenAI-API-compatible provider and official bf16 plugin
Wire bf16.ai into Dify via Settings → Model Provider → OpenAI-API-compatible (or the open-source bf16.ai Dify plugin).

Dify powers production RAG pipelines, chatflows, and visual multi-step agent apps across both Dify Cloud and self-hosted Docker deployments.

Connecting bf16.ai inside Dify’s Model Providers gives every LLM, Question Classifier, and Agent node instant 1M-context uncensored models — with native Vision on DeepSeek V4.1 Flash, GLM-5.3 Flash, and 2.8T Kimi K3.1 Pro, plus zero prompt retention.

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

一鍵快速配置

Verify Your bf16.ai Key Before Adding to Dify

Tests authentication and prints all live model IDs you can register in Dify.

export BF16_API_KEY="sk-bf16-v1-..."
curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
  1. 1

    設定你的 bf16.ai API 金鑰

    Open Dify Settings → Model Providers → locate OpenAI-API-compatible (or install the open-source bf16.ai plugin from https://github.com/BF16-AI/bf16-dify-plugin).

  2. 2

    填入 bf16.ai 端點與 1M 免審查模型

    使用頁面提供的 Base URL 與 API 金鑰,即可立即存取全系 1M 上下文免審查模型(含零留存政策)。

    API Endpoint URL: https://api.bf16.ai/v1
    API Key:          $BF16_API_KEY
    Model Name:       deepseek/deepseek-v4.1-flash-uncensored-fast
    Context Size:     1048576
Dify — Settings → Model Provider → OpenAI-API-compatible
介面與設定檔欄位對照
Workspace Settings / Model Providers / Add Model

關鍵參數核對清單

Model Type
LLM (Chat · Function Call + Vision)
Model Name
deepseek/deepseek-v4.1-flash-uncensored-fast
API Key
sk-bf16-v1-••••••••••••
API Endpoint URL
https://api.bf16.ai/v1
Set Model Context Size to 1048576 and Upper Bound for Max Tokens to 130000 for full 1M-context Dify workflows.

推薦模型分層配置

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

工作流角色模型 ID選型說明USD / 1M Tokens
Fast Chatflows & Agent Routingdeepseek/deepseek-v4.1-flash-uncensored-fastSnappy streaming, native vision, and low cost across high-traffic Dify apps.$0.28 in / $0.055 cached / $1.12 out
2.8T Flagship Research & Synthesis Nodesmoonshotai/kimi-k3.1-pro-uncensoredIdeal for final report generation, complex analysis, and long-context RAG nodes.$1.95 in / $0.28 cached / $6.90 out

如何確認設定成功

  • 發送測試訊息後,可在 bf16.ai 控制台請求紀錄中即時查看計費與狀態。
  • curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"

生產環境護欄與預算隔離

  • Isolate production vs staging Dify apps with separate scoped API keys and daily USD spend caps.

常見錯誤

現象
連線測試出現 404 或驗證失敗。
原因
端點網址多加或漏寫了 /v1 後綴。
解法
請嚴格對照本頁顯示的 Base URL 複製貼上。