EN ▾
Get API key

Quickstart: Use the Uncensored Model API

Get started with the Uncensored Model API in minutes using standard OpenAI-compatible clients. This quickstart covers authentication, chat requests, streaming, and tool usage for the dedicated uncensored LLM.

Base URL and Authentication

Start by setting your base URL to https://api.uncensoredmodel.top/v1. You only need one API key, generated instantly upon signup via Google or email. Include this key in the Authorization header as a Bearer token. The API serves a single uncensored large language model identified by the ID uncensored. Unlike multi-model aggregators, this endpoint is dedicated to one open-weight model tuned for minimal content refusals, making it ideal for developers who need consistent behavior without routing complexity.

  • Base URL: https://api.uncensoredmodel.top/v1
  • Auth: Authorization: Bearer YOUR_API_KEY
  • Model ID: uncensored

First Request

Send a standard chat completion request to test the connection. The API accepts text input and returns text output. You can control the response style using parameters like temperature and top_p. The model handles context windows up to 100,000 tokens, allowing for substantial prompt lengths. If you do not specify a max output limit, the response can run to the end of the window. Errors and refusals do not consume your prepaid credit, so testing is risk-free.

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

Using the official OpenAI Python library is the most straightforward way to integrate. Configure the client with the custom base URL and your API key. This approach ensures compatibility with existing codebases that already target OpenAI endpoints. The uncensored AI model responds to standard message structures, making migration from other providers trivial for text-only workflows. Remember that this is a text-only API; there are no embeddings or image generation endpoints to manage.

from openai import OpenAI

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

For JavaScript and TypeScript developers, the Node SDK works identically to the Python version. Point the client to the uncensored model API base URL. This is useful for server-side rendering or backend logic where you need an uncensored LLM to process data without external moderation layers. The API supports standard JSON payloads, so you can easily integrate it into Express or Fastify applications. The prepaid credit model means you only pay for what you use, with no monthly subscription fees.

import OpenAI from "openai";

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

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE), allowing you to process tokens as they are generated. This reduces perceived latency for end-users and is essential for chat-like interfaces. The final chunk of the stream includes the total token usage statistics, so you can track costs accurately in real-time. Streaming does not change the pricing model; you still pay per 1M input and output tokens.

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 Errors

Each API key is limited to 300 requests per minute and 8 concurrent connections. If you exceed these limits, the API returns a 429 status code. Authentication errors (401) indicate an invalid key, while 402 errors mean your prepaid credit is exhausted. The maximum request body size is 8 MB. Context is measured as prompt plus completion combined, up to 100,000 tokens. Errors and content refusals (except for the hard limit on minor sexual content) are free, so you won't be charged for failed requests.

Specs at a glance

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

SpecValue
CompatibilityOpenAI Chat Completions schema; official openai SDKs work unchanged
EndpointsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
Base URLhttps://api.uncensoredmodel.top/v1
AuthenticationAuthorization: Bearer YOUR_KEY
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
JSON modeJSON object mode via response_format json_object
StreamingSupported (stream: true), usage included at the end
Max context100,000 tokens (prompt + completion together)
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Rate limit300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrency8 requests at the same time per key
Max body8 MB request body
Credit expiryno monthly fee; paid credit does not expire
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
Billingprepaid credit, charged by real token usage; errors and refusals are free
Priceinput $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
Keysone active key per account; a new key replaces the old one
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
Sign-insign in with Google or with e-mail + password

Errors and what to do

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

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_creditbalance is empty — top up, requests resume at once
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_busymodel busy — retry in a few seconds

Questions and answers

Does the uncensored model support image generation?

No, this API is strictly for text. It serves a single large language model for chat completions. There are no embeddings, audio, or image generation endpoints available.

How is billing calculated?

You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens. Credit is prepaid, never expires, and errors or refusals do not consume funds.

What happens if I exceed the rate limit?

You will receive a 429 status code. The limit is 300 requests per minute per key, with a maximum of 8 concurrent requests allowed simultaneously.

Your key is one form away

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

Get API key