Dify
Open-source visual AI workflow, RAG, and agent platform with built-in OpenAI-API-compatible provider and bf16.ai plugin support.
https://api.bf16.ai/v1openai-completionsWho this is for
Product teams building production AI workflows, knowledge bases, and multi-agent apps in Dify Cloud or self-hosted Docker.
Architecture & Why Pair with bf16.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.
Commands show $BF16_API_KEY. Sign in to fill in your own key automatically.
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
Install OpenAI-API-compatible (or bf16.ai Plugin) in Dify
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
Register Your bf16.ai Models with 1M Context
Enter https://api.bf16.ai/v1 as API Endpoint URL, paste your API key, set Model Context Size to 1048576, and enable Vision + Function Calling.
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
Exact Field-by-Field Reference
LLM (Chat · Function Call + Vision)deepseek/deepseek-v4.1-flash-uncensored-fastsk-bf16-v1-••••••••••••https://api.bf16.ai/v1Recommended Uncensored Model Tiering
Route complex planning to Flagship models and high-frequency subagents or screenshots to Flash.
| Workflow Role | Model ID | Why This Model | 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 |
How to know it worked
- Dify validates and saves the model card with a green Active indicator.
- Run a test chatflow node and confirm streaming tokens appear in your bf16.ai usage dashboard.
- curl https://api.bf16.ai/v1/models -H "Authorization: Bearer $BF16_API_KEY"
Production Guardrails & Budget Isolation
- Isolate production vs staging Dify apps with separate scoped API keys and daily USD spend caps.