EN ▾
Get API key

No-Censor AI Chatbot: Build One With an API

If you want an AI chatbot with no censor, the quickest route is to write the chat loop yourself and point it at an OpenAI-compatible endpoint that does not refuse lawful requests. This page shows the code, the settings and the cost.

Updated

Isometric terminal streaming chat bubbles to a robot head, illustrating an open chatbot built on an API

Key points

  • Any OpenAI SDK works: change the base URL and use the model ID uncensored.
  • A chat loop with memory is about 30 lines of Python, and streaming is one flag.
  • A 20-turn conversation costs roughly 1.5 cents at $0.15 and $0.50 per 1M tokens.
  • The model answers without content refusals for lawful adult use. One hard limit: nothing sexual involving minors.

What you are actually building

An ai chatbot with no censor is not a special product category. It is an ordinary chat application where the model behind it does not stop to lecture you, soften your request or decline a topic that is legal for adults. The application part is the same as any chatbot: a loop that keeps the message history, sends it to a model and prints the reply.

What changes is the endpoint. This site gives you a hosted, OpenAI-compatible API with one model, uncensored, tuned to answer without content refusals for lawful adult use. It is an open-weight model run by an independent provider, so it is not the official API of any big lab and it is not a router that picks between vendors. You send POST /v1/chat/completions, you get a normal chat completion back.

The result is that you can use the tooling you already know. The official openai package for Python and Node, LangChain, curl, and most chat front-ends that accept a custom endpoint all work once you swap two values.

  • Base URL: https://api.uncensoredaichatbot.cc/v1
  • Model: uncensored
  • Auth header: Authorization: Bearer YOUR_KEY

One rule is fixed and not configurable: no sexual content involving minors. Everything else you decide in your own system prompt and your own product design.

Step 1: get a key and test it with curl

Sign up with Google or with email and password, open the API key page and copy your key. New accounts can claim $0.50 of trial credit with one click on that page, valid for 7 days, no card needed. Details are on the API key page.

Before writing any application code, confirm the key works. This one request is the whole API in miniature:

curl https://api.uncensoredaichatbot.cc/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "system", "content": "You are a blunt, funny assistant."},
      {"role": "user", "content": "Say hello in one sentence."}
    ]
  }'

You get a JSON object with choices[0].message.content and a usage block. The response headers include X-Balance-USD, which is handy while testing because you can watch the balance drop by fractions of a cent. You can also call GET /v1/models to see the model ID your key can use.

Step 2: a chatbot with memory in Python

The model has no memory between requests. The chatbot remembers because you resend the whole conversation each time. That is the only trick, and it fits in a short script.

from openai import OpenAI

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

history = [
    {"role": "system", "content": "You are Rook, a sarcastic but helpful assistant. "
                                  "Answer directly and do not moralize."}
]

while True:
    user = input("you: ")
    if user.strip() in ("quit", "exit"):
        break
    history.append({"role": "user", "content": user})

    stream = client.chat.completions.create(
        model="uncensored",
        messages=history,
        temperature=0.8,
        stream=True,
    )

    reply = ""
    print("bot: ", end="", flush=True)
    for chunk in stream:
        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})

Streaming uses server-sent events, so words appear as they are generated. The final chunk carries usage numbers if you want to log them. Notice that the assistant reply is appended to history after the stream ends. Skip that line and the bot forgets what it just said.

If you prefer Node, the shape is identical:

import OpenAI from "openai";

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

const res = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Give me three blunt opinions about sequels." }],
});
console.log(res.choices[0].message.content);

Shaping the personality with a system prompt

A model that does not refuse is still a model that follows instructions, so the system prompt matters more than any setting. A vague prompt gives you a vague bot. A specific one gives you a character.

Three things make a system prompt work well for a chatbot:

  1. A name and a voice. "You are Rook, dry-humored, short sentences, never apologizes" beats "be funny".
  2. Rules about format. Say whether replies should be one paragraph or several, whether to use lists, and whether to ask follow-up questions.
  3. The setting. If this is a fiction project or a companion app for adults, say so. The model uses that frame to stay consistent instead of drifting.

Sampling settings that matter

Temperature around 0.7 to 0.9 gives lively conversation. Drop to 0.2 to 0.4 when you want the bot to follow a format strictly. top_p, stop, seed and the frequency and presence penalties are passed through to the model, so a small presence penalty is a cheap way to stop a character from repeating the same phrases. A fixed seed helps when you are comparing two versions of a system prompt on the same input.

Keeping long chats inside the context window

The context window is 100,000 tokens, prompt and completion together. That is a lot of room for a chat, but a bot that runs for weeks will eventually hit it, and long histories also cost more because every turn resends everything.

Simple strategies, in order of effort:

  • Trim the oldest turns. Keep the system message and the last 30 or 40 messages.
  • Summarize. When history passes a threshold, ask the model to write a short summary of the older part, then replace those messages with the summary.
  • Pin facts. Store names, relationships and decisions in a small notes block that you place right after the system message on every request.

Completion length can use whatever is left of the window, and max_tokens is optional. Set it anyway if your interface cannot show very long replies, since a cap also bounds the cost of a single turn.

Using an existing chat front-end instead

You do not have to write the loop yourself. Role-play and chat front-ends such as SillyTavern let you add an OpenAI-compatible endpoint, and the same goes for many desktop and mobile chat clients. The fields are always the same three: a base URL (https://api.uncensoredaichatbot.cc/v1), an API key, and a model name (uncensored).

If the client asks you to pick a model from a list, it is calling GET /v1/models behind the scenes. If it lets you type a name, type it exactly. A front-end gives you character cards, saved chats and a nicer interface for free, while your own script gives you control over memory and cost. Many people start with a front-end to see whether the model suits them, then move to code once they know what they want. The documentation lists what each field means.

What a conversation costs

Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, pay as you go from prepaid credit. Failed or refused requests are not charged, and credit never expires. The pricing page lists the top-up options.

Here is a worked example for the chat loop above. Assume a 300-token system prompt, and every turn adds about 150 tokens from the user and 250 from the bot, so history grows by 400 tokens per turn.

  • Input per turn: 300 + 150 + 400 x (turns before it). Over 20 turns that sums to 20 x 450 + 400 x (0 + 1 + ... + 19) = 9,000 + 76,000 = 85,000 input tokens.
  • Output: 20 x 250 = 5,000 tokens.
  • Input cost: 85,000 x $0.15 / 1M = $0.01275.
  • Output cost: 5,000 x $0.50 / 1M = $0.0025.
  • Total: $0.01525, about 1.5 cents for a 20-turn chat.

The $0.50 trial credit therefore covers about 32 conversations of that size. Notice that input dominates: history resend is the real cost driver, which is another reason to trim or summarize.

When you move past the trial, top-ups are any whole amount from $20 to $500. You get +5% from $50, +10% from $100 and +15% from $200. You can pay with crypto (USDT on TRC20, USDC on Base).

Limits, errors and the boundaries of the model

A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. A streamed request holds its concurrency slot until the stream ends, so a chat app with many open streams reaches the concurrency limit sooner than the per-minute one.

When you exceed a limit, the API answers HTTP 429. The error code is rate_limited for requests per minute and concurrency for too many simultaneous requests. A temporary overload also returns 429, with a Retry-After: 5 header. The OpenAI SDKs retry 429 responses with backoff by default, so a small bot usually needs no extra code. Larger apps should queue requests per user.

Know what the product is not. It is text only: no image, audio or video generation, no embeddings and no fine-tuning. Prompts are not used for training. The model is open-weight, so treat its factual claims the way you would treat any language model output and check anything important. The API documentation covers tool calling and JSON mode if your bot needs to call functions or return structured data, and the page on the uncensored LLM API explains the model setup in more detail.

Questions and answers

Does an AI chatbot with no censor mean anything goes?

No. The model is tuned to answer without content refusals for lawful adult use, and one limit is fixed: no sexual content involving minors. You are responsible for what your own application does with the output.

Can I use this with a chat front-end I already have?

Usually yes. Any client that lets you set a custom OpenAI-compatible base URL, API key and model name will work. Use https://api.uncensoredaichatbot.cc/v1 and the model ID uncensored.

Is there a free way to try it?

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

Does the chatbot remember earlier conversations?

Not by itself. The API is stateless, so your application stores the history and sends it with each request, up to the 100,000-token context window.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.