EN ▾
Get API key

Uncensored LLM API: Setup with Python, Node, curl

A hosted text model that answers without content refusals, reachable through the same API shape you already use for OpenAI. This page walks from key to first response, then covers streaming, tools, limits and cost.

Updated

Isometric illustration of data streams entering a glowing cube, representing an uncensored LLM API

No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).

Get API key

The short version

An uncensored llm api is a hosted model endpoint tuned to answer without content refusals for lawful adult use. Here it is a single open-weight model run by an independent provider, exposed through POST /v1/chat/completions and GET /v1/models. If your code already talks to an OpenAI-style endpoint, you change the base URL to https://api.claudensfw.cc/v1, put your key in the Bearer header, and set the model to uncensored.

That is the whole integration. The rest of this page is the detail: a first request in three languages, the features that work, how the limits behave, and what a request costs in dollars. If you want the shortest path, the quickstart in the docs covers the same ground in five minutes.

Get a key and test it

Sign up with Google, or with an email and password. On the API key page you can claim $0.50 of trial credit with one click. It is one per person, valid for 7 days, and needs no payment. Open the key page to create the key and copy it once.

Keep the key out of your source. Export it as an environment variable and read it from there:

export API_KEY="paste-your-key-here"

A trial key is limited to 2 concurrent requests and 60 requests per minute. A full key, which you get once you add credit, allows 8 concurrent requests and 300 per minute. That is plenty for testing and for most single-app workloads.

First request in curl, Python and Node

Start with curl, because it removes every other variable. If this works, any client will.

curl https://api.claudensfw.cc/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "system", "content": "You are a blunt, helpful writing partner."},
      {"role": "user", "content": "Draft a tense opening scene for a noir story."}
    ]
  }'

The reply has the usual shape: choices[0].message.content holds the text and usage holds the token counts. The response headers also carry X-Request-Id, X-Balance-USD and the two rate limit headers, which makes it easy to log your remaining balance on every call.

Python

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.claudensfw.cc/v1",
    api_key=os.environ["API_KEY"],
)

resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are a blunt, helpful writing partner."},
        {"role": "user", "content": "Draft a tense opening scene for a noir story."},
    ],
    temperature=0.8,
)

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

Node

The official openai package works the same way. The example uses ES modules, so save it as an .mjs file or set "type": "module" in package.json.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.claudensfw.cc/v1",
  apiKey: process.env.API_KEY,
});

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Give me three names for a harbor town." }],
});

console.log(resp.choices[0].message.content);

Streaming, JSON mode and tools

Set stream: true and the server sends Server-Sent Events as the text is produced, with the usage block at the end. For long creative output this is the difference between a page that fills in live and one that sits blank for a minute.

# client = OpenAI(base_url="https://api.claudensfw.cc/v1", ...) as in the first example
stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a short monologue for a retired smuggler."}],
    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)
    if chunk.usage:
        print("\n", chunk.usage)

JSON mode is switched on with response_format. State in the prompt which keys you want, since the flag guarantees valid JSON syntax but not your schema.

# client = OpenAI(base_url="https://api.claudensfw.cc/v1", ...) as in the first example
resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "Reply with a JSON object with keys name, role and backstory."},
        {"role": "user", "content": "Create a side character for a space western."},
    ],
    response_format={"type": "json_object"},
)

Tool calling follows the OpenAI format: pass tools and tool_choice, read tool_calls from the reply, run the function yourself, then send the result back as a message with role: "tool". Streamed responses carry tool_calls as deltas.

# client = OpenAI(base_url="https://api.claudensfw.cc/v1", ...) as in the first example
tools = [{
    "type": "function",
    "function": {
        "name": "roll_dice",
        "description": "Roll a die with the given number of sides",
        "parameters": {
            "type": "object",
            "properties": {"sides": {"type": "integer"}},
            "required": ["sides"],
        },
    },
}]

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Roll a d20 for the lockpicking check."}],
    tools=tools,
    tool_choice="auto",
)
print(resp.choices[0].message.tool_calls)

Sampling settings such as temperature, top_p, stop, seed and the penalties are passed through to the model. The context window is 100,000 tokens, counting prompt and completion together, and max_tokens is optional.

Limits and what a 429 means

Two limits matter in practice: requests per minute and requests at once. When you exceed the first, the API returns HTTP 429 with error code rate_limited. When you exceed the second, it returns 429 with code concurrency. On temporary overload you also get a 429, with a Retry-After: 5 header, so waiting five seconds is the correct response.

One detail catches people out: a streamed request holds its concurrency slot until the stream finishes. Eight users reading eight long streams will block a ninth request even if the per-minute count is low. A small queue or semaphore in front of the client solves it.

# client = OpenAI(base_url="https://api.claudensfw.cc/v1", ...) as in the first example
import time
from openai import RateLimitError

def ask(messages, tries=4):
    for attempt in range(tries):
        try:
            return client.chat.completions.create(model="uncensored", messages=messages)
        except RateLimitError:
            time.sleep(5 * (attempt + 1))
    raise RuntimeError("still rate limited after retries; base URL: https://api.claudensfw.cc/v1")

The maximum request body is 8 MB. That is far above what a 100,000-token prompt needs, so you will only hit it if you embed large encoded files in the text.

What the model will and will not do

The model is open-weight and tuned not to refuse on content grounds, which suits fiction, roleplay, companion apps, research on sensitive topics and moderation tooling for adults. It is not the official API of Meta, Mistral, Qwen, DeepSeek, OpenAI, xAI, Google, Anthropic or any other vendor, and it is not a router across vendors. You are talking to one model.

Three boundaries are fixed. Sexual content involving minors is never allowed. The service is text only, so there is no image, audio or video generation, no embeddings and no fine-tuning. And lawful use is on you: removing refusals does not remove the law or the rules of the platform you ship on. Prompts are not used for training.

Cost and paying with crypto

Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, billed from prepaid credit with no subscription. Failed or refused requests are not charged, and credit never expires. A typical chat turn with 2,000 input tokens and 500 output tokens costs $0.0003 for input plus $0.00025 for output, which is $0.00055. The $0.50 trial credit covers roughly 900 requests of that size.

Top-ups are any whole amount from $20 to $500, paid in USDT on TRC20 or USDC on Base. The bonus is 5% from $50, 10% from $100 and 15% from $200, so $100 gives $110 in credit and $200 gives $230. Details and examples are on the pricing page. Watch X-Balance-USD in the response headers to know when to top up.

If you hit a problem that this page does not explain, the support page lists how to reach us, and quoting the X-Request-Id from the failing response speeds things up.

Questions and answers

Is the API compatible with the OpenAI SDK?

Yes. Use the official OpenAI Python or Node package, set the base URL to https://api.claudensfw.cc/v1, use your key as the API key and set the model to uncensored. The chat completions and models endpoints are supported.

Can I try it without paying?

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

How do I pay?

Top up with crypto, either USDT on TRC20 or USDC on Base, in any whole amount from $20 to $500. Bonuses of 5%, 10% and 15% apply from $50, $100 and $200.

How large can a prompt be?

The context window is 100,000 tokens, shared between your prompt and the completion. The request body can be up to 8 MB.

Will my prompts be used to train a model?

No. Prompts are not used for training.

Your key is one form away

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