---
title: "Dify + rawroute: Cheap Frontier Models & Failover"
canonical: "https://rawroute.dev/integrations/dify"
lang: "en"
last_verified: "2026-11-28"
description: "Add rawroute (https://api.rawroute.dev/v1) as an OpenAI-API-compatible provider in Dify for Claude 5.5, GPT-6.2, Gemini 4, and Grok 4.7 with up to 4-provider failover."
---

# Use rawroute with Dify.

Dify workflows and chatbots plug directly into rawroute via the built-in OpenAI-API-compatible provider plugin—giving every Dify app access to Claude 5.5, GPT-6.2, Gemini 4, and Grok 4.7 at 50–70% below list price, 0% top-up fee, and automatic failover on 429/529 spikes.

## Setup Steps

1. In Dify, open Settings → Model Provider → OpenAI-API-compatible.
2. Enter API endpoint URL https://api.rawroute.dev/v1 and your rawroute API key.
3. Add model IDs (claude-sonnet-5-5, gpt-6.2-sol, gemini-4-argon, grok-4.7) with Completion mode = 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
```

## When NOT to use rawroute

- For dedicated vector embedding or rerank pipelines inside Dify Knowledge Bases, pair rawroute LLMs with your preferred embeddings endpoint.
