Uncensored AI Chat API Documentation
Get started with the uncensored AI chat API in minutes. Use the standard OpenAI-compatible endpoints to integrate a filter-free LLM into your application.
Base URL & Authentication
The API base URL is https://api.uncensoredaichat.cc/v1. It works with the official OpenAI SDKs and any OpenAI-compatible client. You only need to change the base_url and provide your API key. Sign up on the "Get API key" page using "Continue with Google" or email and password. The key is shown immediately after creation. No phone number is required. Each account has one active key; generating a new one replaces the old key.
First Request
Send a POST request to /v1/chat/completions with your API key in the Authorization header. The model ID is uncensored. This is a text-only API. It does not support embeddings, images, audio, or video. The request body includes model, messages, and optional parameters like temperature and top_p. Errors and refusals are free. Errors do not consume your prepaid credit.
curl https://api.uncensoredaichat.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'
Python SDK Integration
Use the openai Python library to interact with the uncensored AI API. Configure the client with your base URL and API key. Pass the model name uncensored in the chat completion call. The SDK handles tokenization and response parsing. This approach works for synchronous requests. It is suitable for backend services or scripts that do not require real-time updates. Adjust parameters like max_tokens to control output length.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredaichat.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)
Node SDK Usage
The Node.js SDK supports the same OpenAI-compatible structure. Initialize the client with the base URL https://api.uncensoredaichat.cc/v1 and your API key. Call chat.completions.create with the model ID uncensored. This is ideal for serverless functions or web servers. The SDK manages the HTTP connection and JSON parsing. You can set temperature and top_p for response variety. The API returns standard OpenAI response objects.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredaichat.cc/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Each chunk contains partial content. Token usage information is included in the last chunk. This reduces perceived latency for end-users. Streaming is useful for chat interfaces. It allows real-time display of generated text. The uncensored AI chat API supports this natively. You can cancel the stream if the user stops interacting.
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Tell the story in second person."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
Limits, Errors & Context
The context window is 64,000 tokens (prompt + completion). Max output is 16,000 tokens, or 2,048 if max_tokens is unset. Rate limits are 300 requests per minute and 8 concurrent requests per key. Error 401 means an invalid or missing API key. Error 402 indicates insufficient prepaid credit. Error 429 signals rate limit exceeded. Requests exceeding 8 MB in body size are rejected. Credit never expires. No subscription fees apply. The API is an uncensored api for lawful adult content, blocking only sexual content involving minors.
Questions and answers
Does the uncensored AI chat API support image generation?
No, it is a text-only API. It does not support images, audio, video, or embeddings. It serves one uncensored large language model via the chat-completions endpoint.
How does payment work for the uncensored api?
Credit is topped up with crypto only: USDT (TRC20) or USDC (Base). Amounts range from $10 to $500. Credit is charged by real token usage and never expires. Errors and refusals are free.
Is there a free tier available?
New accounts get $0.50 of trial credit valid for 7 days. No card is needed. After the trial, you must add crypto credit to continue using the API. There is no free unlimited tier.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.