First request in five minutes
Connect your OpenAI-compatible client to qwen uncensored in under five minutes using your prepaid crypto key. This guide covers authentication, chat requests, streaming, and tool usage with zero monthly commitments.
Authentication & Base URL
Every request to the qwen uncensored API requires a valid API key passed in the Authorization header. You obtain this key immediately after signing up via Google or email on the dashboard. Your base URL is https://api.qwenuncensored.cc/v1. Update your client configuration to point to this endpoint and inject your key. This setup works with any standard OpenAI SDK or HTTP client. If the key is missing or invalid, the server rejects the request. No phone number or credit card is required to generate your initial key, making integration fast for developers who prefer prepaid crypto billing.
Chat Completions Endpoint
Send text prompts and receive text responses using the standard /v1/chat/completions endpoint. The model identifier is uncensored. You can control behavior via parameters like temperature, top_p, stop, and seed. Requests are charged based on real token usage; errors and refusals do not consume your prepaid credit. The maximum context window is 100,000 tokens for the combined prompt and completion. If you do not specify max_tokens, the response can run to the end of the window.
curl https://api.qwenuncensored.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."}]
}'
Streaming Responses (SSE)
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) as tokens are generated. This is ideal for real-time UI updates. Token usage and billing data are included in the final chunk of the stream. This openai compatible uncensored interface ensures you can integrate streaming without custom parsing logic, provided your client supports standard SSE protocols. Streaming does not affect the rate limits or pricing structure of your prepaid account.
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
Define tools in your request to allow the model to call external functions. Specify tool_choice to control whether the model uses tools automatically or is forced to. This feature supports complex workflows where the API acts as a reasoning engine. The model returns structured tool calls that your application can execute. This capability is part of the core qwen api offering, allowing you to build agents without switching to a different vendor or paying for extra model routing.
from openai import OpenAI
client = OpenAI(base_url="https://api.qwenuncensored.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)
JSON Mode Response Format
For applications requiring strict schema validation, set response_format to {"type": "json_object"}. The model will constrain its output to valid JSON. This is useful for parsing structured data or generating configuration files. The uncensored api handles JSON mode efficiently within the standard chat endpoint. Ensure your prompt clearly instructs the model to adhere to the format, as JSON mode influences the probability distribution of tokens but does not guarantee schema compliance without validation in your client code.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.qwenuncensored.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);
Rate Limits & Constraints
Your API key is limited to 300 requests per minute and 8 concurrent connections. The maximum request body size is 8 MB. If you send an invalid key, you receive a 401 error. If your prepaid credit is exhausted, the server returns a 402 error. Exceeding the rate limits triggers a 429 error. These limits are per key, and you may generate a new key to replace the old one if needed. Errors and refusals are free but are counted toward your rate limit, so monitor your usage to avoid throttling during high-volume inference tasks.
Under the hood: specs
If your tool speaks the OpenAI API, these are the details that matter.
| Spec | Value |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Model | uncensored |
| Base URL | https://api.qwenuncensored.cc/v1 |
| API key | Bearer token in the Authorization header |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Max context | 100,000 tokens (prompt + completion together) |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| JSON mode | JSON object mode via response_format json_object |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Rate limit | 300 requests per minute per key |
| Parallel requests | up to 8 in parallel per key |
| Request size | up to 8 MB per request |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Credit expiry | paid credit never expires, no subscription |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| 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 |
| Keys | one key per account, regenerate any time (the old one stops working) |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Account | Google or e-mail and password |
Errors and what to do
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
Does the uncensored model refuse content?
The model is tuned to answer without refusals for lawful adult use, including controversial or fictional topics. The only hard content limit that always applies is the prohibition of sexual content involving minors, which is refused regardless of other settings.
How does prepaid billing work?
You top up by crypto (USDT on TRC20, USDC on Base) with amounts between $20 and $500. You receive a 5% bonus for $50+ and 10% for $100+. Credit never expires, and you are charged only for actual tokens used in successful completions.
Can I use this with the official OpenAI SDK?
Yes. The API is fully OpenAI-compatible. You simply change the base URL to https://api.qwenuncensored.cc/v1 and provide your API key. The model ID to use is uncensored. All standard parameters like temperature and top_p work as expected.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.