Skip to main content
To use the Anthropic SDK with abliteration.ai, set the base URL to https://api.abliteration.ai and pass your ak_... key as api_key= (sent as x-api-key) — no other code changes. abliteration.ai implements the Anthropic Messages API, including streaming, tool use, web search, and web fetch.

Configuration

Base URLhttps://api.abliteration.ai
AuthAuthorization: Bearer ak_... or x-api-key: ak_... — both work
Endpoint/v1/messages

Python

curl

Request safety filtering

Pass flagged_categories in the request body to reject calls whose content matches moderation categories you choose (harassment, hate, illicit, sexual). Works on /v1/messages with no policy setup. See request safety filtering.

Thinking

abliterated-model is a reasoning model. Set "thinking": false at the top level of the request body to skip reasoning and return only the final answer. See thinking toggle.
Last modified on July 15, 2026