Unrestricted AI Chatbot: Quickstart: Integrate the Uncensored LLM API
Integrate our uncensored AI chatbot API into your application using standard OpenAI-compatible endpoints. This quickstart covers authentication, basic requests, streaming, and function calling with our single uncensored model.
Authentication and Base URL
Our API uses standard OpenAI-compatible authentication. You need a valid API key, which you can generate immediately on the Get API key page. The base URL for all requests ishttps://api.unrestrictedaichatbot.cc/v1. Configure your client by setting this base URL and your API key. We support Google login or email/password registration. No phone number is required. Your API key is shown once after creation. Keep it secure. Each account allows one active key; generating a new one replaces the old. Requests are authenticated via the Authorization: Bearer <API_KEY> header. If you send an invalid key, you will receive a 401 error. If your prepaid credit is exhausted, you receive a 402 error. This ensures transparent usage without hidden fees.
Basic Completion Request
Send a standardPOST /v1/chat/completions request to generate text. Our uncensored AI API responds with text completions based on your prompt. The model ID is always uncensored. You can specify parameters like temperature and top_p to control randomness. The API accepts text input and returns text output. It does not support images, audio, or embeddings. Focus on text generation. You can set a max_tokens limit; if not specified, the response can run to the end of the 100,000-token window. The context window supports up to 100,000 tokens total (prompt + completion). Use this endpoint for straightforward text generation tasks.
Streaming Responses
Enable streaming by settingstream: true in your request. The API returns Server-Sent Events (SSE) chunks. Each chunk contains partial text. The final chunk includes token usage statistics. Streaming is ideal for real-time user experiences. It reduces perceived latency. Our uncensored AI models API handles streaming efficiently. You can parse chunks as they arrive. This allows instant display of generated text. Use streaming for chat interfaces or long-form content generation. It provides a smoother user experience compared to waiting for the full response. Token counts are only available in the last chunk.
Function Calling (Tools)
Support function calling for structured interactions. Define tools in your request with names, descriptions, and parameter schemas. The model can choose to call a function. Settool_choice to auto or specify a tool. This enables integration with external systems. Use this for data extraction or action triggers. The API supports standard OpenAI tool formats. It works with our uncensored model for reliable function selection. Define your tools clearly. The model returns a list of tool calls. Parse these calls to execute functions in your application. This adds capability beyond simple text generation.
JSON Mode
Force the model to output valid JSON. Setresponse_format: { "type": "json_object" } in your request. This ensures the output is parseable JSON. Useful for structured data extraction or API responses. The model adheres to JSON syntax. This reduces parsing errors in your code. Combine with function calling for robust structured outputs. Our uncensored AI API maintains this format reliably. Use it when you need consistent data structures. It simplifies downstream processing. Ensure your prompt encourages JSON output for best results.
Parameters, Limits, and Errors
Manage requests with specific limits. Max 300 requests per minute per key. Max 8 concurrent requests. Max 8 MB request body. Errors include 401 (invalid key), 402 (no credit), and 429 (rate limit). Context window is 100,000 tokens. Max output: up to the end of the 100,000-token window. Use parameters liketemperature, top_p, stop, seed, presence_penalty, and frequency_penalty. These control generation behavior. Monitor your usage via token counts. Prepaid credit never expires. Errors are free. This predictable model suits stable integrations. Avoid exceeding limits to prevent 429 errors.cURL
curl https://api.unrestrictedaichatbot.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."}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedaichatbot.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)Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedaichatbot.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);Streaming
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)Technical reference
Everything the endpoint can and cannot do, in one place — check it before you top up.
| Spec | Value |
|---|---|
| API format | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Authentication | Bearer token in the Authorization header |
| Base URL | https://api.unrestrictedaichatbot.cc/v1 |
| Structured output | response_format: {"type": "json_object"} |
| Max context | 100,000 tokens (prompt + completion together) |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Rate limit | 300/min per key |
| Max body | 8 MB request body |
| Parallel requests | 8 requests at the same time per key |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Credit expiry | paid credit never expires, no subscription |
| 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 |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Keys | one active key per account; a new key replaces the old one |
| Account | Google or e-mail and password |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
When a request fails
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Code | Type | Meaning |
|---|---|---|
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 | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
What is the maximum context window?
The context window supports up to 100,000 tokens, including both the prompt and the completion. This allows for substantial input data and long-form outputs within a single request.
How do I handle streaming responses?
Set the stream parameter to true in your request. The API returns Server-Sent Events (SSE) chunks containing partial text. Token usage is only provided in the final chunk.
Is there a concurrent request limit?
Yes, you can have up to 8 concurrent requests per API key. The rate limit is 300 requests per minute. Exceeding these limits will result in a 429 error.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.