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.
- Add a trigger, for example a chat trigger to test with, then an AI Agent node after it.
- On the agent’s Chat Model connector, add the OpenAI Chat Model sub-node.
- In its credential field, create a new OpenAI credential with these values and save it; n8n tests it with a GET to /models.text1
API Key sk-nerd-…2Organization ID (optional) (empty)3Base URL https://api.nerdly.us/v14Add Custom Header off - Under Model, switch the mode from From List to ID and paste the model id.text1
deepseek-v4-flash-0731 - Turn Use Responses API off.
- Optionally set Maximum Number of Tokens and Sampling Temperature under Options, put your instructions in the agent’s System Message option and run the workflow.
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 n8n 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
- Use Responses API is on by default in node version 1.3 of the OpenAI Chat Model; this setup uses Chat Completions.
- Since node version 1.1 the OpenAI Chat Model takes its Base URL from the credential, not from a node option.
- With a non-OpenAI Base URL the From List dropdown lists every id /models returns; ID mode avoids the long list, and a URL without /v1 leaves it empty.
- The AI Agent docs say to connect at least one tool; if your version enforces that, the Basic LLM Chain takes the same sub-node with no tools.
- n8n’s own notice for a Base URL override: not every non-OpenAI model supports tool calling or JSON response format.
- "Bad request - please check your parameters" means n8n could not read the error; run the same call in an HTTP Request node to see the body.
n8n’s own documentation: docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/.
More guides
Questions.
Something else? Email hello@nerdly.us
Run n8n on any model.
Get a key, add credit from $10, and point the tool at Nerdly.
Get a key