EN ▾
Get API key

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.

https://api.uncensoredchat.cc/v1uncensored

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.

ParameterDetails
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyAuthorization: Bearer YOUR_KEY
Base URLhttps://api.uncensoredchat.cc/v1
MethodsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
SSE streamingSupported (stream: true), usage included at the end
Context window100,000 tokens, input and output combined
Structured outputJSON object mode via response_format json_object
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Requests per minute300 requests per minute per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
Parallel requests8 requests at the same time per key
Credit expiryno 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
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
AccountGoogle or e-mail and password
Keysone active key per account; a new key replaces the old one
Content policyuncensored 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.

StatusTypeReason
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busymodel 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.

Get API key