Documentation

Abliterator API docs

OpenAI- and Anthropic-compatible. Point any SDK or tool at the Abliterator base URL with your key, pick a model, and keep the rest of your code.

Quickstart

  1. Create a key (new accounts get $1 of credit).
  2. Point your SDK at https://abliterator.ai/v1 (OpenAI) or https://abliterator.ai (Anthropic).
  3. Use the model ID kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated.
Model IDInputCachedOutput
kimi-k3.1-pro-abliterated$4.00$0.40$15.00
deepseek-v4.1-flash-abliterated$1.00$0.10$2.00

Prices per 1M tokens.

from openai import OpenAI
import os

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

reply = client.chat.completions.create(
    model="kimi-k3.1-pro-abliterated",
    messages=[{"role": "user", "content": "Write a Sigma rule for suspicious LSASS access."}],
)
print(reply.choices[0].message.content)
import OpenAI from "openai";

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

const reply = await client.chat.completions.create({
  model: "kimi-k3.1-pro-abliterated",
  messages: [{ role: "user", content: "Write a Sigma rule for suspicious LSASS access." }],
});
console.log(reply.choices[0].message.content);
import anthropic
import os

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

msg = client.messages.create(
    model="kimi-k3.1-pro-abliterated",
    max_tokens=2048,
    messages=[{"role": "user", "content": "Write a Sigma rule for suspicious LSASS access."}],
)
print(msg.content[0].text)
curl https://abliterator.ai/v1/chat/completions \
  -H "Authorization: Bearer $ABL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k3.1-pro-abliterated",
    "messages": [{"role": "user", "content": "Write a Sigma rule for suspicious LSASS access."}]
  }'
export ANTHROPIC_BASE_URL=https://abliterator.ai
export ANTHROPIC_AUTH_TOKEN="$ABL_API_KEY"
export ANTHROPIC_MODEL=kimi-k3.1-pro-abliterated
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4.1-flash-abliterated
claude

Get started

API reference

API reference Chat Completions Reference for Abliterator's OpenAI-compatible POST /v1/chat/completions: request fields, supported parameters, response shape, usage.cost and request headers. API reference Anthropic Messages API Use Abliterator's Anthropic-compatible POST /v1/messages with the Anthropic SDKs: base URL, system prompts, tools, thinking, streaming events and limits. API reference Streaming How Abliterator streams responses as Server-Sent Events in OpenAI and Anthropic formats, where the final usage and cost arrive, and client code for Python and Node. API reference Tool calling Function calling with Abliterator's abliterated models in OpenAI and Anthropic formats: full tool loops in Python, tool_choice rules, streaming and parallel calls. API reference Structured outputs Get JSON from Abliterator's models with response_format json_object or json_schema, or Anthropic output_config.format, and validate every response in your code. API reference Vision Send images to Abliterator's models with OpenAI image_url parts or Anthropic image blocks, using https URLs or base64, plus size limits and how images are billed. API reference Reasoning Control how much Abliterator's models think with reasoning_effort or Anthropic thinking settings, read the reasoning output, and budget max_tokens for reasoning. API reference Prompt caching Abliterator caches repeated prompt prefixes automatically and bills cached input at the cached price. How to structure prompts for cache hits and check cached tokens. API reference System prompts Abliteration removes refusals, not instruction following. How well Abliterator's models obey operator system prompts, with a restrictive production prompt example.

Coding agents

Frameworks

OpenAI SDK OpenAI Python SDK with an OpenAI-compatible uncensored API Use the official openai Python package with Abliterator: set base_url and api_key, stream tokens, parse structured outputs and read per-request cost. OpenAI SDK OpenAI Node SDK with an OpenAI-compatible uncensored API Point the official openai npm package at Abliterator with baseURL and apiKey, stream tokens, run tools automatically with runTools, and read cost headers. Anthropic SDK Anthropic Python SDK with an uncensored Messages API Use the anthropic Python package with Abliterator's Anthropic-compatible Messages API: set base_url without /v1, stream text, and run a tool-use loop. Anthropic SDK Anthropic TypeScript SDK with an uncensored Messages API Connect @anthropic-ai/sdk to Abliterator's Anthropic-compatible endpoint: baseURL without /v1, typed streaming with messages.stream, and forced tool output. LangChain LangChain Python with an OpenAI-compatible uncensored API Use langchain-openai's ChatOpenAI with Abliterator: set base_url and api_key, stream with usage, build a create_agent tool agent, and keep requests on Chat Completions. LangChain.js LangChain.js with an OpenAI-compatible uncensored API Configure @langchain/openai ChatOpenAI for Abliterator with configuration.baseURL, stream tokens, run a createAgent tool agent and get Zod-typed structured output. LlamaIndex LlamaIndex Python with an OpenAI-compatible uncensored API Connect LlamaIndex to Abliterator with OpenAILike: the api_base, is_chat_model and context_window settings, streaming chat, and a FunctionAgent with tools. LlamaIndex.TS LlamaIndex.TS with an OpenAI-compatible uncensored API Point LlamaIndex.TS at Abliterator with the @llamaindex/openai OpenAI class and baseURL, stream chat, fix the 1,024-token context default and run a tool agent. Vercel AI SDK Vercel AI SDK with an OpenAI-compatible uncensored API Create an Abliterator provider with @ai-sdk/openai-compatible, then use generateText, streamText, multi-step tools with stopWhen and typed Output.object results. LiteLLM LiteLLM SDK and Proxy with an OpenAI-compatible uncensored API Call Abliterator from LiteLLM with the openai/ model prefix and api_base, stream responses, and register both Abliterator models in a LiteLLM Proxy config.yaml. Haystack Haystack pipelines with an OpenAI-compatible uncensored API Run Haystack's OpenAIChatGenerator on Abliterator with api_base_url and Secret.from_env_var, stream with print_streaming_chunk, and build a tool-using Agent. Semantic Kernel Semantic Kernel Python with an OpenAI-compatible uncensored API Connect Semantic Kernel for Python to Abliterator by passing an AsyncOpenAI client to OpenAIChatCompletion, then stream replies and auto-invoke kernel functions. Semantic Kernel Semantic Kernel C# with an OpenAI-compatible uncensored API Use AddOpenAIChatCompletion with a custom endpoint to run Semantic Kernel for .NET on Abliterator: the SKEXP0010 pragma, streaming and auto function calling. AutoGen AutoGen AgentChat with an OpenAI-compatible uncensored API Run AutoGen AgentChat on Abliterator: OpenAIChatCompletionClient with base_url and the required model_info, streaming to Console, and a tool-using AssistantAgent. CrewAI CrewAI agents with an OpenAI-compatible uncensored API Give CrewAI agents an Abliterator model with LLM(model="openai/...", base_url=...), stream a crew's output, and give agents tools with the @tool decorator. Pydantic AI Pydantic AI with an OpenAI-compatible uncensored API Run Pydantic AI agents on Abliterator with OpenAIChatModel and OpenAICompatibleProvider: typed output_type results, tools, and streamed text with run_stream. DSPy DSPy programs with an OpenAI-compatible uncensored API Configure dspy.LM for Abliterator with the openai/ prefix, api_base and model_type="chat", stream output fields with streamify, and score programs with dspy.Evaluate. Instructor Instructor with an OpenAI-compatible uncensored API Get validated Pydantic objects from Abliterator with Instructor: from_provider with base_url, TOOLS mode, automatic retries, and streaming with create_partial. Mastra Mastra agents with an OpenAI-compatible uncensored API Give a Mastra agent an Abliterator model with the { id, url, apiKey } model config, stream replies with agent.stream, and add tools built with createTool. Next.js Next.js App Router with an OpenAI-compatible uncensored API Stream Abliterator models into a Next.js App Router app: a route handler with the AI SDK, a useChat client page, server-side tools, and keeping the key private. Express Express.js with an OpenAI-compatible uncensored API Build an Express 5 API on Abliterator with the openai package: a JSON route, an SSE relay that aborts when the client leaves, and error middleware for Abliterator errors. FastAPI FastAPI endpoints with an OpenAI-compatible uncensored API Serve Abliterator models from FastAPI: an AsyncOpenAI client in lifespan, a typed JSON endpoint, and token streaming with FastAPI's native EventSourceResponse. Django Django views with an OpenAI-compatible uncensored API Call Abliterator from Django: a shared client configured in settings, a JSON view, an async StreamingHttpResponse under ASGI, and a management command for batch jobs. Flask Flask apps with an OpenAI-compatible uncensored API Add Abliterator models to a Flask app: a client stored in app.extensions, streamed responses with stream_with_context, and a route that runs a tool-calling loop. Go Go net/http with an OpenAI-compatible uncensored API Call Abliterator from Go with only the standard library: a JSON chat request, an SSE stream reader with bufio, and an http.Handler that relays tokens to browsers. Bun Bun and Bun.serve with an OpenAI-compatible uncensored API Use Abliterator from Bun: the openai package with Bun's automatic .env loading, a Bun.serve route that streams tokens, and a CLI compiled to one binary. Deno Deno 2 and Deno Deploy with an OpenAI-compatible uncensored API Call Abliterator from Deno 2 with npm:openai and narrow permissions, stream tokens from Deno.serve, and run a deno serve app with --parallel workers. Cloudflare Workers Cloudflare Workers with an OpenAI-compatible uncensored API Call Abliterator from a Cloudflare Worker: store the key with wrangler secret, stream tokens through a TransformStream, and log usage after the response with waitUntil. Supabase Supabase Edge Functions with an OpenAI-compatible uncensored API Call Abliterator from Supabase Edge Functions: keep the key in supabase secrets, handle CORS, invoke from supabase-js and stream to the browser with toReadableStream. AWS Lambda AWS Lambda Python with an OpenAI-compatible uncensored API Run Abliterator from AWS Lambda in Python: package the openai SDK for Linux, reuse the client across invocations, stream against the deadline, retry SQS batches. Rails Ruby on Rails with an OpenAI-compatible uncensored API Use Abliterator from Rails with the official openai gem: a client in an initializer, a JSON action, SSE streaming with ActionController::Live, and Active Job retries. Laravel Laravel and PHP with an OpenAI-compatible uncensored API Use Abliterator from Laravel with openai-php/laravel: point config/openai.php at Abliterator, call the OpenAI facade, stream with eventStream and fake calls in tests. Spring Boot Spring Boot with an OpenAI-compatible uncensored API Configure Spring AI's OpenAI starter for Abliterator: base-url, api-key and chat model properties, ChatClient calls, Flux streaming and @Tool methods in Spring Boot. Rust Rust async-openai with an OpenAI-compatible uncensored API Use the async-openai crate with Abliterator: OpenAIConfig::with_api_base, typed chat requests, streaming with create_stream, and create_byot to read the cost field. 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. Dify Dify with an OpenAI-compatible uncensored API provider Add Abliterator to Dify through the OpenAI-API-compatible model provider: the exact form values, tool-call and vision settings, and calling the app API from Python. 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.

Red-teaming tools

Chat apps