Skip to main content
abliteration.ai implements the Anthropic Messages API. Any Anthropic SDK works by changing the base URL and auth token.

Configuration

Base URLhttps://api.abliteration.ai
AuthANTHROPIC_AUTH_TOKEN=$ABLIT_KEY (leave ANTHROPIC_API_KEY empty)
Endpoint/v1/messages

Python

from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.abliteration.ai",
    auth_token=os.environ["ABLIT_KEY"],
)

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

curl

curl https://api.abliteration.ai/v1/messages \
  -H "x-api-key: $ABLIT_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "abliterated-model",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

What’s not supported

  • Files API and batch endpoints
  • computer_use and bash tools (regular tool use works — see tool calling)