Set it up
You need a Nerdly key (it starts with sk-nerd-): sign in on the API page to get one, and add credit in Billing.
- Open Integrations → Model Provider, install OpenAI-API-compatible if it is not there, and choose Add Model.
- Fill the entry; take the context size and the max-tokens bound from the model’s row on /models.text1
Model type LLM2Model name deepseek-v4-flash-07313API key sk-nerd-…4API Base URL https://api.nerdly.us/v15Model context size (from /models)6Upper bound for max tokens (from /models)7Function Call Type Tool Call - Save; the model appears in every app’s model picker, from a chatbot to a workflow’s LLM node.
The examples use deepseek-v4-flash-0731, the most used coding model on Nerdly today; put any id from the models page in its place.
Which model to pick
- Qwen4 35B A3B Uncensored (
qwen4-35b-a3b-uncensored): $0.48 in, $2.40 out per million tokens, 1M context, about 1.4¢ an agent step. - Ergo Uncensored (
ergo-uncensored): $4.40 in, $13.32 out per million tokens, 1M context, about $0.11 an agent step. - GLM-5.3 Abliterated (
glm-5.3-abliterated): $2.33 in, $4.66 out per million tokens, 131K context, about 5.6¢ an agent step. - DeepSeek V4 Flash 0731 (
deepseek-v4-flash-0731): $0.08 in, $0.12 out per million tokens, 1M context, about 0.19¢ an agent step. - DeepSeek V4.1 Flash 1017 (
deepseek-v4.1-flash-1017): $0.25 in, $1.20 out per million tokens, 1M context, about 0.74¢ an agent step. - Claude Opus 5.5 (
claude-opus-5-5): $2.80 in, $10 out per million tokens, 1M context, about 7.6¢ an agent step.
What a session costs
50 chat turns (about 2,000 tokens in and 500 out each) on DeepSeek V4 Flash 0731 cost about 1.1¢, paid from your balance. Every request Dify sends is priced by its tokens at the model’s rate; a cheaper model costs less, a larger one more.
Things that trip people up
- Dify does not read a model list from the endpoint: each id is its own Add Model entry, and the id typed is the id sent.
- Credentials fail to validate when the URL lacks /v1 or the key was pasted with a trailing space.
- Turn function calling on only for models that take tool calls; the separate stream function calling switch covers tool calls in streamed answers.
- Answers cut off mid-sentence: raise the upper bound for max tokens; where no maximum is published, keep it modest, such as 4096.
Dify’s own documentation: docs.dify.ai.
More guides
Questions.
Something else? Email hello@nerdly.us
Run Dify on any model.
Get a key, add credit from $10, and point the tool at Nerdly.
Get a key