跳至主要內容
所有用戶端
Workflow Automation · AI Agent Nodes1M Context · ZDR

n8n

領先的開源工作流自動化平台,內建 AI Agent 與嚴格結構化輸出節點。

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

適用對象
運行 24/7 Webhook、爬蟲與多語種處理流程的自動化開發者。

架構原理與接入優勢

n8n AI Agent and LLM Chain workflow nodes connected via OpenAI Credential Base URL https://api.bf16.ai/v1
Create one OpenAI Credential in n8n with Base URL https://api.bf16.ai/v1 to power every AI Agent and Structured Output node.

n8n workflows run unattended across thousands of webhook executions per day — summarizing tickets, parsing scraped pages, moderating user content, and triggering downstream APIs. A single false-positive safety refusal returns prose instead of JSON and crashes the entire workflow branch.

Pointing n8n’s native OpenAI Chat Model credential to https://api.bf16.ai/v1 gives every AI Agent and Basic LLM Chain node strict JSON Schema adherence, 1M context, zero false refusals, and $0.26/$1.00 Flash economics.

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

一鍵快速配置

Smoke-Test Your n8n Key & Structured Output Endpoint

Verifies API key authentication and model discovery from your n8n host before activating workflows.

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 金鑰

    In n8n, open Credentials → Add Credential → OpenAI. Paste your API key and set Base URL to https://api.bf16.ai/v1.

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

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

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

n8n — Credentials → OpenAI API → Base URL Override
介面與設定檔欄位對照
Credentials / + Add Credential / OpenAI

關鍵參數核對清單

API Key
sk-bf16-v1-••••••••••••
Base URL
https://api.bf16.ai/v1
Model (Expression / Custom)
deepseek/deepseek-v4.1-flash-uncensored

Also supports zai-org/glm-5.3-flash-uncensored for strict JSON extraction

Retry & ZDR
Zero Prompt Retention · 1M Context
Reuse the same OpenAI Credential across OpenAI Chat Model, AI Agent, Information Extractor, and HTTP Request nodes.

推薦模型分層配置

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

工作流角色模型 ID選型說明USD / 1M Tokens
24/7 Webhook & Batch Automationdeepseek/deepseek-v4.1-flash-uncensoredHigh throughput (~155 tok/s) and $0.045/1M cached prompt reads keep 10,000-run workflows affordable.$0.26 in / $0.045 cached / $1.00 out
Strict JSON Schema Extractionzai-org/glm-5.3-flash-uncensoredRock-solid structured JSON outputs + vision for invoice, UI, and document pipelines.$0.30 in / $0.065 cached / $1.12 out

如何確認設定成功

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

生產環境護欄與預算隔離

  • Create a dedicated API key with a daily USD spend cap in /dashboard/keys for every production n8n instance to guard against infinite webhook loops.

常見錯誤

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