The three pieces of data you need
If you are looking for an uncensored AI API, what matters in practice is that it is compatible with the OpenAI format. This way you do not have to learn a new SDK or rewrite your application. You need three pieces of data:
- Base URL:
https://api.apiiasincensura.com/v1 - Model:
uncensored - Authentication: header
Authorization: Bearer TU_CLAVE
The key is generated on the keys page after signing in with Google or with email and password. The service offers a single open-weight model, run by an independent provider and tuned to respond without content rejection for legal adult use. It is not the official API of any major AI company, nor a router between multiple models. It only generates text: no images, audio, video, embeddings, or fine-tuning.
First call with curl
Before touching your project, check that the key works. Save the key in an environment variable and run this:
export API_KEY="sk-tu-clave"
curl https://api.apiiasincensura.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "system", "content": "Eres un asistente directo."},
{"role": "user", "content": "Resume en tres frases qué es una API."}
]
}'
The response is a JSON identical in structure to OpenAI's: the text is in choices[0].message.content and the usage in usage. Also pay attention to the response headers, especially X-Balance-USD, which shows your remaining balance after each call.
To view the catalog, GET /v1/models returns the list of available models.
With the OpenAI SDK in Python and Node
Install the official SDK (pip install openai) and change only the client:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.apiiasincensura.com/v1",
api_key=os.environ["API_KEY"],
)
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Escribe un haiku sobre el café."}],
temperature=0.8,
)
print(resp.choices[0].message.content)
print(resp.usage)
In Node the idea is the same with the openai package:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.apiiasincensura.com/v1",
apiKey: process.env.API_KEY,
});
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Dame tres nombres para una librería." }],
});
console.log(resp.choices[0].message.content);
POST /v1/responses is also available, in case your code already uses that format.
Streaming, tools and JSON mode
With stream: true the response arrives via SSE, token by token, and the last fragment includes usage. This is what you want in any chat so the user does not wait staring at an empty screen.
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Cuéntame un cuento corto."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
In addition to that, the API supports:
- Tool calling:
tools,tool_choice,tool_callsin streaming and results returned withrole: "tool". - JSON mode:
response_format: {"type": "json_object"}. Request JSON also in the prompt so the model knows what structure you expect. - Sampling:
temperature,top_p,stop,seedand penalties are passed as is.
The context is 100,000 tokens between prompt and response, and max_tokens is optional: if you do not set it, the response can use the rest of the window. If you want to cap spending, set it yourself.
Limits and 429 errors
The error you will see most when starting to test with loops is 429. There are two causes and the code field of the error tells you which one it is:
| Code | What happens | What to do |
|---|---|---|
rate_limited | You exceeded the requests per minute (300 with a full key, 60 with a trial key) | Space out calls or retry with backoff |
concurrency | Too many simultaneous requests (8 with a full key, 2 with a trial key) | Limit concurrency in your client |
429 with Retry-After: 5 | Temporary overload | Wait 5 seconds and retry |
A surprising detail: a streaming request occupies its concurrency slot until the stream ends. If you open eight streams and do not read them to the end, the ninth request will receive concurrency. The headers X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency remind you of your key limits, and X-Request-Id helps support locate a specific call.
The request body can weigh up to 8 MB. Failed or rejected requests are not charged.
Recurring configuration errors
Most issues in the first hour don't come from the API, but from how the client is set up. This list covers the ones that waste the most time:
- Incomplete base URL. The SDK adds
/chat/completionson its own, so the base must end with/v1. If you paste the full path, the request will go to a non-existent address. - Key without the Bearer word. If you set the header manually, the format is
Authorization: Bearer TU_CLAVE, with a space and no quotes inside. - Model with a different name. The ID is
uncensored. If your old code points to another model, change it; there is no routing between providers. - Key in the repository. Save it in an environment variable or your platform's secret manager. If you accidentally upload it to a public repository, generate another one and stop using the old one.
- Uncut history. Each turn forwards the full conversation. Remove old messages as it grows, because you pay for every input token.
The system message is where you set the tone and conversation rules. Write specific instructions, such as output format and expected length, instead of vague phrases. The model follows an order like "respond in neutral Spanish, maximum four paragraphs" better than one like "be helpful".
Cost and how to try for free
Pay as you go with prepaid credit: $0.15 per million input tokens and $0.50 per million output tokens, no subscription. A call with 1,000 input tokens and 500 output tokens costs 1,000 × 0.15 / 1,000,000 = $0.00015 plus 500 × 0.50 / 1,000,000 = $0.00025, i.e., $0.0004 in total. The details on top ups and bonuses are on the pricing page.
Top ups are done in crypto (USDT on TRC20 or USDC on Base), from $20 to $500. To try without paying, after registration you can claim $0.50 of free trial credit with one click on your key page. It is valid for 7 days, is one per person and requires no payment method.
When you get the first response, the next step is to look at the documentation and, if you are going to take it to production, the article on the production checklist.

