Instant migration
Move from OpenAI in seconds.
Three changes — base URL, model, env var — and your existing OpenAI code runs against abliterated-model. Keep your SDK, streaming, tool calls, and structured outputs.
What changes
Three values. Nothing else.
Base URL
api.openai.com/v1
api.abliteration.ai/v1
Model
gpt-4o
abliterated-model
Env var
OPENAI_API_KEY
ABLIT_KEY
Before & after
Every SDK you already use.
Abliteration is OpenAI-compatible. Your existing Python, Node, or cURL code works with three value changes.
Python
Before (OpenAI)
import openai, os
client = openai.OpenAI(
api_key=os.environ["OPENAI_API_KEY"],
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}],
)After (Abliteration)
import openai, os
client = openai.OpenAI(
base_url="https://api.abliteration.ai/v1",
api_key=os.environ["ABLIT_KEY"],
)
response = client.chat.completions.create(
model="abliterated-model",
messages=[{"role": "user", "content": "Hello"}],
)Node.js
Before (OpenAI)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello" }],
});After (Abliteration)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.abliteration.ai/v1",
apiKey: process.env.ABLIT_KEY,
});
const response = await client.chat.completions.create({
model: "abliterated-model",
messages: [{ role: "user", content: "Hello" }],
});cURL
Before (OpenAI)
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role":"user","content":"Hello"}]
}'After (Abliteration)
curl https://api.abliteration.ai/v1/chat/completions \
-H "Authorization: Bearer $ABLIT_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "abliterated-model",
"messages": [{"role":"user","content":"Hello"}]
}'Keep what you already built
- Streaming responses with the same delta schema
- Function / tool calling on the same request shape
- Structured JSON output with response_format
- Vision inputs on the same chat endpoint
Add governance when you need it
- Swap /v1/chat/completions → /policy/chat/completions
- Attach a policy_id for rewrite, redact, or escalate
- Tag requests with policy_user and policy_project_id
- Export audit logs to Splunk, Datadog, or S3
Ship in the next five minutes.
Grab a key, swap three values, and send your first request.