EN ▾
Get API key

Uncensored LLMs API Quickstart Guide

This guide shows developers how to integrate our uncensored llm API using standard OpenAI-compatible SDKs. You get a hosted, unfiltered model with prepaid credit that never expires, allowing you to focus on logic rather than GPU management.

Authentication & Base URL

Our API uses standard bearer token authentication. You receive your API key immediately after signing up with Google or email on the Get API key page. One active key is permitted per account; generating a new key replaces the previous one.

All requests must target the specific base URL for this hosted service:

  • https://api.uncensoredllms.top/v1

Include your key in the Authorization header. The model identifier is simply uncensored. This setup works with any OpenAI-compatible client by updating the base URL and API key.

Basic Chat Completion

Send a POST request to /v1/chat/completions with your prompt and system instructions. The model returns text responses without content refusals for lawful adult use. You pay only for tokens processed; errors and refusals are free.

Here is a basic cURL example to get started:

curl https://api.uncensoredllms.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."}]
  }'

The response contains the generated text in choices[0].message.content. Ensure you handle the response appropriately in your application logic.

Python SDK Integration

Using the official OpenAI Python SDK is the most straightforward way to integrate. Initialize the client with our base URL and your API key. The following snippet demonstrates a simple chat completion request.

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredllms.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)

Set parameters like temperature or top_p as needed. Remember that the total context window is 100,000 tokens, combining both prompt and completion. Keep your prompts concise to maximize output capacity.

Node SDK Integration

For JavaScript and TypeScript developers, the Node SDK works identically. Configure the base URL to point to our API endpoint. This ensures compatibility with existing OpenAI code structures.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.uncensoredllms.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);

This approach allows you to reuse familiar patterns while accessing the uncensored model. Check your prepaid credit balance regularly, as usage is charged per token. No monthly subscription fees apply.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text, allowing you to display responses in real-time.

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)

The final chunk includes token usage statistics. This is useful for monitoring costs. Streaming reduces perceived latency for long responses, improving user experience in developer tools.

Rate Limits & Errors

Each API key is limited to 300 requests per minute and 8 concurrent requests. The request body must not exceed 8 MB. If you exceed these limits, you will receive a 429 status code. Wait briefly before retrying.

Common errors include 401 for invalid keys and 402 for insufficient credit. Context window errors occur if prompt + completion exceeds 100,000 tokens. If max_tokens is not set, the response can run to the end of the window.

Questions and answers

Does my prepaid credit expire?

No, your prepaid credit never expires. You only pay for actual tokens used. Errors and refusals are free, so you are not charged for failed requests.

What is the maximum output length?

There is no separate output cap. If you do not set the max_tokens parameter, the response can run to the end of the window. The total context window is 100,000 tokens.

How do I top up my credit?

Top-ups are made by crypto (USDT on TRC20, USDC on Base). You can add any whole amount from $20 to $500. Bonuses apply for larger amounts.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key

Technical reference

Before you integrate, here is exactly what you get with a key.

FeatureSupport
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.uncensoredllms.top/v1
AuthenticationAuthorization: Bearer YOUR_KEY
MethodsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
Max context100,000 tokens, input and output combined
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Structured outputresponse_format: {"type": "json_object"}
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
StreamingSupported (stream: true), usage included at the end
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Requests per minute300/min per key
Parallel requests8 requests at the same time per key
Request size8 MB request body
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Bonus credit+5% from $50, +10% from $100, +15% from $200
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Billingprepaid credit, charged by real token usage; errors and refusals are free
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
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Credit expiryno monthly fee; paid credit does not expire
Accountsign in with Google or with e-mail + password
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Keysone key per account, regenerate any time (the old one stops working)

HTTP errors

Every error is JSON with a type you can switch on. You are never charged for an error.

StatusTypeReason
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_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly