EN ▾

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 is https://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 standard POST /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 setting stream: 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. Set tool_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. Set response_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 like temperature, 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.

SpecValue
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
MethodsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
AuthenticationBearer token in the Authorization header
Base URLhttps://api.unrestrictedaichatbot.cc/v1
Structured outputresponse_format: {"type": "json_object"}
Max context100,000 tokens (prompt + completion together)
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
SSE streamingYes — server-sent events; the last chunk carries token usage
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Rate limit300/min per key
Max body8 MB request body
Parallel requests8 requests at the same time per key
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Billingprepaid credit, charged by real token usage; errors and refusals are free
Bonus credit+5% from $50, +10% from $100, +15% from $200
Credit expirypaid 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
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Keysone active key per account; a new key replaces the old one
AccountGoogle or e-mail and password
Content policyuncensored 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.

CodeTypeMeaning
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_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary 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.

Get API key