Uncensored Chat API Quickstart | Uncensored Chat
Get started with the uncensored chat API in minutes. This guide covers authentication, SDK integration, and streaming for your uncensored LLM applications.
Authentication and Base URL
Our uncensored api uses standard OpenAI-compatible authentication. You receive a single API key upon signup via Google or email. Use the base URL https://api.uncensoredchat.cc/v1 for all requests. Ensure your SDK configuration points to this endpoint to avoid routing errors. The model identifier is always uncensored.
First Request
Send a simple completion request to verify connectivity. The endpoint accepts POST requests to /v1/chat/completions. You can test the uncensored llm api directly via cURL to confirm your key works before integrating into your application.
curl https://api.uncensoredchat.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."}]
}'Expect a standard JSON response containing the generated text. If you receive a 401, your key is invalid. A 402 indicates insufficient credit.
Python SDK Integration
Use the official OpenAI Python package with a custom base URL. This allows you to leverage familiar SDK methods while connecting to our uncensored api. Initialize the client with your key and the specific base URL. Call chat.completions.create() with the model uncensored. This approach minimizes boilerplate for backend services.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredchat.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.js SDK Integration
For JavaScript environments, configure the OpenAI Node SDK similarly. Set the baseURL to our endpoint. The API key remains the primary credential. This setup works for both server-side Node applications and edge functions. Ensure you handle async responses correctly to maintain throughput.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredchat.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. The API returns Server-Sent Events (SSE). Each chunk contains partial text. The final chunk includes token usage statistics for billing transparency. Streaming reduces perceived latency for users, especially in chat interfaces. Parse the delta.content field to append text progressively.
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, and Context
Our uncensored ai api enforces a 100,000 token context window (input + output). There is no separate output cap. You are limited to 300 requests per minute and 8 concurrent requests per key. Errors include 401 (invalid key), 402 (no credit), and 429 (rate limit). Errors and refusals consume no tokens. Requests are capped at 8 MB body size. Refunds are not issued for credit, but double charges are fixed via support.
Specs at a glance
A quick checklist for developers: format, limits, features, billing.
| Parameter | Details |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| API key | Authorization: Bearer YOUR_KEY |
| Base URL | https://api.uncensoredchat.cc/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| SSE streaming | Supported (stream: true), usage included at the end |
| Context window | 100,000 tokens, input and output combined |
| Structured output | JSON object mode via response_format json_object |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Requests per minute | 300 requests per minute per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Max body | up to 8 MB per request |
| Parallel requests | 8 requests at the same time per key |
| Credit expiry | no monthly fee; paid credit does not expire |
| Free trial | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Account | Google or e-mail and password |
| Keys | one active key per account; a new key replaces the old one |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
What is the context window size?
The context window is 100,000 tokens total, including both the prompt and the completion. Output can run to the end of the window.
How do I handle rate limits?
You are allowed 300 requests per minute and 8 concurrent requests per key. Exceeding these limits results in a 429 status code. Implement exponential backoff for retries.
Is the trial credit recurring?
No. New users (one per person) get $0.50 in trial credit valid for 7 days. It is a one-time offer per person. Subsequent usage requires prepaid crypto credit.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.