EN ▾

Uncensored LLMs API Quickstart

Integrate our single, uncensored LLM into your application using the standard OpenAI-compatible interface. This quickstart covers authentication, request formats, streaming, and tool usage.

Model
uncensored
Base URL
https://api.uncensoredllms.cc/v1

Base URL and Authentication

Our API uses the standard /v1/chat/completions endpoint. Set your base URL to https://api.uncensoredllms.cc/v1 and pass your API key via the Authorization: Bearer <key> header. You can generate a key on the Get API key page by continuing with Google or using an email and password. The key is displayed immediately; no phone number is required.

Each account holds one active key. Requesting a new key replaces the previous one. If you send a request with an invalid or expired key, the API returns a 401 error. There is no monthly fee, and prepaid credit never expires.

Send a Chat Completion

Send a standard chat completion request to generate text. The model ID is always uncensored. This is a dedicated uncensored model, not GPT, Claude, or any other vendor's model. It responds to lawful adult, fictional, and controversial topics without standard refusals, though it always blocks sexual content involving minors.

  • Context window: 100,000 tokens total.
  • Max output: up to the end of the 100,000-token window (max_tokens is optional).
  • Price: $0.15/1M input tokens, $0.50/1M output tokens.
curl https://api.uncensoredllms.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 by changing the base URL and providing your API key. This approach works for any OpenAI-compatible client library. You can adjust parameters like temperature, top_p, and stop to control generation behavior. Errors and refusals do not consume your prepaid credit.

from openai import OpenAI

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

For JavaScript or TypeScript environments, initialize the client with the correct base URL and model ID. The uncensored model supports standard chat messages. Ensure you handle the response correctly to extract the generated text from the message.content field. This method is ideal for server-side applications or edge functions where you need programmatic access to the uncensored model.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.uncensoredllms.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). Token usage data, including input and output token counts, is provided in the final chunk. This allows you to display text in real-time while accurately tracking costs. Streaming is useful for long-form content generation where you want to show progress to the user immediately.

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 Constraints

Each API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. If you exceed the rate limit, you will receive a 429 error. If your prepaid credit is exhausted, the API returns a 402 error, indicating that payment is required before further generation. Errors themselves are free and do not deduct from your balance.

API specifications

If your tool speaks the OpenAI API, these are the details that matter.

ItemValue
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
MethodsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
API keyBearer token in the Authorization header
Base URLhttps://api.uncensoredllms.cc/v1
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
SSE streamingYes — server-sent events; the last chunk carries token usage
JSON modeJSON object mode via response_format json_object
Context window100,000 tokens, input and output combined
Requests per minute300/min per key
Concurrencyup to 8 in parallel per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Max bodyup to 8 MB per request
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Credit expirypaid credit never expires, no subscription
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 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Keysone active key per account; a new key replaces the old one
Accountsign in with Google or with e-mail + password
Contentadult content allowed; sexual content involving minors is refused

HTTP errors

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

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_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

Does the API support embeddings or image generation?

No. The API serves only text chat completions. It does not support embeddings, image, audio, or video generation, nor does it offer fine-tuning or model routing.

How do I add credit to my account?

Top up by crypto (USDT on TRC20, USDC on Base). You can add any whole amount between $20 and $500. A 5% bonus applies for deposits of $50 or more, and 10% for $100 or more.

Is there a trial available for new users?

Yes. New users get $0.50 of trial credit valid for 7 days. Claim this credit with one click on your API key page. No credit card is needed to start. This offer is limited to one per person.

Your key is one form away

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

Get API key