Skip to content
rawroute

在 Dify 中接入 rawroute。 生产级 Dify 应用账单立省 50%–70%。

Dify 内置的 OpenAI-API-compatible 供应商插件可直接对接 rawroute,让所有 Dify 对话流与工作流以官方 3–5 折调用全部前沿模型,并自动化解上游 429/529 限流。

Dify 快速接入步骤

  1. 在 Dify 中进入 设置 → 模型供应商 → OpenAI-API-compatible。
  2. 填写 API Endpoint URL 为 https://api.rawroute.dev/v1 并填入 rawroute API Key。
  3. 依次添加模型 ID(如 claude-sonnet-5-5、gpt-6.2-sol、gemini-4-argon),模式选 Chat。
Model Type:       LLM
Model Name:       claude-sonnet-5-5
API Key:          rr_live_your_key_here
API endpoint URL: https://api.rawroute.dev/v1
Completion mode:  Chat
Function calling: Supported

推荐搭配 Dify 使用的模型

模型模型 ID官方标价OpenRouter +5.5%rawroute (0%)节点数
Claude Sonnet 5.5claude-sonnet-5-5$2.00 / $10.00$2.11 / $10.55$1.00 / $5.004
GPT-6.2 Solgpt-6.2-sol$2.00 / $10.00$2.11 / $10.55$0.60 / $3.003
Gemini 4 Argongemini-4-argon$2.00 / $10.00$2.11 / $10.55$1.00 / $5.004
Grok 4.7grok-4.7$2.00 / $6.00$2.11 / $6.33$1.00 / $3.003

何时不建议使用 rawroute

常见问题

Dify 的函数调用与结构化输出能否正常使用?

完全支持。rawroute 完整透传 tool_calls 与 json_schema 结构化输出参数。