Dify
開源視覺化 AI 工作流、RAG 與多智能體開發平台,支援 OpenAI 相容及 bf16 外掛。
https://api.bf16.ai/v1openai-completions適用對象
在 Dify Cloud 或自託管 Docker 建置生產級 AI 應用的研發團隊。
架構原理與接入優勢
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
設定你的 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
填入 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
關鍵參數核對清單
LLM (Chat · Function Call + Vision)deepseek/deepseek-v4.1-flash-uncensored-fastsk-bf16-v1-••••••••••••https://api.bf16.ai/v1推薦模型分層配置
架構規劃使用旗艦模型,高頻子任務與螢幕截圖使用 Flash 模型以節省開銷。
| 工作流角色 | 模型 ID | 選型說明 | USD / 1M Tokens |
|---|---|---|---|
| Fast Chatflows & Agent Routing | deepseek/deepseek-v4.1-flash-uncensored-fast | Snappy 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 Nodes | moonshotai/kimi-k3.1-pro-uncensored | Ideal 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.