Quickstart: Use the Uncensored Model API
Get started with the Uncensored Model API in minutes using standard OpenAI-compatible clients. This quickstart covers authentication, chat requests, streaming, and tool usage for the dedicated uncensored LLM.
Base URL and Authentication
Start by setting your base URL to https://api.uncensoredmodel.top/v1. You only need one API key, generated instantly upon signup via Google or email. Include this key in the Authorization header as a Bearer token. The API serves a single uncensored large language model identified by the ID uncensored. Unlike multi-model aggregators, this endpoint is dedicated to one open-weight model tuned for minimal content refusals, making it ideal for developers who need consistent behavior without routing complexity.
- Base URL:
https://api.uncensoredmodel.top/v1 - Auth:
Authorization: Bearer YOUR_API_KEY - Model ID:
uncensored
First Request
Send a standard chat completion request to test the connection. The API accepts text input and returns text output. You can control the response style using parameters like temperature and top_p. The model handles context windows up to 100,000 tokens, allowing for substantial prompt lengths. If you do not specify a max output limit, the response can run to the end of the window. Errors and refusals do not consume your prepaid credit, so testing is risk-free.
curl https://api.uncensoredmodel.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 SDK
Using the official OpenAI Python library is the most straightforward way to integrate. Configure the client with the custom base URL and your API key. This approach ensures compatibility with existing codebases that already target OpenAI endpoints. The uncensored AI model responds to standard message structures, making migration from other providers trivial for text-only workflows. Remember that this is a text-only API; there are no embeddings or image generation endpoints to manage.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredmodel.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 SDK
For JavaScript and TypeScript developers, the Node SDK works identically to the Python version. Point the client to the uncensored model API base URL. This is useful for server-side rendering or backend logic where you need an uncensored LLM to process data without external moderation layers. The API supports standard JSON payloads, so you can easily integrate it into Express or Fastify applications. The prepaid credit model means you only pay for what you use, with no monthly subscription fees.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredmodel.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 Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE), allowing you to process tokens as they are generated. This reduces perceived latency for end-users and is essential for chat-like interfaces. The final chunk of the stream includes the total token usage statistics, so you can track costs accurately in real-time. Streaming does not change the pricing model; you still pay per 1M input and output tokens.
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)
Rate Limits and Errors
Each API key is limited to 300 requests per minute and 8 concurrent connections. If you exceed these limits, the API returns a 429 status code. Authentication errors (401) indicate an invalid key, while 402 errors mean your prepaid credit is exhausted. The maximum request body size is 8 MB. Context is measured as prompt plus completion combined, up to 100,000 tokens. Errors and content refusals (except for the hard limit on minor sexual content) are free, so you won't be charged for failed requests.
Specs at a glance
The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.
| Spec | Value |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Base URL | https://api.uncensoredmodel.top/v1 |
| Authentication | Authorization: Bearer YOUR_KEY |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| JSON mode | JSON object mode via response_format json_object |
| Streaming | Supported (stream: true), usage included at the end |
| Max context | 100,000 tokens (prompt + completion together) |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Rate limit | 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 | 8 MB request body |
| Credit expiry | no monthly fee; paid credit does not expire |
| Free trial | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Keys | one active key per account; a new key replaces the old one |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Sign-in | sign in with Google or with e-mail + password |
Errors and what to do
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 | balance is empty — top up, requests resume at once |
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 | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Does the uncensored model support image generation?
No, this API is strictly for text. It serves a single large language model for chat completions. There are no embeddings, audio, or image generation endpoints available.
How is billing calculated?
You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens. Credit is prepaid, never expires, and errors or refusals do not consume funds.
What happens if I exceed the rate limit?
You will receive a 429 status code. The limit is 300 requests per minute per key, with a maximum of 8 concurrent requests allowed simultaneously.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.