Unrestricted Chatbot: Uncensored LLM API Documentation
This quickstart guide shows you how to integrate the uncensored LLM API into your application. You will learn to authenticate, send requests, handle streaming, and manage token usage.
Base URL and Authentication
Start by setting your base URL to https://api.unrestrictedchatbot.top/v1. The API is OpenAI-compatible, so you can use standard SDKs by overriding the base URL. Authentication relies on a single API key shown immediately after signup. Include this key in the Authorization header as a Bearer token. The uncensored model handles text input and output without content refusals for lawful adult use. It is an open-weight model hosted on our servers, distinct from major vendor models. You do not need to specify a model version; simply use the ID uncensored.
The service supports standard parameters like temperature, top_p, and stop. Context window is 100,000 tokens total, and output can run to the end of the window. Errors and refusals incur no charge, ensuring you only pay for actual usage. Privacy is prioritized: prompts are not used for training, and accounts require only an email.
First Request
Send your first request to the POST /v1/chat/completions endpoint. This is the core interaction for the unrestricted chatbot. You must provide a model field set to uncensored and a messages array. The API returns text completions directly. No embeddings or image generation are available in this endpoint. Keep requests within the 8 MB body limit to avoid errors. The uncensored ai models api responds to lawful adult, fictional, or security research topics without standard refusals.
Below is a basic example using curl. Replace YOUR_API_KEY with your key. This demonstrates the minimal structure required to get a response. The API does not support fine-tuning or model routing, so you interact directly with the single hosted model. Use this structure as the foundation for your application logic.
curl https://api.unrestrictedchatbot.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 SDK Integration
Use the official OpenAI Python SDK to integrate the uncensored llm api. Set the base URL to https://api.unrestrictedchatbot.top/v1 and provide your API key. This allows you to use familiar methods like chat.completions.create. The SDK handles authentication and JSON serialization automatically. This approach is ideal for backend services or scripts. The uncensored AI API supports all standard parameters, including seed for reproducibility. You can adjust temperature to control randomness.
Ensure you handle potential errors gracefully. The API returns standard HTTP status codes. A 401 indicates an invalid key, while a 402 means you need to add credit. The uncensored chatbot API does not require a card for the trial, but you must top up with crypto for continued use. This Python example shows the minimal setup to get started quickly.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedchatbot.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 SDK Integration
For Node.js environments, use the OpenAI npm package. Configure the base URL and API key as shown in the example. This enables you to use the same chat.completions endpoint. The uncensored AI models API works seamlessly with Node SDKs. You can process responses asynchronously. This is useful for web servers or event-driven applications. The API supports function calling, allowing you to define tools for the model to use. Specify tool_choice to control function invocation.
Remember that the API is pay-as-you-go. Credit is charged based on real token usage. Errors are free, so failed requests do not drain your balance. The uncensored chatbot API does not offer a free unlimited tier. You must preload credit via crypto. This Node example demonstrates the basic configuration. Adjust the messages array to fit your application's needs. The response structure matches standard OpenAI formats, making migration easy.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedchatbot.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 Responses (SSE)
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) for real-time token delivery. Each chunk contains a partial response. The final chunk includes the total token usage. This is ideal for user-facing applications where latency matters. The uncensored LLM API supports streaming natively. You can parse chunks as they arrive. This reduces perceived wait time for users. The model does not refuse content, so streaming works for any topic.
Handle stream termination correctly. Close the connection when the final chunk arrives. The uncensored AI API includes usage data in the last chunk, allowing you to track costs accurately. This feature is critical for billing transparency. The API does not support audio or video streaming, only text. Use this method for chat interfaces. The uncensored chatbot API ensures smooth delivery even for long contexts. Manage your stream handlers to avoid memory leaks.
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 and Constraints
The API enforces strict limits to ensure stability. You are allowed 300 requests per minute per key. Concurrent requests are limited to 8 at the same time. Request bodies must not exceed 8 MB. If you exceed these limits, the API returns a 429 error. A 401 error indicates an invalid or missing API key. A 402 error means your account has insufficient credit. These errors are free, so they do not affect your balance. The uncensored chatbot API allows one active key per account. Generating a new key replaces the old one immediately.
Context window is 100,000 tokens total. There is no separate output cap per request. If you do not set max_tokens, the response can run to the end of the window. The uncensored AI models API does not offer SLA percentages or uptime guarantees. It is a direct service without subscriptions. Use these limits to design your application’s retry logic. The private llm API ensures your data is not used for training. This makes it suitable for sensitive applications. Monitor your usage to avoid unexpected charges.
Under the hood: specs
Before you integrate, here is exactly what you get with a key.
| Spec | Value |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| API key | Authorization: Bearer YOUR_KEY |
| Model | uncensored |
| Base URL | https://api.unrestrictedchatbot.top/v1 |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Structured output | response_format: {"type": "json_object"} |
| Context window | 100,000 tokens (prompt + completion together) |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Completion length | 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 |
| Concurrency | up to 8 in parallel per key |
| Requests per minute | 300/min per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Request size | up to 8 MB per request |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Subscription | no monthly fee; paid credit does not expire |
| 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 |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Content | 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 |
Error codes
The type field is stable, the message is for humans. Errors cost nothing.
| 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 | out of credit; add credit and retry |
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 | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
What payment methods are accepted for topping up credit?
We accept only crypto: USDT (TRC20) or USDC (Base). You can top up any whole amount from $20 to $500. No cards, PayPal, or bank transfers are supported. Credit never expires, and you receive a bonus for larger top-ups.
Is the trial credit renewable?
No. New users get $0.50 of trial credit valid for 7 days. It is one per person. Claim this credit with one click on your API key page. You do not need a card for the trial, but you must add crypto credit to continue using the API after the trial expires.
Does the model refuse content?
The model is uncensored and does not refuse lawful adult, fictional, or controversial topics. The only hard limit is sexual content involving minors, which is always blocked. Requests for other adult content are answered directly.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key