EN ▾
Get API key

Uncensored AI Models API Documentation

Integrate a single, uncensored large language model into your application via a standard OpenAI-compatible endpoint. This API provides transparent prepaid token pricing and crypto billing for developers who need text generation without content refusals.

https://api.uncensoredaimodels.top/v1uncensored

Base URL and Authentication

Connect to the uncensored AI models API by setting your base URL to https://api.uncensoredaimodels.top/v1. The endpoint supports standard OpenAI SDKs and any compatible client. You authenticate requests using a Bearer token in the Authorization header. Create your key on the Get API key page via Google or email; the key is displayed immediately and is unique per account.

  • Header: Authorization: Bearer YOUR_API_KEY
  • Base URL: https://api.uncensoredaimodels.top/v1

There is no web chat interface; this is a programmatic endpoint. If your key is invalid, you receive a 401 error. If you have no prepaid credit, you receive a 402 error. Errors and refusals do not consume tokens.

Send a Chat Completion Request

Send text in and receive text out using the POST /v1/chat/completions endpoint. This uncensored LLM is optimized for generating responses without blocking lawful adult, controversial, or security-research topics. The model ID is uncensored. It is an open-weight model run on our servers, distinct from GPT, Claude, or Llama.

Configure the request with messages, model ID, and desired parameters. The system charges based on actual token usage. Input tokens cost $0.15 per million, and output tokens cost $0.50 per million. Errors are free.

curl https://api.uncensoredaimodels.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 SDK Integration

Use the official OpenAI Python library to integrate the uncensored AI model. Set the base_url to our endpoint and provide your API key. This approach allows you to leverage existing ecosystem tools while switching to an uncensored backend. The model handles context up to 100,000 tokens combined between prompt and completion.

Ensure your code handles the response structure correctly. The API returns standard OpenAI-format JSON objects, making migration straightforward for developers already familiar with the OpenAI SDK pattern.

from openai import OpenAI

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

For JavaScript environments, use the openai Node package. Point the client to our base URL. This uncensored model supports streaming, JSON mode, and function calling. Configure the client with your API key and the model ID uncensored.

The Node SDK handles pagination and response parsing automatically. You can adjust parameters like temperature and top_p directly in the request object. This method is ideal for serverless functions or backend services requiring reliable text generation without external dependencies on other vendors.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.uncensoredaimodels.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 Responses via SSE

Streaming is supported via Server-Sent Events (SSE). Enable streaming by setting stream: true in your request. The API returns a stream of chunks. Token usage information (input and output counts) is included in the final chunk of the stream, allowing you to track costs accurately in real-time.

Streaming reduces perceived latency for long outputs. Each chunk contains partial content. Handle stream errors gracefully, as network interruptions can truncate the response. The uncensored model supports streaming just like standard OpenAI endpoints.

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, Errors, and Context

Each API key allows 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 you do not set max_tokens, the response can run to the end of the window. Set max_tokens only if you want to cap the output.

Common errors include 401 (invalid key), 402 (insufficient credit), and 429 (rate limit exceeded). Credit never expires. Top up by crypto (USDT on TRC20, USDC on Base). New accounts receive $0.50 trial credit valid for 7 days. Claim this credit with one click on your API key page. No card is needed for the trial.

Questions and answers

Is this a chat website or an API?

This is a programmable API endpoint. There is no web chat interface or app. You interact with the uncensored LLM via HTTP requests using standard SDKs. The site provides documentation and billing, not a user-facing chat window.

What content is blocked?

The model is uncensored for lawful adult, fictional, and controversial topics. However, a hard limit applies: sexual content involving minors is always refused. Requests containing this content will be blocked without consuming tokens.

How do I pay for tokens?

Payments are prepaid and made by crypto (USDT on TRC20, USDC on Base). You can top up in amounts from $20 to $500. You receive a +5% bonus for $50+, +10% for $100+, and +15% for $200+. Credit never expires and is not refunded.

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 facts in one table

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

ItemValue
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Modeluncensored
Base URLhttps://api.uncensoredaimodels.top/v1
MethodsPOST /v1/chat/completions · GET /v1/models
AuthenticationAuthorization: Bearer YOUR_KEY
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
SSE streamingYes — server-sent events; the last chunk carries token usage
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Structured outputJSON object mode via response_format json_object
Context window100,000 tokens, input and output combined
Concurrencyup to 8 in parallel per key
Requests per minute300/min per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request sizeup to 8 MB per request
Subscriptionno monthly fee; paid credit does not expire
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
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
How you payprepaid credit, charged by real token usage; errors and refusals are free
Keysone key per account, regenerate any time (the old one stops working)
Sign-insign in with Google or with e-mail + password
Contentadult content allowed; sexual content involving minors is refused

Error codes

The type field is stable, the message is for humans. Errors cost nothing.

HTTPTypeWhat to do
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
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_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busymodel busy — retry in a few seconds