Docs
Node.js SDK quickstart
Use the OpenAI Node SDK with abliteration.ai by setting baseURL and apiKey. OpenAI-compatible chat completions.
Updated 2025-12-24
The OpenAI Node SDK works with abliteration.ai by setting baseURL and apiKey.
Keep your existing message format and model selection, and only change the endpoint.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.ABLIT_KEY,
baseURL: "https://api.abliteration.ai/v1",
});
const completion = await client.chat.completions.create({
model: "abliterated-model",
messages: [{ role: "user", content: "Say hello in Spanish." }],
});
console.log(completion.choices[0]?.message?.content);