EN ▾

Quickstart: Uncensored Chat API

Get started with the uncensored chat API in minutes. This quickstart guide covers authentication, sending requests via standard OpenAI-compatible SDKs, streaming responses, and handling constraints.

Get API key

Authentication & Base URL

Our API uses standard Bearer token authentication. You receive a single API key upon signup via Google or email. Unlike multi-model aggregators, we serve one dedicated uncensored model, so you only need to point your client to our base URL: https://api.uncensoredchat.top/v1. This URL works with any library that supports the OpenAI format. When initializing your SDK, pass your key as the API token and set the base URL to the endpoint above. We do not offer a web chat interface; this is a raw API for developers. Ensure your key is active, as each account holds only one key at a time.

Sending a Chat Completion Request

Send text in and receive text out using the /v1/chat/completions endpoint. The model identifier is simply uncensored. We support parameters like temperature, top_p, stop, seed, presence_penalty, and frequency_penalty. Note that we do not support image, audio, or embedding endpoints. The context window is 100,000 tokens total (input + output). If you do not specify max_tokens, the response can run to the end of the window. Pricing is prepaid: $0.15 per million input tokens and $0.50 per million output tokens. Errors and refusals do not consume credits.

Python SDK Integration

Use the official OpenAI Python library to interact with our uncensored LLM API. Configure the client with your API key and our base URL. This approach ensures compatibility with standard request structures. You can control output behavior using supported parameters. Remember that this is a text-only API; there are no image or video generation capabilities. The model is open-weight and tuned for unrestricted responses to lawful adult and controversial topics. Ensure your request body adheres to the 8 MB limit.

Node.js SDK Integration

For Node.js developers, use the openai npm package. Initialize the client with your API key and the custom base URL. Send a chat completion request with the model ID uncensored. This setup works for both synchronous and asynchronous requests. Since we do not offer fine-tuning or routing between different vendors, your requests go directly to our inference engine. You can enable JSON mode by setting response_format to {"type": "json_object"} for structured data extraction. Monitor your prepaid credit balance via the dashboard.

Streaming Responses (SSE)

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Each chunk contains partial text. Token usage information is included in the final chunk of the stream. This is useful for real-time applications where you want to display text as it is generated. Streaming does not change the token billing; you are charged for the total input and output tokens used. Ensure your client handles SSE correctly to avoid memory leaks or incomplete responses.

Rate Limits, Errors & Constraints

Each API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. If you send an invalid key, you receive a 401 error. If your prepaid credit is exhausted, you get a 402 error. Exceeding the rate limit results in a 429 error. Content restrictions apply: sexual content involving minors is always refused, but other adult content is allowed. Credit never expires, and refunds are not issued for unused balances. Support double-charge errors via the Support page.

cURL

curl https://api.uncensoredchat.top/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

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredchat.top/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

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.uncensoredchat.top/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

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)

Specs at a glance

If your tool speaks the OpenAI API, these are the details that matter.

ItemValue
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.uncensoredchat.top/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
API keyAuthorization: Bearer YOUR_KEY
Model IDuncensored
Max context100,000 tokens, input and output combined
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Structured outputresponse_format: {"type": "json_object"}
StreamingSupported (stream: true), usage included at the end
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Parallel requests8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
Rate limit300/min per key
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Trial credit$0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
How you payprepaid credit, charged by real token usage; errors and refusals are free
Credit expiryno monthly fee; paid credit does not expire
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
Sign-inGoogle or e-mail and password
Key managementone active key per account; a new key replaces the old one

Error codes

Errors come back as JSON with a stable type; failed and refused requests are not billed.

StatusTypeReason
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds

Questions and answers

Is this API suitable for NSFW content?

Yes, the model is uncensored and does not refuse lawful adult, fictional, or controversial topics. The only hard content limit is the refusal of sexual content involving minors. Requests for other adult themes are processed normally.

What happens if I get a 402 error?

A 402 error indicates that your prepaid credit balance is zero. You can top up by crypto (USDT on TRC20, USDC on Base) via our billing system. New accounts start with $0.50 of trial credit valid for 7 days. Claim this credit with one click on your API key page.

Do you support function calling?

Yes, we support function calling (tools) and tool_choice. You can also enforce JSON output by setting response_format to json_object. This allows for structured data extraction from the uncensored model responses.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key