EN ▾
Uncensored LLM API for Developershttps://api.uncensoredai.top/v1
Get API key

Uncensored AI API Quickstart Guide

Get started with the Uncensored AI API in minutes. This guide covers authentication, request formats, and SDK integration for our uncensored LLM API.

Base URL and Authentication

To start using the uncensored AI API, point your client to the base URL: https://api.uncensoredai.top/v1. This endpoint is fully compatible with the OpenAI SDKs, meaning you only need to update the base URL and provide your API key. Authenticate by passing your uncensored AI API key in the Authorization header as a Bearer token.

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

Your key is generated immediately after signup via Google or email. Keep it secure; it grants full access to your prepaid credit. If you lose your key, generate a new one, which will replace the old active key for your account.

The /v1/chat/completions Endpoint

The core of the uncensored LLM API is the POST /v1/chat/completions endpoint. Send a JSON payload containing your system prompt, user messages, and desired parameters. The model ID to use is uncensored. This dedicated model is tuned to answer without content refusals for lawful adult use, making it ideal for creative or unrestricted text generation.

Unlike aggregators, we do not route between multiple vendors. You get consistent behavior from a single, open-weight model. The endpoint accepts standard fields like model, messages, and temperature. Errors and refusals do not consume your credit, ensuring you only pay for actual token usage.

Request Parameters: Temperature and Top P

Control the model's creativity and determinism using standard parameters. temperature affects randomness; higher values yield more diverse outputs, while lower values make responses more focused. top_p filters tokens by cumulative probability. These parameters work together to shape the tone of your uncensored AI interactions.

You can also set max_tokens to limit output length. If you do not set it, the response can run to the end of the window. The total context window is 100,000 tokens, including both the prompt and the completion. Use stop sequences to halt generation early if needed.

Response Format: Streaming and JSON

The API supports streaming via Server-Sent Events (SSE) for real-time token delivery. This is useful for building chat interfaces where you want to display tokens as they are generated. The final chunk contains the total token usage for the request. For structured data, use response_format: {"type": "json_object"} to force JSON output.

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)

Function calling (tools) is also supported. Define your tools in the request, and the model will return structured arguments that you can parse and execute. This allows for complex workflows without leaving the text API.

SDK Examples (Python/Node.js)

Integrating is straightforward if you use the official OpenAI SDKs. Simply configure the client with our base URL and your key. The SDK handles retries and parsing automatically.

from openai import OpenAI

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

import OpenAI from "openai";

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

Both examples demonstrate basic text generation. Replace the placeholder API key with your actual key. The code works identically for both Python and Node.js environments, leveraging the same underlying protocol. This ensures a low learning curve for developers already familiar with OpenAI's ecosystem.

Model Details, Limits, and Errors

Our uncensored API has specific limits: 300 requests per minute per key and 8 concurrent requests at the same time. The maximum request body size is 8 MB. If you exceed the rate limit, you will receive a 429 error. Authentication failures return 401, and insufficient funds return 402.

Credit is prepaid and never expires. Errors and refusals are free. Note that sexual content involving minors is always refused. For other content, the model is highly permissive. If you encounter issues, contact support for credit adjustments. The model is not GPT, Claude, or any other vendor's model; it is a dedicated open-weight model run on our servers.

Questions and answers

How much does the uncensored AI API cost?

The uncensored AI API costs $0.15 per 1M input tokens and $0.50 per 1M output tokens. You pay only for what you use, with no monthly subscription. Credit is topped up via crypto and never expires.

Is the uncensored AI API key shared with other users?

No, each account has one active API key that is unique to you. You can generate a new key if needed, which replaces the old one. The key provides access to your dedicated prepaid credit.

What is the context window size?

The total context window is 100,000 tokens, including both the prompt and the completion. You can set max_tokens, or leave it unset and let the response run to the end of the window. This allows for long conversations or large document processing.

Your key is one form away

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

Get API key

API specifications

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

ParameterDetails
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
EndpointsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
Base URLhttps://api.uncensoredai.top/v1
AuthenticationBearer token in the Authorization header
JSON modeJSON object mode via response_format json_object
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Context window100,000 tokens (prompt + completion together)
SSE streamingYes — server-sent events; the last chunk carries token usage
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Parallel requests8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Rate limit300/min per key
Request sizeup to 8 MB per request
Credit expiryno monthly fee; paid credit does not expire
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Volume bonus+5% from $50, +10% from $100, +15% from $200
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
Accountsign in with Google or with e-mail + password
Keysone key per account, regenerate any time (the old one stops working)
Contentuncensored for adults; the only hard rule: no sexual content involving minors

Errors and what to do

Errors come back as JSON with a stable type; failed and refused requests are not billed.

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_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly