Unrestricted Chatbot: Uncensored LLM API Quickstart Guide
This guide covers the basics of integrating our uncensored LLM API into your application using standard OpenAI-compatible clients.
Authentication Setup
Our API follows the standard OpenAI interface, making integration straightforward. You receive a single API key upon signup, which authenticates all requests to the base URL https://api.unrestrictedchatbot.cc/v1. Keep this key secure, as it grants access to your prepaid credit. Unlike services that require complex routing or multiple keys, we provide one active key per account. If you generate a new key, the previous one becomes invalid immediately.
Ensure your client library is configured to use our base URL instead of the default OpenAI endpoint. This ensures your requests reach our uncensored models directly. The authentication header is standard Authorization: Bearer YOUR_API_KEY. No special headers or query parameters are needed for basic access.
Basic Chat Completion Example
Start by sending a simple text prompt to generate a response. Use the model ID uncensored to access our raw, unfiltered language model. The following example demonstrates a basic chat completion request using cURL.
Replace YOUR_API_KEY with your actual key. The response will contain the generated text in the choices array. This endpoint supports standard parameters like temperature and top_p to control creativity. Errors and refusals do not consume your credit, so you can experiment freely.
curl https://api.unrestrictedchatbot.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
For Python developers, the official OpenAI SDK works with minimal configuration. Set the base_url to our endpoint and provide your API key. This approach leverages familiar methods like chat.completions.create(), ensuring a smooth transition if you are already using OpenAI-compatible services.
The following code snippet shows how to initialize the client and send a prompt. Remember that the context window is 100,000 tokens total, so manage your input and output lengths accordingly. Streaming is not enabled by default in this synchronous call, making it ideal for simple, single-turn interactions.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedchatbot.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 Integration
Node.js developers can use the openai npm package with the same configuration adjustments. Define the base URL and API key in the client constructor. This allows you to use standard async/await patterns for handling responses.
The example below demonstrates a basic request. Ensure you handle the response object correctly to extract the generated text. Since we do not offer embeddings or image generation, stick to text-based completions. This setup works for both server-side applications and edge computing environments where latency matters.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedchatbot.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 with SSE
For real-time user experiences, enable streaming by setting stream: true. The API returns Server-Sent Events (SSE), delivering tokens as they are generated. This reduces perceived latency for the end-user, especially for longer responses.
The final chunk of the stream contains the total token usage, allowing you to track costs accurately. Note that streaming is supported for both the Python and Node SDKs. Handle potential network interruptions gracefully, as SSE streams can drop. The model will continue generating until it reaches the output limit or encounters an error.
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)
Rate Limits & Quotas
Our API enforces strict limits to ensure stability. You are allowed 300 requests per minute per key and can have up to 8 concurrent requests. The maximum request body size is 8 MB. Exceeding these limits will result in a 429 Too Many Requests error.
If your key is invalid, you will receive a 401 Unauthorized error. A 402 Payment Required error indicates insufficient prepaid credit. Errors and refusals do not charge your credit. If you double-charge, contact support via the Support page. Your prepaid credit never expires, so there is no rush to use it. Context window includes both prompt and completion tokens.
What the API supports
A quick checklist for developers: format, limits, features, billing.
| Parameter | Details |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.unrestrictedchatbot.cc/v1 |
| SSE streaming | Supported (stream: true), usage included at the end |
| Context window | 100,000 tokens, input and output combined |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Tools / tool calls | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| JSON mode | response_format: {"type": "json_object"} |
| Request size | 8 MB request body |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | up to 8 in parallel per key |
| Rate limit | 300/min per key |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Free trial | $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 |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Subscription | paid credit never expires, no subscription |
| Key management | one active key per account; a new key replaces the old one |
| Sign-in | Google or e-mail and password |
| Content | adult content allowed; sexual content involving minors is refused |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 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
Does the API support image or audio generation?
No, this is a text-only API. We provide a single uncensored large language model for text generation. We do not offer embeddings, image, audio, or video generation capabilities.
How do I top up my credit?
We accept top-ups by crypto (USDT on TRC20, USDC on Base). You can top up any whole amount between $20 and $500. Credit is charged based on real token usage, and prepaid credit never expires.
Is the content truly uncensored?
Yes, the model is tuned to answer without content refusals for lawful adult use, including fictional, security-research, or controversial topics. However, we do enforce a hard limit on sexual content involving minors, which will always be refused.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.