Get started

Quickstart

Get an Abliterator API key and send your first request to an abliterated model with curl, Python or Node, then stream the reply and pick the right model.

Reviewed APIQuickstart

Quick answer

Create a key at /keys, set ABL_API_KEY, and point any OpenAI SDK at https://abliterator.ai/v1. Use deepseek-v4.1-flash-abliterated for cheap, fast calls and kimi-k3.1-pro-abliterated for harder reasoning and agent work.

1. Get a key

Create a key at /keys. New accounts get $1 of credit, enough for many test requests on either model. You can manage keys later at /account.

Abliterator stores only a hash of each key, so copy it when it is shown. Keys look like sk-abl-v1-....

Put the key in an environment variable. Every example in these docs reads ABL_API_KEY:

export ABL_API_KEY="sk-abl-v1-..."

Want to try the models before you sign up? The free playground needs no key.

2. Send a request

Abliterator speaks the OpenAI Chat Completions format at https://abliterator.ai/v1 and the Anthropic Messages format at https://abliterator.ai. Start with Chat Completions.

curl

curl https://abliterator.ai/v1/chat/completions \
  -H "Authorization: Bearer $ABL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash-abliterated",
    "max_tokens": 4096,
    "messages": [
      {"role": "user", "content": "Explain how SQL injection in a login form works and how parameterized queries prevent it."}
    ]
  }'

Python

Install the official SDK with pip install openai, then:

import os

from openai import OpenAI

client = OpenAI(base_url="https://abliterator.ai/v1", api_key=os.environ["ABL_API_KEY"])

response = client.chat.completions.create(
    model="deepseek-v4.1-flash-abliterated",
    max_tokens=4096,
    messages=[
        {
            "role": "user",
            "content": "Explain how SQL injection in a login form works and how parameterized queries prevent it.",
        }
    ],
)

print(response.choices[0].message.content)
print("cost (USD):", response.usage.cost)

Node

Install the SDK with npm install openai, then save this as quickstart.mjs and run node quickstart.mjs:

import OpenAI from "openai";

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

const response = await client.chat.completions.create({
  model: "deepseek-v4.1-flash-abliterated",
  max_tokens: 4096,
  messages: [
    {
      role: "user",
      content: "Explain how SQL injection in a login form works and how parameterized queries prevent it.",
    },
  ],
});

console.log(response.choices[0].message.content);
console.log("cost (USD):", response.usage.cost);

Every Chat Completions response includes usage.cost, the price of that request in USD. See usage and billing.

Why the examples set max_tokens

Set max_tokens on every request. Before a request runs, Abliterator reserves enough credit to cover the prompt plus max_tokens of output. Without it, Abliterator reserves the model's full output limit (up to 393,216 tokens), which ties up credit that parallel requests could use, and on a small balance Abliterator lowers the output limit to what your balance can pay for. Both models reason before they answer by default, and reasoning tokens count toward max_tokens, so leave room: 4,096 is a sensible floor. See reasoning.

3. Stream the reply

Add "stream": true to get Server-Sent Events. Abliterator always ends an OpenAI-format stream with a usage chunk that carries the cost.

import os

from openai import OpenAI

client = OpenAI(base_url="https://abliterator.ai/v1", api_key=os.environ["ABL_API_KEY"])

stream = client.chat.completions.create(
    model="deepseek-v4.1-flash-abliterated",
    max_tokens=4096,
    stream=True,
    messages=[{"role": "user", "content": "Summarize the OWASP Top 10 for LLM applications in five bullets."}],
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
    if chunk.usage:
        print("\ncost (USD):", chunk.usage.cost)

The streaming guide covers the event formats, Node and Anthropic clients, and what happens when a client disconnects.

4. Choose a model

Abliterator sells two models. Both take text and images, have a 1,048,576-token context window and accept reasoning_effort.

deepseek-v4.1-flash-abliterated kimi-k3.1-pro-abliterated
Base model DeepSeek V4.1 Flash Moonshot AI Kimi K3.1 Pro
Use it for High volume, evals, data generation, classification Hard reasoning, long agent sessions, coding agents
Max output 393,216 tokens 262,144 tokens
Price per 1M tokens (input / cached / output) $1.00 / $0.10 / $2.00 $4.00 / $0.40 / $15.00
JailbreakBench harmful refusals (original → abliterated) 94% → 1% 94% → 3%

Both models have published results on the benchmarks page. Start with deepseek-v4.1-flash-abliterated. Move a workload to kimi-k3.1-pro-abliterated when it needs stronger multi-step reasoning or long tool-using sessions. If you run it as a coding agent, test your own tasks first: its Terminal-Bench 4.0 score fell from 68.8 to 56.3, a drop that is plausible but not statistically shown. The models page lists aliases, limits and the GET /v1/models response.

5. Use the Anthropic format instead

Tools built on the Anthropic SDK, such as Claude Code, use the Messages endpoint. Point the SDK at https://abliterator.ai (it appends /v1/messages):

import os

import anthropic

client = anthropic.Anthropic(base_url="https://abliterator.ai", api_key=os.environ["ABL_API_KEY"])

message = client.messages.create(
    model="deepseek-v4.1-flash-abliterated",
    max_tokens=4096,
    messages=[{"role": "user", "content": "List three common causes of SSRF in web applications."}],
)

print(message.content[-1].text)

See the Anthropic Messages API reference.

What Abliterator does not support

Abliterator serves Chat Completions and Messages only. The OpenAI Responses API, Assistants, embeddings, image generation, audio, fine-tuning, the batch API, web search and file uploads are not available. Tools that require the Responses API, such as current versions of Codex CLI, will not work.

Next steps