EN ▾

uncensoredmodel.ccHosted uncensored API for developers

Uncensored Model API Quickstart

Start generating text with our uncensored LLM using standard OpenAI-compatible endpoints. This guide covers authentication, basic requests, streaming, and handling limits.

Get API key

Authentication and Base URL

To begin, you need an API key from the dashboard. Our API is fully compatible with the OpenAI SDK ecosystem, requiring only a change to the base URL and your unique key. The base URL is https://api.uncensoredmodel.cc/v1. Your key authenticates all requests, allowing up to 300 requests per minute with a maximum of 8 concurrent requests per key. Keep your key secure; a new key replaces the old one if you generate a new one.

Each account uses one active key at a time. Ensure your client library is configured to point to our specific base URL rather than the default OpenAI endpoint. This ensures your requests are routed to our uncensored model infrastructure.

First Chat Request

Send a standard chat-completions request to generate text. The model ID is uncensored. You can specify a system message to define behavior or keep it simple with user prompts. The model does not refuse lawful adult, fictional, or controversial topics, making it ideal for unrestricted content generation.

Below is a basic cURL example. Replace YOUR_API_KEY with your actual key. This request demonstrates a simple text generation task.

Python SDK Integration

Using the official OpenAI Python library is the most straightforward way to integrate. Set the base_url and api_key attributes before making calls. This approach allows you to leverage existing OpenAI code patterns while benefiting from our uncensored model capabilities.

The example below shows how to initialize the client and send a simple prompt. Ensure you have the openai package installed. This method handles JSON serialization and HTTP transport automatically.

Node SDK Integration

For JavaScript and TypeScript developers, the OpenAI Node SDK works identically. Configure the client with our base URL and your API key. This allows you to integrate uncensored generation directly into your web or backend services without custom HTTP handling.

The following snippet demonstrates initializing the client and sending a request. This is suitable for both server-side Node.js environments and compatible edge runtimes.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) chunks. Each chunk contains partial text, allowing you to display results in real-time. The final chunk includes the total token usage for the request, which is essential for billing accuracy.

Streaming is useful for user interfaces where immediate feedback is required. Handle the stream events in your client to update the UI incrementally. This reduces perceived latency for long-form generation tasks.

Limits, Errors, and Context

The context window supports 100,000 tokens total (prompt + completion). There is no separate output cap per request, and if max_tokens is unset, the response can run to the end of the window. Requests exceeding 8 MB in body size will be rejected.

Common errors include 401 (invalid key), 402 (insufficient credit), and 429 (rate limit). Credit is charged only for successful token usage; errors and refusals are free. Prepaid credit never expires. If you encounter a double charge, use the Support page for a fix. Credit is not refunded for general use.

cURL

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

from openai import OpenAI

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

import OpenAI from "openai";

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

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)

Questions and answers

How do I top up my account?

Tops are accepted by crypto (USDT on TRC20, USDC on Base). You can top up any whole amount from $20 to $500. Bonus credit is added for larger amounts: +5% from $50, +10% from $100, and +15% from $200.

Is there a free trial?

New users get $0.50 of trial credit valid for 7 days, one per person. No card is needed to sign up or claim the trial. You can sign up using Google or email and password.

Does the model refuse content?

The model is uncensored and does not refuse lawful adult, fictional, or controversial topics. However, a hard limit always applies: sexual content involving minors is blocked and will be refused.

Your key is one form away

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

Specs at a glance

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

ParameterDetails
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Model IDuncensored
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.uncensoredmodel.cc/v1
API keyAuthorization: Bearer YOUR_KEY
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
StreamingYes — server-sent events; the last chunk carries token usage
Structured outputJSON object mode via response_format json_object
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Max context100,000 tokens (prompt + completion together)
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Request size8 MB request body
Requests per minute300 requests per minute per key
Concurrency8 requests at the same time per key
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Billingprepaid credit, charged by real token usage; errors and refusals are free
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Credit expiryno monthly fee; paid credit does not expire
Trial credit$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
AccountGoogle or e-mail and password
Content policyadult content allowed; sexual content involving minors is refused
Key managementone active key per account; a new key replaces the old one

Error codes

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

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_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds