abliteration/ provider with your Abliteration API key. No custom base URL is needed.
Install
Use Python 3.12 or later and create an isolated environment:ak_... key in the console, then set it in the same terminal:
Send a request
Save this aschat.py and run python chat.py:
abliteration/. For images, use abliteration/abliterated-model-large-flash or abliteration/abliterated-model. Large v2 accepts text only.
Stream a response
Save this asstream.py and run python stream.py:
Run a local gateway
In the same environment, install the proxy and create a key for local gateway clients:config.yaml:
choices[0].message.content and token counts in usage. Gateway clients use abliteration-chat as the model name and the gateway key for authentication. Keep your Abliteration key on the gateway process.
Tools and reasoning
Passtools, tool_choice, and response_format as in OpenAI Chat Completions.
In LiteLLM 1.106.4, put reasoning_effort in extra_body, as shown above. A top-level reasoning_effort is not forwarded. See reasoning effort for supported levels.
Responses and Messages
LiteLLM translates Responses and Anthropic Messages requests into Chat Completions for this provider. For endpoint-specific features such as Anthropic web fetch, use Abliteration’s native APIs. See LiteLLM’s provider guide for its translated interfaces.Troubleshooting
LiteLLM needs a current model catalog to estimate costs and recognize model limits. Estimates can differ from your bill because of web search charges and subscription discounts. Check Abliteration pricing and Console usage for billing.