Abliterated LLM API: Keys, Setup and Code
If you want an abliterated LLM API you can call from your own code, this page shows the whole path: key, base URL, first request, streaming and error handling. It takes about five minutes.
Updated

Key points
- The API is OpenAI-compatible: change the base URL and key, keep your SDK.
- The model ID is uncensored and the endpoints are POST /v1/chat/completions and GET /v1/models.
- Pricing is pay as you go: $0.15 per 1M input tokens and $0.50 per 1M output tokens.
- New accounts can claim $0.50 of trial credit with one click, no card needed.
What you get from a hosted endpoint
The service is a hosted endpoint that serves an open-weight model with its refusal behavior reduced, so you send a prompt and get an answer instead of a canned apology. The model is operated 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 vendors. You get one model behind one ID, uncensored.
The reason to use an API instead of running weights yourself is practical. A model of this class needs serious GPU memory, and you would also need to build the serving layer, batching and monitoring. Here you pay per token and talk to a standard chat completions endpoint. If you want the background on the term itself, the page on abliterated LLM options covers the options and trade-offs.
Two limits are fixed. The service is text only: no images, audio, video, embeddings or fine-tuning. And there is a hard rule against sexual content involving minors, which no setting changes.
Get a key in three steps
- Open the API key page and sign up with Google, or with an email and a password.
- Claim the trial credit. After sign-up there is a one-click button on the key page that adds $0.50. It is limited to one per person, lasts 7 days and needs no card.
- Copy the key and store it as an environment variable, not in source code.
A trial key is rate limited more tightly than a funded one: 2 concurrent requests and 60 requests per minute. Once you top up, the key becomes a full key with 8 concurrent requests and 300 requests per minute. Top-ups are any whole amount from $20 to $500, with a bonus of 5% from $50, 10% from $100 and 15% from $200. You can pay by crypto (USDT on TRC20, USDC on Base). Credit never expires, so there is no pressure to spend it in a month.
export ABLITERATED_API_KEY="paste-your-key-here"Check the connection with curl
Before writing any application code, confirm the key works by listing models. The call is read-only and costs nothing.
curl https://api.abliterated.top/v1/models \
-H "Authorization: Bearer $ABLITERATED_API_KEY"
You should see a JSON list that includes uncensored. If you get 401, the key is missing or mistyped. Then send a first chat request:
curl https://api.abliterated.top/v1/chat/completions \
-H "Authorization: Bearer $ABLITERATED_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "system", "content": "You are a direct, plain-spoken assistant."},
{"role": "user", "content": "Explain what a context window is in two sentences."}
],
"temperature": 0.7
}'
The response headers include X-Request-Id and X-Balance-USD, so you can log the request and see your remaining credit on every call.
Use the official OpenAI SDK
Because the API follows the OpenAI chat completions format, you do not need a special client. Install the SDK you already know and override two settings.
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.abliterated.top/v1",
api_key=os.environ["ABLITERATED_API_KEY"],
)
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Write a four-line scene opener for a noir story."}],
temperature=0.9,
top_p=0.95,
)
print(resp.choices[0].message.content)
print(resp.usage)
Node
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.abliterated.top/v1",
apiKey: process.env.ABLITERATED_API_KEY,
});
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Give me three names for a fictional city." }],
});
console.log(resp.choices[0].message.content);
Sampling parameters such as temperature, top_p, stop, seed and the frequency and presence penalties are passed through to the model. max_tokens is optional: the completion can use whatever is left of the 100,000-token window after your prompt.
Streaming, tools and JSON mode
Set stream: true and the API sends Server-Sent Events, with usage reported at the end of the stream. This is the right default for any chat interface.
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Tell me a short story about a lighthouse keeper."}],
stream=True,
stream_options={"include_usage": 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 with the usual tools and tool_choice fields, and tool results go back as messages with role: "tool". For structured output, pass response_format={"type": "json_object"} and say in the prompt that you want JSON. Always parse the result in a try block anyway; any model can occasionally produce a malformed string.
A minimal chat loop to build from
Most projects start as a terminal chat. The script below keeps the history, streams the reply and trims old turns so the prompt does not grow without limit. It is short enough to read in one sitting, and every real application is some variation of it.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.abliterated.top/v1",
api_key=os.environ["ABLITERATED_API_KEY"],
)
history = [{"role": "system", "content": "You are a helpful, direct assistant."}]
while True:
user = input("you> ")
if not user:
break
history.append({"role": "user", "content": user})
reply = ""
for chunk in client.chat.completions.create(
model="uncensored", messages=history, stream=True
):
if chunk.choices and chunk.choices[0].delta.content:
piece = chunk.choices[0].delta.content
reply += piece
print(piece, end="", flush=True)
print()
history.append({"role": "assistant", "content": reply})
# keep the system prompt plus the last 20 messages
history = history[:1] + history[-20:]
From here, the usual next steps are moving the history into a database keyed by user, adding a per-user spending cap by reading the X-Balance-USD header, and putting your own authentication in front so the API key never reaches a browser. Any tool that lets you register a custom OpenAI-compatible endpoint can use the same three values: base URL, key and the model ID uncensored.
Costs and limits you should plan for
Billing is per token from prepaid credit, with no subscription. Input costs $0.15 per 1M tokens and output costs $0.50 per 1M. A request with 3,000 input tokens and 1,000 output tokens costs 3,000 x $0.15 / 1,000,000 = $0.00045 for input plus 1,000 x $0.50 / 1,000,000 = $0.0005 for output, so $0.00095 in total. Failed or refused requests are not charged. The pricing page has the top-up details.
Limits matter more than price when you build something concurrent. A full key allows 8 requests in flight and 300 per minute, and the body can be up to 8 MB. Going over returns HTTP 429 with the error code rate_limited (too many per minute) or concurrency (too many at once). On temporary overload you also get a 429, with a Retry-After: 5 header. A streamed request holds its concurrency slot until the stream finishes, so a client that opens streams and never closes them will starve itself.
import time
from openai import RateLimitError
def ask(messages, retries=4):
for attempt in range(retries):
try:
return client.chat.completions.create(model="uncensored", messages=messages)
except RateLimitError:
time.sleep(5 * (attempt + 1))
raise RuntimeError("still rate limited after retries")
Cap your own worker pool at 8 threads for a full key and 2 for a trial key, and most 429s disappear before you write any retry logic. Read the API documentation for the exact error shapes.
Common mistakes
- Wrong base URL. It must end in
/v1:https://api.abliterated.top/v1. The SDK adds/chat/completionsitself. - Using another vendor's model name. The only ID is
uncensored. A name like a GPT or Llama ID will not resolve. - Expecting images or embeddings. Those endpoints do not exist here.
- Sending the whole history forever. You pay input tokens for every message you resend. Summarize old turns once the chat grows.
- Committing the key. Keep it in an environment variable and rotate it if it leaks.
Your prompts are not used for training. That is a statement about this service, not a promise about your own logging, so decide what you store on your side.
More guides
Questions and answers
What is the model ID for this API?
Use uncensored as the model value in every request. It is the only model on the service, and GET /v1/models lists it.
Do I need a card to try it?
No. New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It lasts 7 days and is limited to one per person.
Can I use the OpenAI Python or Node SDK?
Yes. Set the base URL to https://api.abliterated.top/v1, use your key as the API key, and set the model to uncensored.
Is this the official API of an open-weight model vendor?
No. It is one open-weight model run by an independent provider, not the official API of Meta, Mistral, Qwen, DeepSeek or anyone else.
What happens when I hit a rate limit?
You get HTTP 429 with the code rate_limited or concurrency. Slow down, lower your parallelism, and retry after the Retry-After delay when it is present.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.