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.
| Feature | Support |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| API key | Authorization: Bearer YOUR_KEY |
| Model ID | uncensored |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.unrestrictedaichat.cc/v1 |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Context window | 100,000 tokens (prompt + completion together) |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Structured output | response_format: {"type": "json_object"} |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Requests per minute | 300/min per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | 8 requests at the same time per key |
| Max body | up to 8 MB per request |
| Token prices | input $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 expiry | no monthly fee; paid credit does not expire |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Sign-in | sign 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.
| Status | Type | Reason |
|---|---|---|
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 | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model 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.