EN ▾

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.

Get API key

Specs at a glance

If your tool speaks the OpenAI API, these are the details that matter.

ParameterDetails
CompatibilityOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.qwenuncensored.com/v1
AuthenticationBearer token in the Authorization header
EndpointsPOST /v1/chat/completions · GET /v1/models
Modeluncensored
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Max context100,000 tokens (prompt + completion together)
Structured outputresponse_format: {"type": "json_object"}
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
SSE streamingSupported (stream: true), usage included at the end
Rate limit300/min per key
Concurrency8 requests at the same time per key
Request size8 MB request body
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Top-upcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
How you payprepaid 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 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
Bonus credit+5% from $50, +10% from $100, +15% from $200
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Accountsign in with Google or with e-mail + password
Key managementone 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.

HTTPTypeWhat to do
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
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 · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly