EN ▾
Get API key

Unrestricted AIUnrestricted AI Chat API Documentation

Unrestricted AI Chat API Documentation

Get started with the uncensored AI chat API in minutes. Use the standard OpenAI-compatible interface to generate text, stream results, and handle tools with zero vendor lock-in.

uncensoredhttps://api.unrestrictedaichat.cc/v1

Authentication & Base URL

The API follows the OpenAI chat-completions standard. Use the base URL https://api.unrestrictedaichat.cc/v1 and pass your API key in the Authorization header. Sign up via Google or email to receive your key instantly—no phone number or credit card is required. The endpoint supports POST /v1/chat/completions and GET /v1/models.

Send requests with the model ID uncensored. This is an open-weight model hosted on our servers, tuned to answer without typical content refusals for lawful adult use. It is not GPT, Claude, or any other vendor model. Requests must include a message array, and the system handles the rest.

First Request

Make your first call to the uncensored LLM API by sending a POST request to the chat completions endpoint. The model ID is uncensored. You can control generation via parameters like temperature, top_p, and stop. The API accepts standard OpenAI JSON payloads and returns text output directly.

curl https://api.unrestrictedaichat.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."}]
  }'

This request demonstrates a basic text generation. The API returns a response containing the generated text and token usage statistics. Errors and refusals (except for the hard limit on minors) are free, so you only pay for actual token usage.

Python SDK Integration

Use the official OpenAI Python SDK to interact with the API. Set the base_url to our endpoint and provide your API key. The SDK handles JSON serialization and HTTP requests automatically. This approach is ideal for backend services, data processing pipelines, or automated agents that require high-context uncensored inference.

from openai import OpenAI

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

The code snippet above initializes the client and sends a chat completion request. The response object contains the content generated by the model. You can access usage details and other metadata directly from the response object. This method is reliable and leverages the same SDKs used for other major LLM providers.

Node SDK Integration

Integrate the API into your Node.js applications using the official OpenAI Node SDK. Configure the baseURL to point to our server. This allows you to use familiar methods like chat.completions.create() within your JavaScript or TypeScript projects. It is perfect for web backends, serverless functions, or real-time applications.

import OpenAI from "openai";

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

This example shows how to create a completion request. The SDK returns a promise that resolves to the response data. You can easily handle errors and access the generated text. The Node SDK supports all standard parameters, including temperature and top_p, giving you full control over the output.

Streaming with SSE

Enable streaming by setting stream: true in your request. The API returns data via Server-Sent Events (SSE), delivering tokens as they are generated. Token usage details are included in the last chunk of the stream. This is ideal for user-facing applications where you want to display text progressively.

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)

The code above demonstrates how to handle the stream. Each chunk contains partial text and usage data. The final chunk includes the total token count. Streaming reduces perceived latency and provides a smoother user experience for uncensored content generation.

Rate Limits & Quotas

The API enforces strict limits to ensure reliability. You are allowed 300 requests per minute and 8 concurrent requests per key. The maximum request body size is 8 MB. Your context window is 100,000 tokens, with no separate output cap (if max_tokens is not set, the response can run to the end of the window). If you exceed these limits, you will receive an error. Credit is prepaid and never expires. Errors and refusals do not consume credit.

Technical specifications

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

FeatureSupport
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
API keyAuthorization: Bearer YOUR_KEY
Model IDuncensored
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.unrestrictedaichat.cc/v1
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Context window100,000 tokens (prompt + completion together)
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Structured outputresponse_format: {"type": "json_object"}
StreamingYes — server-sent events; the last chunk carries token usage
Requests per minute300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrency8 requests at the same time per key
Max bodyup to 8 MB per request
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
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
Credit expiryno monthly fee; paid credit does not expire
Billingprepaid credit, charged by real token usage; errors and refusals are free
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Key managementone key per account, regenerate any time (the old one stops working)
Content policyadult content allowed; sexual content involving minors is refused
Sign-insign in with Google or with e-mail + password

When a request fails

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

StatusTypeReason
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busymodel busy — retry in a few seconds

Questions and answers

What is the context window and output limit?

The context window is 100,000 tokens for prompt and completion combined. There is no separate output cap, and if you do not set the max_tokens parameter, the response can run to the end of the window.

Does the model refuse all NSFW content?

No, the model is uncensored and does not refuse lawful adult, fictional, or controversial topics. However, there is one hard content limit: sexual content involving minors is always refused.

How do I top up my credit?

Top-ups are by crypto (USDT on TRC20, USDC on Base). You can add any whole amount from $20 to $500. Credits never expire, and you receive bonuses for larger top-ups.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.