EN ▾
  1. uncensoredlocalllm.top
  2. Uncensored Local LLM: Uncensored LLM API Documentation

Uncensored Local LLM: Uncensored LLM API Documentation

Integrate our uncensored local LLM into your workflow with this OpenAI-compatible API. Get started instantly with prepaid token billing and no hardware requirements.

Base URL & Authentication

Connect to the uncensored model using standard OpenAI SDKs. Change your base URL to our hosted endpoint and provide your API key in the authorization header. This approach works for any client that supports the OpenAI API format, allowing you to use uncensored AI models without managing local infrastructure.

Sign up on the Get API key page to receive your credentials immediately. Each account holds one active key; generating a new one invalidates the previous. Authentication is strictly token-based, ensuring transparent billing for every request you send.

The model ID to request is simply uncensored. It is an open-weight model tuned for high compliance, meaning it answers controversial or adult topics without unnecessary refusals, provided the content is lawful. You can verify available models by hitting the GET /v1/models endpoint.

First Request

Send a basic completion request to verify connectivity. The API expects a standard chat format with a system and user message. This is the most direct way to test if the uncensored local LLM responds as expected in your environment.

  • Use the POST method on the chat completions endpoint.
  • Include your API key in the Authorization header.
  • Set the model to uncensored.

If the key is valid and credit exists, you will receive a text response. Errors like 401 indicate an invalid key, while 402 signals insufficient prepaid credit. The trial credit of $0.50 is perfect for this initial check. Claim this credit with one click on your API key page.

Python SDK Integration

Use the official OpenAI Python library to interact with the API. Configure the client to point to our base URL and supply your API key. This method is ideal for backend services or data processing scripts where you need to handle the response object directly in Python.

The code snippet below demonstrates a simple text generation request. It sends a prompt and returns the assistant's content. You can adjust parameters like temperature to control creativity, though the default settings usually work well for general tasks.

Node.js SDK Integration

For JavaScript or TypeScript environments, use the OpenAI Node.js SDK. Point the client to our endpoint to access the uncensored coding LLM capabilities. This is useful for web backends or serverless functions that need to generate text dynamically.

The following example shows how to initialize the client and make a request. Ensure you handle the response asynchronously. The API supports standard JSON responses, making it easy to parse the output in your Node.js application.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns data via Server-Sent Events (SSE), allowing you to display tokens as they are generated. This improves perceived latency for end-users, especially for longer outputs.

Token usage statistics are included in the final chunk of the stream. This allows you to track costs in real-time. Streaming is supported for all standard parameters, including function calling and JSON mode. Use this mode for chat interfaces where immediate feedback is critical.

Limits & Context Window

Each request can include up to 100,000 tokens in total (prompt plus completion). There is no separate output cap, and if you do not specify max_tokens, the response can run to the end of the window. This context window is sufficient for most coding and document analysis tasks without requiring complex chunking strategies.

Rate limits are set to 300 requests per minute and 8 concurrent requests per key. If you exceed these limits, you will receive a 429 error. Request bodies are capped at 8 MB. These limits ensure stable performance for all prepaid users. Errors and refusals do not consume your token balance, so you can experiment freely.

cURL

curl https://api.uncensoredlocalllm.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.uncensoredlocalllm.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.uncensoredlocalllm.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

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

SpecValue
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
API keyBearer token in the Authorization header
Base URLhttps://api.uncensoredlocalllm.top/v1
MethodsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
JSON modeJSON object mode via response_format json_object
StreamingSupported (stream: true), usage included at the end
Context window100,000 tokens (prompt + completion together)
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max bodyup to 8 MB per request
Parallel requestsup to 8 in parallel per key
Requests per minute300 requests per minute per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Volume bonus+5% from $50, +10% from $100, +15% from $200
Credit expiryno monthly fee; paid credit does not expire
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
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
Contentadult content allowed; sexual content involving minors is refused
AccountGoogle or e-mail and password
Keysone active key per account; a new key replaces the old one

Error reference

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_revokedno key, wrong key, or a key replaced by a newer one
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_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

How does billing work for this uncensored LLM online service?

You pay per token used. Input tokens cost $0.15 per 1M tokens, and output tokens cost $0.50 per 1M tokens. Credit is prepaid and never expires. Errors and refusals are free, so you only pay for actual text generated.

What payment methods are accepted for topping up credit?

We accept top-ups by crypto (USDT on TRC20, USDC on Base). You can top up any whole amount from $20 to $500. Larger amounts receive bonus credit.

Is the model suitable for uncensored coding tasks?

Yes, the model is tuned to answer without content refusals for lawful topics, including technical and coding queries. It does not reject standard programming questions or controversial technical topics. It is an open-weight model, not GPT or Claude.

Your key is one form away

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

Get API key