Uncensored LLM API Documentation | Uncensored LLM
Integrate the uncensored LLM into your application with a standard OpenAI-compatible endpoint. This guide covers authentication, request formatting, and handling streaming responses for immediate deployment.
Base URL & Authentication
Access the uncensored ai models endpoint via a single base URL. Authentication uses a Bearer token passed in the Authorization header. Generate your key on the dashboard and keep it secure; one active key per account replaces the previous one.
The API accepts standard chat-completion requests. Unlike local deployment, you do not manage GPU infrastructure or model weights. The endpoint is designed for developers who need a reliable uncensored coding llm or general-purpose text generation without content refusals for lawful adult use.
Chat Completions Endpoint
Send text to the model using the POST /v1/chat/completions endpoint. The model ID is uncensored. Requests must include a messages array containing your system, user, and assistant history. The model responds with generated text or tool calls.
Input tokens are charged at $0.15 per million; output tokens at $0.50 per million. Errors and refusals consume no credit. Use the following curl command to verify connectivity and basic response generation.
curl https://api.uncensoredllm.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 SDK Integration
Use the official OpenAI Python SDK or any compatible client. Set the base URL to our API endpoint and provide your API key. This allows you to leverage existing codebases that expect OpenAI-compatible responses.
The client handles serialization and retry logic. Pass the model ID as uncensored. This approach works for both synchronous and asynchronous applications. Initialize the client with your base URL and key to start making requests immediately.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoredllm.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 SDK Integration
Integrate with JavaScript or TypeScript projects using the Node SDK. Configure the base URL and API key in the client instance. This ensures compatibility with standard OpenAI request structures.
The SDK supports standard message formats and parameter passing. You can stream responses or process them synchronously. Use this method to embed the uncensored model directly into your web or backend services without modifying the request payload structure.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoredllm.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 Responses (SSE)
Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE) for each token generated. This reduces perceived latency for end-users. Token usage statistics are provided in the final chunk.
Handle the stream events to update your UI in real-time. The uncensored model maintains context throughout the stream. Ensure your client properly closes the connection when the stream ends or an error occurs.
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 & Constraints
Each API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. The context window is 100,000 tokens total. If max_tokens is unset, the response can run to the end of the window.
Common errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Credit never expires. Mistakes like double charges are resolved via Support. The model blocks sexual content involving minors.
Under the hood: specs
If your tool speaks the OpenAI API, these are the details that matter.
| Parameter | Details |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Model ID | uncensored |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.uncensoredllm.cc/v1 |
| Authentication | Authorization: Bearer YOUR_KEY |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Structured output | response_format: {"type": "json_object"} |
| Max context | 100,000 tokens, input and output combined |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | up to 8 in parallel per key |
| Max body | up to 8 MB per request |
| Rate limit | 300/min per key |
| Trial credit | $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 |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Credit expiry | paid credit never expires, no subscription |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Key management | one active key per account; a new key replaces the old one |
| Sign-in | sign in with Google or with e-mail + password |
| Content | adult content allowed; sexual content involving minors is refused |
Errors and what to do
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| HTTP | Type | What to do |
|---|---|---|
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 | 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 | temporary overload, retry shortly |
Questions and answers
Does this API support image or audio generation?
No. The API serves text only via the chat-completions endpoint. It does not support embeddings, images, audio, video, or fine-tuning. It is a dedicated text model for uncensored responses.
How is pricing calculated?
You pay $0.15 per million input tokens and $0.50 per million output tokens. Errors and refusals are free. Credit is topped up via crypto (USDT, USDC) and never expires.
Is the model trained on my data?
No. Prompts sent to the API are not used for training. The model is an open-weight model tuned for uncensored responses but is not GPT, Claude, or any other vendor's model.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.