uncensored
Quickstart: Integrate the Unrestricted AI Model
unrestrictedaimodel.top, 2026-10-08 — Integrate the uncensored AI model into your application using the standard OpenAI-compatible endpoints. This guide covers authentication, basic requests, streaming, and structured output enforcement.
Prerequisites: Base URL and Key
To begin, obtain an API key from the Get API key page. You can sign in with Google or use an email and password. The key is displayed immediately and is the only active key for your account; generating a new one replaces the previous key. The base URL for all requests is https://api.unrestrictedaimodel.top/v1. This URL works with any OpenAI-compatible client by setting the base_url parameter. The model identifier is "uncensored". You can verify connectivity by calling the GET /v1/models endpoint.
Sending a Basic Request
Send text in and receive text out using the POST /v1/chat/completions endpoint. The following example demonstrates a simple chat completion request using curl. Ensure you include the API key in the Authorization header. The model processes your input and returns a response based on the provided messages. Note that this API does not offer text completion endpoints; it strictly uses chat completions.
This approach handles retries and JSON parsing automatically
Python SDK Integration
Use the official OpenAI Python SDK to integrate the uncensored LLM. Configure the client with the base URL and your API key. The following code snippet shows how to initialize the client and send a request. This configuration ensures all requests route through our uncensored LLM infrastructure. Remember that the model is open-weight and run on our servers, distinct from GPT or Llama.
Node SDK Integration
For JavaScript environments, use the OpenAI Node.js SDK. Set the baseUrl to the API endpoint and provide your key. The following example illustrates a basic chat request. The SDK handles the HTTP communication, allowing you to focus on the prompt and response logic. You can parse the response content directly from the assistant message.
Streaming Responses (SSE)
Enable streaming by setting stream to true. The API returns Server-Sent Events (SSE) chunks. Token usage information is provided in the last chunk of the stream. This allows you to display text as it generates without waiting for the full completion. The following example shows how to handle the stream in your code.
Limits, Errors, and Context Window
The context window is 100,000 tokens for prompt and completion combined. There is no separate output cap (if max_tokens is not set, the response can run to the end of the window). Limits include 300 requests per minute and 8 concurrent requests per key. Errors and refusals are free. If you encounter issues, standard HTTP status codes indicate the problem: 401 for invalid keys, 402 if you have no credit, and 429 for rate limits. Requests are capped at 8 MB body size.
cURL
curl https://api.unrestrictedaimodel.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
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedaimodel.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
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedaimodel.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
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)API facts in one table
Use this table to decide whether the API fits your project before you buy credit.
| Spec | Value |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.unrestrictedaimodel.top/v1 |
| API key | Bearer token in the Authorization header |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Streaming | Supported (stream: true), usage included at the end |
| Context window | 100,000 tokens (prompt + completion together) |
| JSON mode | response_format: {"type": "json_object"} |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Max body | up to 8 MB per request |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Requests per minute | 300/min per key |
| Concurrency | up to 8 in parallel per key |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| 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 |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Credit expiry | no monthly fee; paid credit does not expire |
| Account | sign in with Google or with e-mail + password |
| Keys | one key per account, regenerate any time (the old one stops working) |
| Content | adult content allowed; sexual content involving minors is refused |
When a request fails
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
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 | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Does this API support image or audio generation?
No. The API serves one uncensored large language model for text. It does not offer embeddings, image, audio, or video generation, nor fine-tuning.
How does the pricing work?
Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. Credit is prepaid and charged by real usage. Errors and refusals are free. Credit never expires.
Can I use this model for coding?
Yes. The uncensored AI model is suitable for coding tasks. It does not refuse lawful adult, fictional, or controversial topics, making it effective for unrestricted development workflows.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key