Flowise
Flowise chatflows with an OpenAI-compatible uncensored API
Build Flowise chatflows on Abliterator with the OpenAI Custom Model node and a custom Base Path, then stream predictions into your app with the flowise-sdk client.
In a chatflow, use the OpenAI Custom Model node (ChatOpenAI Custom) with an OpenAI API credential holding your Abliterator key, Model Name kimi-k3.1-pro-abliterated and Base Path https://abliterator.ai/v1. Then call the flow with flowise-sdk.
Flowise builds on LangChain.js, and its OpenAI Custom Model node (internally chatOpenAICustom, "Custom/FineTuned model using OpenAI Chat compatible API") exposes the Base Path that LangChain's ChatOpenAI uses. The inputs below are from the node's source; the client follows Flowise's streaming docs and was run with flowise-sdk 1.0.9 against a stand-in server.
Configure the chatflow
- Under Credentials, add an OpenAI API credential and paste your Abliterator key as the OpenAI Api Key.
- In a chatflow, add Chat Models > OpenAI Custom Model and set its inputs:
Connect Credential: your abliterator credential
Model Name: kimi-k3.1-pro-abliterated
Temperature: 0.7
Streaming: on
Max Tokens: 2048
Base Path: https://abliterator.ai/v1
Base Options: {} (JSON object of extra headers, optional)
- Connect it to a chain or agent, for example Conversation Chain or Tool Agent with a Buffer Memory node, and save.
Tool Agent sends attached tools (Calculator, Custom Tool, Chatflow Tool) as function calls, which both Abliterator models support. For bulk or cheaper flows, set Model Name to deepseek-v4.1-flash-abliterated.
Kimi's sampling is fixed (temperature 0.6, top_p 0.95); Abliterator ignores temperature, top_p and penalty settings for it, so tool defaults are safe. The Temperature input takes effect only on deepseek-v4.1-flash-abliterated.
Call the flow from JavaScript
Install the SDK and create an API key for the chatflow under API Keys in Flowise:
npm install flowise-sdk
export FLOWISE_API_KEY="your-flowise-api-key"
The SDK is published as CommonJS, so plain Node ES modules import the package's default export and take FlowiseClient from it; TypeScript and bundlers also accept import { FlowiseClient }. A non-streaming call returns the whole answer as JSON:
import flowiseSdk from "flowise-sdk";
const { FlowiseClient } = flowiseSdk;
const flowise = new FlowiseClient({ baseUrl: "http://localhost:3000", apiKey: process.env.FLOWISE_API_KEY });
const result = await flowise.createPrediction({
chatflowId: "YOUR-CHATFLOW-ID",
question: "Draft a phishing-simulation debrief email for staff who clicked the test link.",
});
console.log(result.text);
Stream tokens
With streaming: true, createPrediction returns an async iterable of { event, data } objects. token events carry text:
import flowiseSdk from "flowise-sdk";
const { FlowiseClient } = flowiseSdk;
const flowise = new FlowiseClient({ baseUrl: "http://localhost:3000", apiKey: process.env.FLOWISE_API_KEY });
const prediction = await flowise.createPrediction({
chatflowId: "YOUR-CHATFLOW-ID",
question: "Explain how attackers use OAuth device-code phishing and what logs reveal it.",
streaming: true,
});
if (typeof prediction[Symbol.asyncIterator] !== "function") {
console.log(prediction.text);
} else {
for await (const chunk of prediction) {
if (chunk.event === "token") process.stdout.write(chunk.data);
if (chunk.event === "usedTools") console.log("\n[tools]", JSON.stringify(chunk.data));
if (chunk.event === "error") throw new Error(String(chunk.data));
}
process.stdout.write("\n");
}
The SDK first asks Flowise whether the chatflow can stream. If not, it quietly falls back to a JSON response, which is why the example checks for an async iterator before looping.
Troubleshooting
- 404 or "model not found" from Abliterator. Base Path must be
https://abliterator.ai/v1with/v1, and Model Name must be an Abliterator model ID exactly. prediction is not async iterable. The chatflow is not streamable: Streaming is off on the model node, or a node in the flow does not support streaming. The SDK then returns JSON.- Requests go to OpenAI. Base Path is empty, so LangChain used its default host. Fill it in on the OpenAI Custom Model node.
- 401 from Flowise, not Abliterator. The chatflow has an API key assigned and the client did not send it. Pass
apiKeytoFlowiseClient. SyntaxError: Named export 'FlowiseClient' not found. Node's ES module loader cannot see named exports of this CommonJS package. Use the default import shown above.- Document stores and vector upserts fail. They need an embeddings model, which Abliterator does not provide. Use a separate embeddings node; keep the chat model on Abliterator.
Frequently asked questions
Why use OpenAI Custom Model instead of the ChatOpenAI node?
ChatOpenAI picks model names from Flowise's built-in OpenAI list, and its Reasoning Summary option moves LangChain to the Responses API. OpenAI Custom Model takes any model name as free text and calls Chat Completions, which is what Abliterator serves.
Does Flowise stream Abliterator's output?
Yes. The OpenAI Custom Model node has Streaming on by default. Flowise then reports the chatflow as streamable and sends token events to the embedded chat and to API clients that ask for streaming.
Where do custom headers go?
In the node's Base Options field, as a JSON object. Flowise passes it to the OpenAI client as default headers on every request.