Quickstart for Qwen users
Drop your existing OpenAI SDK client into our endpoint to run the uncensored model instantly. Change the base URL, update the key, and start generating text without content refusals.
Base URL & Authentication
Our API follows the OpenAI chat-completions format. Point your client to https://api.qwenuncensored.com/v1 and pass your API key in the Authorization: Bearer <key> header. You receive one key per account; generating a new key invalidates the previous one. The uncensored model ID is the only model served, so you can hardcode it or query GET /v1/models to confirm availability.
First Request
Send a standard chat completion request. The endpoint accepts messages in the OpenAI array format and returns text. All requests are charged based on token usage, while errors and refusals remain free. Use the following curl command to verify connectivity and model behavior.
curl https://api.qwenuncensored.com/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."}]
}'Replace <YOUR_API_KEY> with your generated key. If you receive a 401, verify your key. A 402 indicates insufficient prepaid credit. The model ID is strictly uncensored.
Python SDK
Integrate with the official OpenAI Python library by overriding the base URL. This allows you to use familiar methods like client.chat.completions.create. Pass the API key and the specific base URL for our uncensored endpoint. This approach ensures your code works without custom client logic.
from openai import OpenAI
client = OpenAI(base_url="https://api.qwenuncensored.com/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)Set model="uncensored" to ensure you are hitting the correct endpoint. The SDK handles JSON serialization and streaming automatically. You can adjust parameters like temperature or top_p directly in the call.
Node SDK
For JavaScript or TypeScript environments, use the OpenAI npm package. Configure the base URL to point to our hosted API. This maintains compatibility with existing OpenAI-compatible clients while routing requests to our uncensored model. Pass your API key via the environment variable or explicitly in the client configuration.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.qwenuncensored.com/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);The response structure matches the OpenAI standard. You can parse the content directly or handle errors using standard try-catch blocks. The model ID remains uncensored for all completions.
Streaming Responses
Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE). Each chunk contains partial text. Token usage metadata is included in the final chunk of the stream. This allows you to display text in real-time while tracking cost accurately.
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)Handle the stream events to process text as it arrives. The final chunk provides the total token count for the request, ensuring accurate billing. Errors during streaming are handled via standard HTTP error codes.
Rate Limits & Limits
Each API key supports 300 requests per minute and 8 concurrent requests. The request body limit is 8 MB. The context window is 100,000 tokens total (prompt plus completion). There is no separate output cap, and if max_tokens is unset, the response can run to the end of the window. Rate-limited requests (429) do not consume credits. Errors and refusals are also free. Credit never expires, and prepaid amounts are applied to real token usage.
Questions and answers
What happens if I exceed my prepaid credit?
Requests will return a 402 error until you top up. Credit is charged only for successful token usage, and errors are free. You can top up by crypto (USDT on TRC20, USDC on Base) via checkout.
Is this the official Qwen model?
No. We serve a dedicated uncensored open-weight model on our own servers. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, Llama, or any other vendor's model. It is tuned to answer without refusals for lawful adult use.
How do I handle rate limits?
You are limited to 300 requests per minute and 8 concurrent requests per key. Rate-limited requests (429) do not consume your prepaid credit. Implement exponential backoff in your client to handle retries efficiently.
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
If your tool speaks the OpenAI API, these are the details that matter.
| Parameter | Details |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.qwenuncensored.com/v1 |
| Authentication | Bearer token in the Authorization header |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Max context | 100,000 tokens (prompt + completion together) |
| Structured output | response_format: {"type": "json_object"} |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| SSE streaming | Supported (stream: true), usage included at the end |
| Rate limit | 300/min per key |
| Concurrency | 8 requests at the same time per key |
| Request size | 8 MB request body |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Token prices | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Credit expiry | no 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 |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Account | sign in with Google or with e-mail + password |
| Key management | one key per account, regenerate any time (the old one stops working) |
When a request fails
Every error is JSON with a type you can switch on. You are never charged for an error.
| HTTP | Type | What to do |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | temporary overload, retry shortly |