---
title: "Dify 接入 rawroute：低价前沿模型与多路容灾"
canonical: "https://rawroute.dev/zh/integrations/dify"
lang: "zh-Hans"
last_verified: "2026-11-28"
description: "在 Dify 中添加 OpenAI-API-compatible 供应商（https://api.rawroute.dev/v1），一键启用 Claude 5.5、GPT-6.2、Gemini 4 与 Grok 4.7，享官方 3–5 折与自动容灾。"
---

# 在 Dify 中接入 rawroute。

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

## 接入步骤

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。

### Dify · OpenAI-API-compatible Settings

```text
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
```

## 何时不适用 rawroute

- 若 Dify 知识库需要专用 Embedding 或 Rerank 模型，可将对话与推理节点交给 rawroute，向量化继续使用您的嵌入模型。
