Use rawroute with Dify. Cut production Dify workflow bills by 50–70%.
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.
Quick setup for Dify
- In Dify, open Settings → Model Provider → OpenAI-API-compatible.
- Enter API endpoint URL https://api.rawroute.dev/v1 and your rawroute API key.
- Add model IDs (claude-sonnet-5-5, gpt-6.2-sol, gemini-4-argon, grok-4.7) with Completion mode = 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: SupportedRecommended models for Dify
| Model | Model ID | Official | OpenRouter +5.5% | rawroute (0%) | Providers |
|---|---|---|---|---|---|
| Claude Sonnet 5.5 | claude-sonnet-5-5 | $2.11 / $10.55 | $1.00 / $5.00 | 4 | |
| GPT-6.2 Sol | gpt-6.2-sol | $2.11 / $10.55 | $0.60 / $3.00 | 3 | |
| Gemini 4 Argon | gemini-4-argon | $2.11 / $10.55 | $1.00 / $5.00 | 4 | |
| Grok 4.7 | grok-4.7 | $2.11 / $6.33 | $1.00 / $3.00 | 3 |
When NOT to use rawroute
- — For dedicated vector embedding or rerank pipelines inside Dify Knowledge Bases, pair rawroute LLMs with your preferred embeddings endpoint.
FAQ
Does Dify function calling and structured output work through rawroute?
Yes. All chat models on rawroute pass tool schemas and json_schema responses through cleanly without stripping fields.