EN ▾
Get API key

Unrestricted Chatbot API Quickstart

Start using the Unrestricted Chatbot API by authenticating with your key and sending text completions. This guide covers the base URL, SDK integration, streaming, and rate limits for the uncensored LLM.

Base URL and Authentication

Our API follows the standard OpenAI chat-completions format. To begin, you need a valid API key from your dashboard. The base URL for all requests is:

https://api.unrestrictedchatbot.com/v1

Send your API key in the Authorization header using the Bearer scheme. This ensures compatibility with standard OpenAI SDKs and clients. The model identifier to use in your requests is uncensored. This single model is tuned for unrestricted outputs without content refusals for lawful adult content.

Send a Completion

The core function is the chat/completions endpoint. Send a POST request with your messages and the model ID. The API returns raw text output without filtering.

Note: We do not offer embeddings, image generation, or audio features. This is a pure text API.

Here is a basic cURL example to test the connection:

curl https://api.unrestrictedchatbot.com/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 interact with our uncensored API. Initialize the client with our base URL and your API key. The SDK handles the HTTP requests and JSON parsing automatically.

Set the model to uncensored and define your conversation history in the messages array. This approach works for both simple prompts and complex multi-turn dialogues.

Code Example:

from openai import OpenAI

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

The Node.js SDK works identically to the Python version. Pass the base URL and API key during initialization. This allows you to integrate the unrestricted LLM directly into your JavaScript or TypeScript applications.

Call the chat.completions.create method with the uncensored model. The response contains the generated text in response.choices[0].message.content.

Code Example:

import OpenAI from "openai";

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

For real-time output, enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains a piece of the generated text.

The final chunk includes the token usage statistics. This is ideal for chat interfaces where you want to display tokens as they are generated. Streaming reduces the perceived latency for long responses.

Streaming Code Example:

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 Errors

Limits: 300 requests per minute per key, 8 concurrent requests, 8 MB request body. One active key per account; a new key replaces the old one.

Errors: 401 indicates an invalid or missing key. 402 means your prepaid credit is exhausted; top up by crypto (USDT on TRC20, USDC on Base) to resume. 429 signals you have exceeded the rate limit; wait before retrying.

Context: The model supports a 100,000 token context window (prompt + completion). Output can run to the end of that window. If you set max_tokens too high, you may hit the window limit.

Technical reference

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

SpecValue
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.unrestrictedchatbot.com/v1
API keyAuthorization: Bearer YOUR_KEY
Modeluncensored
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Max context100,000 tokens, input and output combined
SSE 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
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Structured outputresponse_format: {"type": "json_object"}
Rate limit300/min per key
Concurrency8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request size8 MB request body
Subscriptionpaid credit never expires, no subscription
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
How you payprepaid credit, charged by real token usage; errors and refusals are free
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
Key managementone key per account, regenerate any time (the old one stops working)
Content policyadult content allowed; sexual content involving minors is refused
Sign-inGoogle or e-mail and password

Error codes

The type field is stable, the message is for humans. Errors cost nothing.

CodeTypeMeaning
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_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_busytemporary overload, retry shortly

Questions and answers

What happens if my prepaid credit runs out?

You will receive a 402 error. You can top up immediately by crypto (USDT on TRC20, USDC on Base) to restore your balance. Errors and refusals do not consume credit.

How many tokens can I send in one request?

The total context window is 100,000 tokens. There is no separate output cap, and if you do not specify a max_tokens value, the response can run to the end of the window.

Is this the same as OpenAI's API?

It is compatible with the OpenAI SDK format, but it uses a different base URL and model ID. It is an uncensored model, not GPT-4 or GPT-3.5.

Your key is one form away

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