Dify Custom LLM API Setup: Plugin Matrix & Workflow Routing
Match each model family to the right Dify Marketplace plugin—OpenAI 1.1.0+ for GPT-6.2 Responses, Anthropic 0.3.41+ (without /v1) for Claude 5.x, and OpenAI-API-compatible for Gemini 4, DeepSeek V4.1, and GLM-5.3.
1. Dify Model Provider Plugin Matrix
Since Dify moved model providers into standalone Marketplace plugins, most "missing Responses option" or 404 failures come from outdated provider plugins. Split DeepClub across three plugins:
| Model Family | Dify Marketplace Plugin & Version | API Base URL | Required Setting |
|---|---|---|---|
| GPT-6.2 / 6.1 / 6 & Grok 4.7 | Official OpenAI (1.1.0+) |
https://deepclub.net/v1 |
Add custom LLM → API Protocol = Responses API (api_protocol=responses) |
| Claude 5.x (Opus / Sonnet / Fable) | Official Anthropic (0.3.41+) |
https://deepclub.net (no /v1) |
Exact ID (e.g., claude-sonnet-5-5); disable Temperature/Top P overrides on LLM nodes |
| Gemini 4 / DeepSeek V4.1 / GLM-5.3 / Kimi-k3 / Qwen 3.8 | OpenAI-API-compatible | https://deepclub.net/v1 |
Model Type = LLM, Completion Mode = Chat |
Important
openai_api_compatiblecredential-check gotcha: Even in neweropenai_api_compatiblebuilds that display a Responses dropdown, credential validation on save may still probe/v1/chat/completions. Always use the official OpenAI plugin (1.1.0+) for GPT-6.2 Responses workloads.
2. Node-Level Cost Routing in Dify Workflows & RAG
Share one scoped DeepClub sub-key across every node in a Workflow while assigning the cheapest model that clears each node's accuracy bar:
- Question Classifier / Intent Router / Parameter Extractor:
gemini-4-hydrogen,gpt-6-luna, orglm-5.3-flash(fast, minimal token spend). - Long-Context RAG Synthesis & Multi-Page Extraction:
deepseek-v4.1-flash(1M context + automatic disk KV cache),gemini-4-argon, orkimi-k3. - Complex Code Generation, Compliance Review & Final Answer:
claude-sonnet-5-5,gpt-6.2-sol, orglm-5.3.
3. Fast Dify 404 / 400 Checklist
- Anthropic plugin 404: Remove trailing
/v1so Base URL ishttps://deepclub.net. - Claude 5.x LLM node 400: Open node Model Parameters and toggle OFF
TemperatureandTop P—native Claude 5.5 / Fable 5.2 reject custom sampling overrides. - Verify per-node spend: Run one workflow trace and inspect DeepClub Usage Logs to audit landed model IDs and cache hits.
See also: Python & Node.js SDK Multi-Protocol Guide · API Troubleshooting · Live Pricing.
Frequently Asked Questions
- Why does the Dify Anthropic plugin return 404 with https://deepclub.net/v1?
- The official Dify Anthropic plugin appends /v1/messages automatically, so adding /v1 results in /v1/v1/messages. Set Base URL to https://deepclub.net without /v1.
- Why does a Dify Claude Sonnet 5.5 or Opus 5.5 node fail with HTTP 400?
- Dify LLM nodes often enable Temperature or Top P by default. Toggle off custom sampling parameters in the node panel because Claude 5.5 and Fable 5.2 reject them on native /v1/messages.
- Which Dify plugin should I use for Gemini 4 Carbon, Neon, Argon, and Hydrogen?
- Use the OpenAI-API-compatible plugin with Base URL https://deepclub.net/v1 and Completion Mode = Chat, since DeepClub exposes Gemini 4 text on POST /v1/chat/completions.
Updated