EN ▾
Get API key

Unrestricted Chat API Quickstart

Get started with the unrestricted chat API in minutes. This guide covers authentication, request formats, and streaming for developers building filter-free AI applications.

Base URL and Authentication

Our API follows the standard OpenAI chat-completions interface. To begin, navigate to the Get API key page and sign in using Google or an email/password combination. Your API key appears immediately; no phone number is required. Keep this key secure, as it authenticates all requests to our servers.

The base URL for all endpoints is https://api.unrestrictedchat.top/v1. You can use the official OpenAI SDKs or any compatible client by setting this base URL and providing your key. We support one active key per account; generating a new key replaces the previous one. This simplicity ensures you can integrate our uncensored LLM API into your stack without complex configuration.

Send a Completion Request

The core functionality is served via POST /v1/chat/completions. You send a message array and receive text output. Our model, identified as uncensored, is tuned to answer without content refusals for lawful adult use. It is an open-weight model run on our own servers, distinct from GPT, Claude, or other vendor models.

Below is a basic cURL example demonstrating a standard completion request. Replace YOUR_API_KEY with your actual key. The request body includes the model ID and user message. We do not offer embeddings, image, or audio generation; this is a text-only API for unrestricted content generation.

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

Using the Python SDK is straightforward. Initialize the client with your API key and the correct base URL. The uncensored model supports standard parameters like temperature, top_p, and stop. You can adjust these to control randomness and response length. The API returns standard OpenAI-compatible response objects, making migration from other providers easy.

Ensure you handle the response content carefully. Since our uncensored AI API does not filter controversial topics, the model may return varied outputs depending on your prompt. The following Python snippet shows how to send a request and retrieve the assistant's reply.

from openai import OpenAI

client = OpenAI(base_url="https://api.unrestrictedchat.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 SDK Usage

For JavaScript and TypeScript developers, the Node SDK works similarly. Set the base URL to our endpoint and provide your key. The uncensored model responds to standard chat completions. You can pass tools for function calling or request JSON mode for structured outputs. This flexibility supports a wide range of application types, from chatbots to data extraction pipelines.

Remember that we do not provide model routing or multiple model choices. You are connecting directly to our single uncensored large language model. Use the following Node.js example to send a message and log the result. This approach keeps your code clean and leverages existing ecosystem familiarity.

import OpenAI from "openai";

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

We support Server-Sent Events (SSE) for streaming responses. This allows you to receive tokens as they are generated, reducing perceived latency for users. The final chunk of the stream includes token usage statistics. Streaming is ideal for chat interfaces where immediate feedback is valuable. You can parse the stream to display text in real-time.

To enable streaming, set the stream parameter to true in your request. The API will return a stream of events instead of a single JSON object. This feature works with all SDKs that support streaming. The example below demonstrates how to handle a stream in your application.

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)

Limits, Errors, and Context Window

Our uncensored chat API has clear limits to ensure stability. You are allowed 300 requests per minute and 8 concurrent requests per key. The request body size is limited to 8 MB. Errors are standard HTTP codes: 401 for an invalid key, 402 if you have no credit, and 429 for rate limits. Mistakes like double charges are fixed via Support; credit never expires.

The context window is 100,000 tokens for prompt and completion combined. There is no separate output cap (if max_tokens is unset, the response can run to the end of the window). Content refusals only apply to sexual content involving minors. Pricing is transparent: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free, so you only pay for actual token usage.

Technical reference

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

ItemValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Model IDuncensored
MethodsPOST /v1/chat/completions · GET /v1/models
API keyAuthorization: Bearer YOUR_KEY
Base URLhttps://api.unrestrictedchat.top/v1
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Structured outputresponse_format: {"type": "json_object"}
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Max context100,000 tokens (prompt + completion together)
StreamingYes — server-sent events; the last chunk carries token usage
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request sizeup to 8 MB per request
Rate limit300/min per key
Parallel requestsup to 8 in parallel per key
Subscriptionno monthly fee; paid credit does not expire
Trial credit$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Billingprepaid credit, charged by real token usage; errors and refusals are free
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Keysone key per account, regenerate any time (the old one stops working)
Contentadult content allowed; sexual content involving minors is refused
Sign-insign 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.

StatusTypeReason
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
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_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

What models does the API support?

We serve a single open-weight uncensored model identified as "uncensored". It is not GPT, Claude, or any other vendor's model. We do not offer model routing or multiple choices.

How do I get credit?

You can top up by crypto (USDT on TRC20, USDC on Base) in amounts from $20 to $500. New accounts receive $0.50 trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is needed for the trial.

Is there a rate limit?

Yes, you are limited to 300 requests per minute and 8 concurrent requests per key. The request body must be under 8 MB. These limits ensure consistent performance for all users.

Your key is one form away

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

Get API key