- qwenuncensored.top
- Switch your client in three lines
Switch your client in three lines
Connect your existing Qwen-compatible client to our dedicated uncensored API endpoint. Replace your base URL and API key to start generating text with zero refusals for lawful adult content.
Base URL and Authentication
Our service implements the standard OpenAI-compatible interface, meaning you can use your existing Qwen API or Ollama API client code with minimal changes. You only need to update the base_url and provide a valid API key. Authentication is handled via the Authorization header using the Bearer scheme. Ensure you have generated a key from the dashboard; each account holds one active key at a time.
We do not offer image, audio, or embedding endpoints. This is a text-only API. If your client expects other response types, you may need to adjust your configuration. The model identifier you must send in your requests is uncensored.
Your First Request
Start by sending a simple chat completion request. This confirms your authentication is working and the model is responding. Use the standard v1/chat/completions endpoint. The model will return a text response based on your prompt. If you receive a valid response, you are ready to integrate our uncensored capabilities into your workflow.
Remember that we charge based on actual token usage. Errors and refusals (except for the hard minor content limit) do not consume your credit.
Python SDK Integration
Use the official OpenAI Python library to interact with our API. Configure the client with our base URL and your API key. Set the model to uncensored. You can control parameters like temperature and top_p to adjust the creativity of the output. This approach works seamlessly with existing Qwen API clients that use the same SDK structure.
Node.js SDK Integration
For JavaScript or TypeScript projects, use the openai npm package. Initialize the client with our endpoint and your key. The syntax mirrors the standard OpenAI client. This allows you to drop our uncensored model into your existing Node.js applications without rewriting your entire data-fetching layer. Ensure you handle the response stream if you are generating long texts.
Streaming Responses
We support Server-Sent Events (SSE) for streaming. This is useful for real-time user experiences. The API streams tokens as they are generated. Token usage metrics are included in the final chunk of the stream. This allows you to track consumption accurately even during long-running requests. Streaming does not affect your pricing or rate limits.
Limits, Errors, and Context Window
Our API has specific limits to ensure stability. You are allowed 300 requests per minute and 8 concurrent requests per key. The maximum request body size is 8 MB. The context window is 100,000 tokens total, with no separate output cap (if max_tokens is unset, the response can run to the end of the window). Common errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Errors are free, so you can retry without penalty.
cURL
curl https://api.qwenuncensored.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
from openai import OpenAI
client = OpenAI(base_url="https://api.qwenuncensored.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.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.qwenuncensored.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
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)Specs at a glance
Before you integrate, here is exactly what you get with a key.
| Spec | Value |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| API key | Bearer token in the Authorization header |
| Base URL | https://api.qwenuncensored.top/v1 |
| Context window | 100,000 tokens (prompt + completion together) |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Structured output | response_format: {"type": "json_object"} |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Sampling parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Requests per minute | 300/min per key |
| Parallel requests | up to 8 in parallel per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Max body | up to 8 MB per request |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Credit expiry | paid credit never expires, no subscription |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| 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 |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Sign-in | Google or e-mail and password |
| Key management | one active key per account; a new key replaces the old one |
| Content policy | adult content allowed; sexual content involving minors is refused |
Error reference
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 | 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 | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
Is this the official Qwen API?
No, we are an independent service. We host an uncensored open-weight model and provide an OpenAI-compatible interface. We do not serve the official Qwen, Llama, or other vendor models.
How do I pay for usage?
We accept top-ups by crypto (USDT on TRC20, USDC on Base). Minimum top-up is $20. Credit never expires, and errors/refusals do not consume your balance.
What is the context window size?
The total context window is 100,000 tokens. There is no separate output cap, and if you do not specify max_tokens, the response can run to the end of the window.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key