Skip to main content
abliteration.ai implements the OpenAI /v1/chat/completions spec. Any OpenAI SDK works by changing the base URL and API key.

Configuration

Base URLhttps://api.abliteration.ai/v1
AuthAuthorization: Bearer $ABLIT_KEY
Endpoints/chat/completions, /models, /embeddings

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.abliteration.ai/v1",
    api_key=os.environ["ABLIT_KEY"],
)

resp = client.chat.completions.create(
    model="abliterated-model",
    messages=[{"role": "user", "content": "Hello"}],
)

Node

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.abliteration.ai/v1",
  apiKey: process.env.ABLIT_KEY,
});

Streaming

Set stream: true. See streaming.

Tool calling

Pass tools and tool_choice exactly as with OpenAI. See tool calling.

What’s not supported

  • Assistants v1/v2 APIs
  • Fine-tuning endpoints (use the console instead)
  • File uploads beyond images (see vision)
See the compatibility matrix for a full feature-by-feature list.