n8n
n8n OpenAI Chat Model with an OpenAI-compatible uncensored API
Run n8n AI workflows on Abliterator: an OpenAI credential with a custom Base URL, the OpenAI Chat Model node with Responses API off, streaming webhooks and Code nodes.
Create an OpenAI credential with your Abliterator key and Base URL https://abliterator.ai/v1, pick it in the OpenAI Chat Model node, set the model by ID, and switch off Use Responses API.
n8n's AI nodes reach OpenAI-compatible servers through the OpenAI credential, which has a Base URL field (n8n's OpenAI credential source). The OpenAI Chat Model node then works as a sub-node of the AI Agent, Basic LLM Chain and other root nodes. The settings below were checked against the current node source.
Create the credential
In n8n, open Credentials, create an OpenAI credential and fill in:
API Key: sk-abl-v1-... (your abliterator key)
Organization ID (optional): leave empty
Base URL: https://abliterator.ai/v1
Add Custom Header: off
Saving runs n8n's credential test, a GET to https://abliterator.ai/v1/models. A green check means the key and URL work. Name the credential "Abliterator" so it is easy to pick.
Configure the OpenAI Chat Model node
Add an AI Agent (or Basic LLM Chain), attach an OpenAI Chat Model sub-node and set:
Credential to connect with: abliterator
Model: By ID -> kimi-k3.1-pro-abliterated
Use Responses API: off
Options:
Maximum Number of Tokens: 2048
Sampling Temperature: 0.7
Model Supports Reasoning: on (then set Reasoning Effort)
Timeout: 120000
"From list" also works; it shows both Abliterator models. Use deepseek-v4.1-flash-abliterated for high-volume steps such as classifying every incoming ticket, and kimi-k3.1-pro-abliterated for agent steps that call tools. Tools attached to the AI Agent (HTTP Request, Code, workflow tools) are sent as standard function calls, which both Abliterator models support. Kimi's sampling is fixed (temperature 0.6, top_p 0.95); Abliterator ignores temperature, top_p and penalty settings for it, so the Sampling Temperature option takes effect only on deepseek-v4.1-flash-abliterated.
Stream a workflow to your app
Set the Webhook trigger's Response Mode to Streaming, and in the AI Agent set Source for Prompt to Define below with the expression {{ $json.body.chatInput }}. The AI Agent streams by default when the trigger does. n8n then writes one JSON object per line: a begin chunk, item chunks whose content is new text, and an end chunk. This Node.js client prints the text as it arrives:
const res = await fetch("https://n8n.example.com/webhook/triage", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ chatInput: "A user reports a login page at login-microsoft-verify.example asking for MFA codes." }),
});
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
let buffer = "";
for (;;) {
const { value, done } = await reader.read();
if (done) break;
buffer += value;
let newline;
while ((newline = buffer.indexOf("\n")) >= 0) {
const line = buffer.slice(0, newline).trim();
buffer = buffer.slice(newline + 1);
if (!line) continue;
const chunk = JSON.parse(line);
if (chunk.type === "item") process.stdout.write(chunk.content ?? "");
if (chunk.type === "error") console.error("\nworkflow error:", chunk.content);
}
}
process.stdout.write("\n");
With the Chat Trigger instead of a webhook, n8n's hosted or embedded chat UI reads the same stream for you.
Post-process with a Code node
Agents return free text in output (Basic LLM Chain uses text). A JavaScript Code node after the agent can pull out a JSON verdict for the next steps, such as an IF node that opens a ticket:
return $input.all().map((item) => {
const raw = item.json.output ?? item.json.text ?? "";
const match = raw.match(/\{[\s\S]*\}/);
let verdict = { category: "unparsed", severity: 0 };
if (match) {
try {
verdict = JSON.parse(match[0]);
} catch (error) {
verdict = { category: "invalid_json", severity: 0, error: String(error) };
}
}
return { json: { ...verdict, raw } };
});
Ask for the JSON shape in the agent's system message, or use the Structured Output Parser sub-node for schema-checked output.
Troubleshooting
- 404 for
/v1/responses. Use Responses API is on. Turn it off. Built-in tools (web search, file search, code interpreter) need it and are not available with Abliterator. - Credential test fails. The Base URL must end in
/v1; n8n appends/modelsand/chat/completionsto it. - The model dropdown shows GPT models. The node is still using a credential with the default OpenAI Base URL. Select the Abliterator credential.
- The Reasoning Effort field is missing. Add the option Model Supports Reasoning and enable it.
- The webhook returns nothing. With Response Mode set to Streaming, at least one node must stream. Check that the AI Agent's Enable Streaming option is still on.
Frequently asked questions
Why does the OpenAI Chat Model node fail with 404 on Abliterator?
Recent versions of the node turn on Use Responses API by default, which calls /v1/responses. Abliterator serves Chat Completions only, so switch that toggle off in the node.
Will n8n list Abliterator's models in the dropdown?
Yes. The node loads models from the credential's Base URL plus /models, and for hosts other than api.openai.com it lists every model returned, which for Abliterator is kimi-k3.1-pro-abliterated and deepseek-v4.1-flash-abliterated.
How do I set reasoning effort for an Abliterator model in n8n?
n8n only shows Reasoning Effort for model names it recognizes. Add the option Model Supports Reasoning, turn it on, and the Reasoning Effort field appears.