Uncensored AI: A Text API Compatible With OpenAI
Uncensored AI is a language model tuned to answer without the content refusals that most assistants apply. Used through a hosted text API, it works like any chat model: you send messages and receive text. This guide explains the term and shows working code.

Summary
- Uncensored means fewer refusals, not no rules: lawful adult use only.
- The API follows the OpenAI format, so existing SDKs and tools work.
- Price is $0.15 per 1M input and $0.50 per 1M output tokens.
- Hard limit: no sexual content involving minors.
What uncensored means in practice
Standard assistants decline many requests: dark fiction, blunt medical or legal discussion, edgy humour, adult themes between consenting characters. Some of these refusals are reasonable, others are cautious guesses that block legitimate work. An uncensored model is tuned to reduce those guesses and answer the question asked.
It does not mean there are no limits. Content must stay lawful, and the service applies one fixed rule: no sexual content involving minors. The word describes the model's default behaviour, not permission to do anything. You remain responsible for what you build and publish with it.
The model here is a single open-weight model run by an independent provider. It is not the official API of any known model vendor, and it is not a router across vendors.
Who uses it and for what
Typical lawful uses show why people look for this kind of model:
- Fiction and interactive stories. Villains who act like villains, mature themes handled for adult readers, and no mid-scene lecture.
- Roleplay and companion apps for adults. Characters that stay in voice instead of breaking into disclaimers.
- Research and analysis. Discussing sensitive topics such as security, history or drug policy in plain terms.
- Moderation and testing. Generating borderline sample text to train or evaluate filters.
- Writing assistants. Drafting text where a standard assistant would hedge or refuse.
For the same topic from another angle, read our guide to IA sans censure.
How the API works
The service speaks the OpenAI protocol. That means you do not learn a new SDK; you change a base URL and a key.
- Base URL:
https://api.sanscensure.com/v1 - Model:
uncensored - Auth header:
Authorization: Bearer YOUR_API_KEY - Endpoints:
POST /v1/chat/completions,POST /v1/responses,GET /v1/models - Features: SSE streaming, tool calling, JSON mode, passthrough of temperature, top_p, stop, seed and penalties
- Context: 100,000 tokens, prompt and completion together
It is text only: no image, audio or video generation, no embeddings, no fine-tuning.
A first call in Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.sanscensure.com/v1",
api_key="YOUR_API_KEY",
)
resp = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": "You are a novelist who writes gritty crime fiction for adults."},
{"role": "user", "content": "Write the opening paragraph of a heist that goes wrong."},
],
temperature=0.9,
)
print(resp.choices[0].message.content)
The same request in curl:
curl https://api.sanscensure.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"Name five tones for a gothic novel."}]}'
Set stream: true to receive text as it is produced; usage is reported at the end of the stream. For JSON output use response_format with {"type":"json_object"}. Parameter details are in the documentation.
Prompting tips for fewer problems
A model with fewer refusals still follows your instructions, so the quality of the output depends on the quality of the prompt. These habits help.
- Give a role and a setting. "You are a novelist writing for an adult audience" frames the task better than a bare request.
- State the format. Say how long the answer should be and whether you want prose, a list or JSON.
- Keep rules in the system message. Put persistent instructions there, and keep user messages short.
- Iterate. Change one thing at a time between tests: the temperature, the wording or the length.
- Add your own filter if you publish. If end users see the output, apply moderation that matches your audience and your local law.
Getting a key and paying
Create an account with Google, or with an email and a password, on the API key page. A one-click trial gives $0.50 of credit, valid for 7 days, no card, one per person. To continue, top up any whole amount from $20 to $500. Payment is crypto only: USDT on TRC20 or USDC on Base. Bonuses apply from $50 (+5%), $100 (+10%) and $200 (+15%).
Billing is pay as you go. Input tokens cost $0.15 per 1M and output tokens $0.50 per 1M. Failed or refused requests are not charged, there is no subscription, and credit never expires. See the pricing page for the tiers.
A quick example: a chat turn with 1,200 input and 400 output tokens costs 0.00018 + 0.0002, which is $0.00038. The trial therefore covers about 1,315 such turns.
Streaming replies for chat apps
Long replies feel slow if the user waits for the whole text. Streaming sends tokens as they are produced, so the first words appear quickly. Set stream: true and read the chunks as they arrive. Here is the pattern in Node.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.sanscensure.com/v1",
apiKey: process.env.API_KEY,
});
const stream = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Tell a short ghost story set in a library." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}
Two practical notes. A stream holds one of your concurrency slots until it ends, so a UI that abandons streams without closing them will run into the concurrency limit. And the final chunk carries usage, so you can log what each reply cost.
Cost of a typical project
Prices make a small project cheap to try. Take a story app with 5,000 turns a month, each 1,500 tokens in and 500 out. Input: 7.5M tokens x $0.15 = $1.125. Output: 2.5M tokens x $0.50 = $1.25. The monthly total is $2.375.
The cost grows with the history you resend, so a long conversation costs more per turn than a short one. A turn that carries 20,000 tokens of history and returns 500 costs 0.003 + 0.00025 = $0.00325. Summarising older turns brings the cost back down. Test your own numbers with the $0.50 trial before topping up.
Limits and behaviour to expect
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. If you exceed them you get HTTP 429, with the error code rate_limited or concurrency. Temporary overload also returns 429 with a Retry-After: 5 header. Wait that long and retry.
Prompts are not used for training. Even with fewer refusals, good prompts still matter: state the setting, the tone and the format you want, and the model follows. Keep keys on the server side and regenerate them on the key page if one leaks; the old key stops working immediately.
Common mistakes
- Sending the key from the browser. Anyone can read it from the page source. Route calls through your own server.
- Expecting a different vendor's behaviour. The model is its own open-weight model, run by an independent provider, so prompts written for another assistant may need small adjustments.
- Forgetting the history cost. Each call bills the full prompt, including every earlier turn you resend.
- Ignoring the minors rule. Requests that involve sexual content with minors are not allowed, whatever the framing.
- Hammering the API in parallel. Past 8 concurrent requests on a full key you will see 429 responses. Queue the extra work.
More guides
Common questions
Is uncensored AI legal to use?
Using a model that refuses less is legal in itself, but the content you produce must be lawful where you live. The service forbids sexual content involving minors.
Is it the same as an unrestricted AI?
No. It is tuned to answer without content refusals for lawful adult use, and the minors rule is fixed.
Which SDKs can I use?
Any OpenAI SDK or client: set the base URL to https://api.sanscensure.com/v1 and the model to uncensored.
Does it generate images?
No. It is a text API. There is no image, audio or video generation.
Access in two steps
Register, retrieve your key, update the endpoint URL. That is the entire configuration.