Unrestricted Chat: Uncensored Chat API Quickstart
Get started with the unrestricted chat API in minutes. This guide covers authentication, text generation, streaming, and tool usage for building NSFW or uncensored applications.
Base URL & Authentication
Our API follows the standard OpenAI-compatible structure. You interact with the chat-completions endpoint using your unique API key. The base URL for all requests is https://api.unrestrictedchat.cc/v1. You do not need to manage complex routing or switch between multiple vendors; your requests go directly to our dedicated uncensored large language model.
Authentication is handled via the Authorization header. Include your key in the format Bearer YOUR_API_KEY. If you receive a 401 error, verify that your key is correct and active. Our service requires no phone verification, and your key is issued immediately upon signup via Google or email.
Chat Completions Endpoint
The core functionality is the POST /v1/chat/completions endpoint. This endpoint accepts a list of messages and returns a text response. It is designed for straightforward text-in, text-out workflows. You can send system prompts to define the persona, user messages for the query, and assistant messages for context.
The model ID you must specify in your request is uncensored. This is an open-weight model tuned to answer without refusals for lawful adult content. It is not GPT, Claude, or any other vendor model. You can verify available models by sending a GET /v1/models request.
Streaming Responses (SSE)
For applications requiring real-time text display, enable streaming by setting stream: true. The API returns a Server-Sent Events (SSE) stream. Each chunk contains a partial delta of the response. Token usage information, including input and output counts, is provided in the final chunk of the stream.
Streaming is ideal for chat interfaces where latency matters. It allows users to see tokens as they are generated, improving the perceived performance of your application.
Function Calling & Tools
The API supports function calling, allowing the model to output structured data that your code can execute. Define tools in your request and specify tool_choice to control how the model uses them. This is useful for building agents that can interact with external systems or extract specific data points from conversations.
Set the response_format to json_object if you need strict JSON output. This ensures the model returns valid JSON that can be parsed directly by your backend without additional validation layers.
Model Parameters
Control the behavior of the uncensored model using standard parameters. temperature adjusts randomness, while top_p filters tokens by cumulative probability. Use stop to define sequences that terminate the response, and seed for reproducible results.
Additional controls include presence_penalty and frequency_penalty to influence token repetition. The context window supports up to 100,000 tokens for the combined prompt and completion. There is no separate output cap per request; if max_tokens is not explicitly set, the response can run to the end of the window.
Error Handling & Limits
Monitor your usage to avoid service interruptions. The API enforces a limit of 300 requests per minute per key and allows 8 concurrent requests. The request body must not exceed 8 MB. If you exceed the rate limit, you will receive a 429 error.
A 402 error indicates insufficient prepaid credit. Errors and refusals are free, so you are only charged for successful token generation. Credit never expires, and you can top up by crypto (USDT on TRC20, USDC on Base) at any time. Refunds are not issued for credit balances, but billing errors can be resolved via the Support page.
cURL
curl https://api.unrestrictedchat.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
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedchat.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
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedchat.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
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)API specifications
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Parameter | Details |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.unrestrictedchat.cc/v1 |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Authentication | Authorization: Bearer YOUR_KEY |
| Model | uncensored |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Context window | 100,000 tokens (prompt + completion together) |
| Structured output | response_format: {"type": "json_object"} |
| Max body | 8 MB request body |
| Parallel requests | 8 requests at the same time per key |
| Requests per minute | 300 requests per minute per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| 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 |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Credit expiry | no monthly fee; paid credit does not expire |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Keys | one active key per account; a new key replaces the old one |
| Account | sign in with Google or with e-mail + password |
Errors and what to do
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
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 | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
What content is restricted?
The model is uncensored for lawful adult, fictional, and controversial topics. The only hard limit is that sexual content involving minors is always refused. We do not filter based on political or social views.
How do I pay for the API?
We accept top-ups by crypto (USDT on TRC20, USDC on Base). You can top up any whole amount from $20 to $500. New accounts receive $0.50 in trial credit valid for 7 days with no card needed. Claim this credit with one click on your API key page.
Is this a reseller of GPT or Claude?
No. We run our own open-weight model dedicated to uncensored text generation. We do not route requests to other vendors or offer model switching. Check the vendor documentation for their specific models and pricing.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.