EN ▾

The uncensored LLM API for developers

Get API key

Quickstart for Qwen users

Get your first uncensored response in under five minutes. This guide covers the OpenAI-compatible endpoints, SDK integration, and streaming setup for the uncensored qwen model.

Installation

Start by installing the official SDK for your language. These libraries handle authentication, retries, and JSON parsing automatically. For Python, use pip install openai. For Node.js, run npm install openai. You do not need a specific version unless stated by your project constraints; the standard OpenAI-compatible clients work directly with our base URL.

Authentication

Generate your API key via the Get API key page using Google or email. Pass this key as the Authorization header or via the SDK client configuration. The base URL for all requests is https://api.uncensoredqwen.cc/v1. Ensure your client points to this URL instead of the default OpenAI endpoint. Keep your key secure; it grants full access to your prepaid credit.

Chat Completions

Send a simple text request to test connectivity. The model ID is uncensored. This returns a standard completion response. Use this to verify your key and base URL configuration before moving to complex payloads.

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

Check the response for a valid choices array. If you receive an error, verify your key and ensure your account has sufficient prepaid credit. The model ID must match exactly.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Token usage details appear in the final chunk. This is ideal for real-time UI updates. Parse each chunk to accumulate the full response text.

from openai import OpenAI

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

Handle partial content carefully. The final chunk contains the finish reason and token counts. Do not assume all chunks contain text; some may contain metadata.

Function Calling

Define tools in your request payload. The model returns tool calls in the response. You must execute these tools and send the results back to the API to continue the conversation. This supports standard OpenAI tool formats.

import OpenAI from "openai";

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

Ensure your tool definitions match the expected schema. The model may return multiple tool calls in a single response. Process them sequentially or in parallel based on your application logic.

JSON Mode

Force structured output by setting response_format: { "type": "json_object" }. The model returns valid JSON only. This is useful for parsing data or generating configuration files. Validate the JSON on your side, as the model may occasionally produce invalid syntax despite the constraint.

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)

Limits, Errors, and Context

Your context window is 100,000 tokens total. There is no separate output cap. The rate limit is 300 requests per minute. If you exceed this, the API rejects requests. Errors and refusals are free. Hard content limits apply to sexual content involving minors. Check your prepaid balance before heavy usage.

Technical reference

A quick checklist for developers: format, limits, features, billing.

ItemValue
CompatibilityOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.uncensoredqwen.cc/v1
MethodsPOST /v1/chat/completions · GET /v1/models
AuthenticationBearer token in the Authorization header
Modeluncensored
Context window100,000 tokens (prompt + completion together)
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
StreamingYes — server-sent events; the last chunk carries token usage
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Structured outputresponse_format: {"type": "json_object"}
Parallel requests8 requests at the same time per key
Request sizeup to 8 MB per request
Requests per minute300 requests per minute per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Trial credit$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
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
Bonus credit+5% from $50, +10% from $100, +15% from $200
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Credit expirypaid credit never expires, no subscription
Sign-insign in with Google or with e-mail + password
Content policyuncensored for adults; the only hard rule: no sexual content involving minors
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.

StatusTypeReason
400bad_requestmalformed request or too long for the context window
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_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

What happens if I run out of credit?

The API rejects requests with an error indicating insufficient funds. Errors and refusals do not consume credit. You can top up by crypto (USDT on TRC20, USDC on Base). Credit never expires, so you can add funds anytime.

Does the model refuse all adult content?

No. The model is uncensored and answers without refusals for lawful adult, fictional, or controversial topics. The only hard limit is sexual content involving minors, which is always blocked.

Can I use the same key for multiple services?

Yes. One active key per account. You can use it for Python, Node, or other OpenAI-compatible clients. The key is shown immediately after signup. No phone number is required.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.