BlogAPI guides

Uncensored LLM API: one OpenAI-compatible endpoint, no refusals

An uncensored LLM API is an ordinary OpenAI-compatible Chat Completions endpoint whose models do not refuse legitimate requests that mainstream models block. With Chainless you point any OpenAI client at https://chainless.one/v1, use a cl- key, and pick a model id such as glm-5.3-fast-uncensored or kimi-k3.1-pro-uncensored. Streaming, tool calls and reasoning work the same way they do on OpenAI.

Why an uncensored model behind a standard API

Refusals rarely show up in a demo. They show up on day three of a real project: a log parser that has to read a phishing kit, an agent that stops halfway through a CTF write-up, a fiction pipeline that drops a chapter because a character is a villain. A refusal is a silent failure. Your code gets a polite paragraph instead of the JSON it asked for, and the error surfaces three steps later.

Models with the refusal behaviour removed fix that class of failure, but running them yourself means GPUs, quantisation choices and an inference server to babysit. An API that speaks the OpenAI format lets you keep your client code, your retry logic and your tooling, and swap only the model.

What does not change: the model still makes mistakes, still hallucinates package names and still needs your review. "Uncensored" means it answers; it does not mean it is right.

The three values you need

SettingValue
Base URLhttps://chainless.one/v1
API keycl-… from the dashboard, sent as Authorization: Bearer
Modelone of the ids on /models

The model list is also available from the API itself, so scripts can check what is live before they start:

shell
curl -s https://chainless.one/v1/models | python3 -m json.tool | head -20

Each entry carries id, name and context_length. All current models have a context window of about a million tokens; the model pages list the exact limits, output caps and capabilities such as vision.

Streaming and reasoning

Every model here is a reasoning model, and reasoning tokens arrive before the answer. With "stream": true you get Server-Sent Events in the OpenAI format. The answer comes in choices[0].delta.content; the thinking text, when the model sends it, comes in delta.reasoning (some routes use delta.reasoning_content). Add stream_options.include_usage to receive token counts in the last chunk.

python
from openai import OpenAI

client = OpenAI(base_url="https://chainless.one/v1", api_key="cl-...")

stream = client.chat.completions.create(
    model="glm-5.3-fast-uncensored",
    messages=[{"role": "user", "content": "Explain what this regex matches: ^(?:\\d{1,3}\\.){3}\\d{1,3}$"}],
    stream=True,
    stream_options={"include_usage": True},
    reasoning_effort="low",
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
    if chunk.usage:
        print("\n", chunk.usage)

reasoning_effort accepts the usual OpenAI values (low, medium, high) and is mapped to what each model supports. Lower effort means fewer reasoning tokens, which means a faster first token on simple prompts. For the lowest latency, use a fast model such as deepseek-v4.1-fast-uncensored, which runs on a low-latency route.

Tool calling

All five public models accept the tools parameter in the standard format, so agent frameworks work without adapters. A minimal round trip:

python
tools = [{
    "type": "function",
    "function": {
        "name": "lookup_cve",
        "description": "Return the NVD summary for a CVE id",
        "parameters": {
            "type": "object",
            "properties": {"cve_id": {"type": "string"}},
            "required": ["cve_id"],
        },
    },
}]

resp = client.chat.completions.create(
    model="kimi-k3.1-pro-uncensored",
    messages=[{"role": "user", "content": "What is CVE-2021-44228 and how do I check my Java services for it?"}],
    tools=tools,
)
call = resp.choices[0].message.tool_calls[0]
print(call.function.name, call.function.arguments)

You run the function, append a {"role": "tool", "tool_call_id": call.id, "content": "..."} message and call the API again. Nothing about this is specific to Chainless, which is the point: frameworks such as LangChain, LiteLLM and the Vercel AI SDK only need the base URL. Setup notes for each are on /integrations.

Errors, limits and spend control

Errors use the OpenAI shape, {"error": {"message", "type", "code"}}, so existing handlers keep working. The ones you will meet:

StatusCodeMeaning
401invalid_api_keymissing, wrong or revoked key
402plan_requiredno active plan on the account
402insufficient_quotaplan credit and balance are used up
402key_limit_reachedthis key hit its own spending limit
404model_not_foundthe model id does not exist; call GET /v1/models
429—too many requests on one key; back off and retry

Two habits keep spend under control. First, one key per script or agent, each with a spending limit; a loop that goes wrong stops at its limit instead of at your balance. Second, keep max_tokens realistic: the API never lets a single request cost more than you can pay, but a sensible cap keeps a confused model from writing a novel.

API requests are zero retention: prompts and answers are not written to our database or logs, as the privacy page describes. Plans and payment methods (USDT, USDC, TON or Telegram Stars) are on /pricing.

Scope and rules

An uncensored model will answer questions a filtered one refuses, and the responsibility for what you do with the answer stays with you. Use it on your own systems, on targets you have written authorization and an agreed scope for, on CTF and lab environments, and on public data. The terms list what the service may not be used for; illegal use ends the account.

Try it

Create a key, then run this from a terminal:

shell
curl https://chainless.one/v1/chat/completions \
  -H "Authorization: Bearer $CHAINLESS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-fast-uncensored",
    "messages": [{"role": "user", "content": "Write a Python one-liner that lists listening TCP ports on Linux."}]
  }'

The reply is a standard chat.completion object: the text is in choices[0].message.content and token counts are in usage. The full reference is at /docs/api. If you would rather test prompts before writing code, the same models answer in Telegram at @chainless_ai.

Questions

Do I need to change my code to use an uncensored model?

Usually only two values: the base URL becomes https://chainless.one/v1 and the API key becomes a Chainless key that starts with cl-. Anything built on the OpenAI Chat Completions format, including the official openai SDKs, keeps working.

Which endpoints are available?

GET /v1/models and POST /v1/chat/completions, with streaming and tool calling. There is no embeddings endpoint and no Responses API, so tools that default to /v1/responses have to be switched to Chat Completions.

Can one runaway script drain my balance?

Give that script its own key with a spending limit in the dashboard. When the key reaches its limit the API answers 402 with the code key_limit_reached, and the rest of your balance stays untouched.

Is the API anonymous?

There is no KYC: you sign up with e-mail, Google, a crypto wallet or Telegram and can pay in crypto. What the service stores about requests is described on the privacy page, which is the authoritative source rather than any blog post.

Also in Русский