EN ▾
Get API key

Abliterated LLM API: Call One With the OpenAI SDK

An abliterated LLM API gives you a no-refusal open-weight model over plain HTTPS, so you skip the GPU, the quantization choices and the serving work. Change the base URL and key in the OpenAI SDK and you are done.

Updated

Key points

  • Base URL https://api.abliteratedmodel.cc/v1, model ID uncensored, standard Bearer key.
  • Works with any OpenAI SDK, with streaming, tool calling and JSON mode.
  • $0.15 per 1M input tokens and $0.50 per 1M output tokens, prepaid, no subscription.
  • A $0.50 trial needs no card and lasts 7 days.
Glass vault opening and releasing glowing ribbons into a network, representing a hosted no-refusal model API

What an abliterated model is, and why people want an API for it

Abliteration is a technique that edits an open-weight model so it stops refusing requests. People publish the resulting weights, and you can download them and run them yourself. That works, but it comes with a bill in time and hardware before you write a single prompt.

A hosted endpoint skips that part. You get a URL, a key and a model name, and you send the same requests you would send to any OpenAI-style service. This article shows the shortest path from nothing to a working call, and how to decide between hosting the weights yourself and paying per token.

One clarification up front. The model behind this endpoint is a single open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not the official API of any model vendor, and it is not a router that picks between models.

Local abliterated model or hosted API: the real trade-off

Running locally is a fair choice when you already own a large GPU, want to inspect the weights, or work offline. The costs show up later, in places people forget to budget for.

  • Memory. A model that is pleasant to use needs a lot of VRAM, and long prompts need more on top for the key-value cache. A 100,000-token window is far beyond what most home setups hold.
  • Serving. A desktop chat app is one thing. A service that handles several requests at once, streams tokens and survives a restart is a separate piece of work.
  • Quantization choices. Smaller files fit your card but change the output quality, and you become the person who tests which variant is acceptable.
  • Idle cost. A GPU draws power and occupies a machine whether you send one prompt a day or a thousand.

A hosted API turns all of that into a per-token price. For a side project, a story tool or a prototype that is used a few hours a week, paying for the tokens you actually send is usually cheaper than keeping a card busy. If you push millions of tokens every day for months, do the math for your own case before deciding.

Get a key and the three values you need

You need three things to talk to the service: the base URL, a key and the model ID.

SettingValue
Base URLhttps://api.abliteratedmodel.cc/v1
Model IDuncensored
Auth headerAuthorization: Bearer YOUR_KEY

To get a key, sign up with Google or with an email and password, then open the API key page. New accounts can claim $0.50 of trial credit there with one click. It needs no card, lasts 7 days and is limited to one per person. That is enough for hundreds of short test requests, so you can check the output quality before you pay anything.

Call it with the OpenAI Python SDK

Install the official SDK and point it at the new base URL. Nothing else in your code has to change.

pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://api.abliteratedmodel.cc/v1",
    api_key="YOUR_KEY",
)

resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are a blunt, helpful writing partner."},
        {"role": "user", "content": "Outline a grim fantasy short story in five beats."},
    ],
    temperature=0.8,
)

print(resp.choices[0].message.content)
print(resp.usage)

If you prefer raw HTTP, the same call looks like this:

curl https://api.abliteratedmodel.cc/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"uncensored","messages":[{"role":"user","content":"Say hello in three words."}]}'

The endpoint also accepts POST /v1/responses, and GET /v1/models lists the model so client apps that probe the endpoint can see what is available.

Streaming, tools and JSON mode

Most apps that use a model for fiction or chat want tokens as they arrive. Set stream: true and read the events. Usage numbers arrive at the end of the stream.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write the opening paragraph of a noir story."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Tool calling works through the usual tools and tool_choice fields, and tool results go back as messages with role: "tool". JSON mode is available with response_format={"type": "json_object"}. Sampling settings such as temperature, top_p, stop, seed and the penalties are passed through. The full list of parameters is in the documentation.

The context window is 100,000 tokens, counting prompt and completion together. max_tokens is optional, and a completion can use whatever the prompt leaves free.

What it costs and what the limits are

Billing is pay as you go from prepaid credit. Input costs $0.15 per 1M tokens and output costs $0.50 per 1M tokens. There is no subscription, credit does not expire, and failed or refused requests are not charged.

A quick example: a request with 3,000 input tokens and 800 output tokens costs 3,000 x $0.15 / 1,000,000 = $0.00045 for the input and 800 x $0.50 / 1,000,000 = $0.0004 for the output, which is $0.00085 in total. A thousand of those is $0.85.

Top-ups run from $20 to $500 in whole amounts, with a bonus of 5% from $50, 10% from $100 and 15% from $200. You can pay with crypto (USDT on TRC20, USDC on Base). See the pricing page for the current table.

A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. If you go over, you get HTTP 429 with the code rate_limited or concurrency. A streamed request holds its concurrency slot until the stream ends, so a UI that opens many streams at once can hit the concurrency limit before the per-minute one. Back off and retry, or queue on your side.

Limits you should know before building on it

Be clear about what this service does not do. It is text only: no image, audio or video generation, no embeddings and no fine-tuning. One hard rule applies to everything: sexual content involving minors is not allowed. Beyond that, the model is tuned to skip content refusals for lawful adult use, which is the reason people look for this kind of endpoint in the first place.

Prompts are not used for training. For more on privacy in chat use, see the page on anonymous LLM chat. For a use-case view of output quality, the article on the best abliterated model for writing covers prompt style and settings for long fiction.

Check the X-Balance-USD response header in your logs. It shows what is left after each request, so a script can warn you before credit runs out.

Common first-call problems

Most failed first calls come from one of four causes.

  • 404 or an HTML page back. The base URL is missing /v1 or has a typo. It must end with /v1, and the SDK appends /chat/completions itself.
  • 401 unauthorized. The key was copied with a trailing space, or an old OpenAI key is still set in an environment variable that the SDK reads first. Pass api_key explicitly while testing.
  • Model not found. The model ID is uncensored, not a name from another provider. Call GET /v1/models to confirm.
  • 429 during a test loop. A trial key allows 2 concurrent requests and 60 per minute. Run your test prompts one after another, or add a short sleep.

If something still looks wrong, keep the X-Request-Id response header from the failing call. It identifies the request when you contact support.

Questions and answers

Is this the same as downloading an abliterated model and running it myself?

No. It is a hosted open-weight model tuned to answer without content refusals, run by an independent provider. You send requests over HTTPS and pay per token instead of managing weights and GPUs.

Do I need to change my code to use the OpenAI SDK with it?

Only the base URL, the key and the model name. Set the base URL to https://api.abliteratedmodel.cc/v1 and the model to uncensored.

Can I try it without paying?

Yes. After sign-up you can claim $0.50 of trial credit with one click on the API key page. It is valid for 7 days, needs no card and is limited to one per person.

Does it generate images or embeddings?

No. The service is text only. There is no image, audio or video generation, no embeddings and no fine-tuning.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.