No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).
Get API keyKey points
- Change three values in an OpenAI client: base URL, key and model name uncensored.
- The context window is 100,000 tokens; limits are 8 concurrent and 300 per minute on a full key.
- A typical 2,000-in, 600-out request costs $0.0006.
- Check whether you need the named Qwen 2.5 weights; if you do, this is not the service for that.
Read this before you switch
Start with the honest part. This service does not offer a model called Qwen 2.5 and does not resell Alibaba's endpoint. It runs a single open-weight model, operated by an independent provider and tuned to answer without content refusals for lawful adult use. The only model ID is uncensored. If your project depends on one exact release of a named model, for reproducible research or a client contract, use a service or a local setup that names the weights you need.
If what you actually need is a hosted chat model that speaks the OpenAI protocol, accepts 100,000 tokens of context, supports tools and streaming, and does not refuse ordinary adult requests, the rest of this page applies. The model is text only: no images, audio, video, embeddings or fine-tuning.
Another point on naming: the Qwen name here describes the topic of the site, which is an independent guide, and not an affiliation. Nothing on this page should be read as an announcement from the model's original developers.
First request with curl
Three things differ from a call to OpenAI: the host, the key and the model name. The path stays /chat/completions under /v1, and authentication is a bearer token.
curl https://api.uncensoredqwen.top/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "system", "content": "You answer in two sentences."},
{"role": "user", "content": "Explain what a mutex is."}
],
"temperature": 0.7,
"max_tokens": 200
}'The response is the usual JSON with choices[0].message.content and a usage block listing prompt and completion tokens. The headers carry X-Request-Id for support questions, X-Balance-USD with your remaining credit, and the rate limit headers. Reading the balance header from your own code is a cheap way to alert yourself before credit runs out.
To confirm the key works without spending tokens, list models:
curl https://api.uncensoredqwen.top/v1/models \
-H "Authorization: Bearer YOUR_KEY"The GET /v1/models endpoint is the second and last method this API exposes. Chat completions is the one that does the work.
Python: streaming with the openai package
Install the SDK with pip install openai. Nothing else is needed, no vendor library. Streaming is worth enabling in anything a person watches, because the first words appear while the rest is still being generated.
from openai import OpenAI
client = OpenAI(
base_url="https://api.uncensoredqwen.top/v1",
api_key="YOUR_KEY",
)
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Write a four-line poem about a night train."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print()The guard on chunk.choices is there because the final chunk carries usage and may have an empty choices list. A stream holds one of your concurrency slots until it closes, so make sure you consume it fully or close it on errors.
Node and JSON mode
The Node SDK takes the same three values. The example also turns on JSON mode, which constrains the reply to valid JSON. Mention the shape you want in the prompt as well, since the mode checks syntax and not your key names.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.uncensoredqwen.top/v1",
apiKey: process.env.API_KEY,
});
const res = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Give me three names for a hiking app." }],
response_format: { type: "json_object" },
});
console.log(res.choices[0].message.content);Sampling settings pass through: temperature, top_p, stop, seed and the frequency and presence penalties. Tool calling works too, and the walkthrough in the API docs shows the request shape. The body limit is 8 MB, which is far more than a 100,000 token prompt needs in plain text.
Moving existing code over
Most migrations are an environment change. If your app reads OPENAI_BASE_URL and OPENAI_API_KEY, set them and change the model string. Tools such as SillyTavern let you add a custom OpenAI-compatible endpoint, and the same idea applies to other clients that accept a base URL.
- Create an account and a key on the API key page.
- Set the base URL to the address in the code above, ending in
/v1. - Replace the model name with
uncensored. - Remove parameters your old provider added outside the OpenAI spec, since unknown fields may be ignored or rejected.
- Run your own prompts side by side with the old setup and compare answers before you move traffic.
Step five is not optional. Prompts tuned for one model often need small edits for another, especially system prompts that rely on a specific refusal style or format habit.
Rate limits and retries
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. Past a limit you get HTTP 429, and the error code tells you which one: rate_limited for requests per minute, concurrency for too many at once. On temporary overload you also get 429 with a Retry-After: 5 header. Because the same status covers all three, read the header first and fall back to exponential backoff.
import random
import time
import openai
from openai import OpenAI
client = OpenAI(
base_url="https://api.uncensoredqwen.top/v1",
api_key="YOUR_KEY",
max_retries=0, # we handle 429 ourselves
)
def ask(messages, tries=5):
for attempt in range(tries):
try:
r = client.chat.completions.create(model="uncensored", messages=messages)
return r.choices[0].message.content
except openai.RateLimitError as exc:
wait = float(exc.response.headers.get("Retry-After", 2 ** attempt))
time.sleep(wait + random.random())
raise RuntimeError("still rate limited after retries")For batch jobs, a semaphore sized to 8 keeps you under the concurrency cap without ever seeing an error, and a small sleep between launches handles the per-minute limit. At 300 per minute you can start a request every 200 milliseconds on average.
What it costs per request
Input costs $0.15 per 1M tokens and output $0.50 per 1M. Take a chat turn with 2,000 input tokens and 600 output tokens: input is 2,000 / 1,000,000 x $0.15 = $0.0003, output is 600 / 1,000,000 x $0.50 = $0.0003, so one request costs $0.0006. Ten thousand of them cost $6.00. The $0.50 trial credit covers about 833 such requests.
The extreme case is a full window. A prompt of 100,000 input tokens costs 0.1M x $0.15 = $0.015 before any output. Keep that in mind for long chat histories, where every turn resends the past. Summarize or trim old messages and the bill falls with them.
There is no subscription. You prepay any whole amount from $20 to $500 and spend it down; a bonus of 5% applies from $50, 10% from $100 and 15% from $200. You can pay by by crypto (USDT on TRC20, USDC on Base). Credit never expires and refused or failed requests are not charged. The pricing page has the full picture. Prompts are not used for training.
Sampling settings and common errors
For answers that should be stable, such as extraction or classification, use a temperature near 0 and set seed when you need to reproduce a result. For writing and conversation, 0.7 to 1.0 is a normal range. Use top_p or temperature to shape randomness, and avoid pushing both to extremes at once, because the effects stack and are hard to reason about.
max_tokens is optional here. If you leave it out, the completion may use whatever remains of the 100,000 token window. That is convenient for long stories and risky for a loop that could run away, so set a ceiling in any automated job. The same applies to stop sequences if your prompt format has a natural end marker.
The errors you are most likely to meet:
- 401. The key is missing or wrong. Check that the header reads
Authorization: Bearerfollowed by the key, with no stray quotes or newline from a copied environment variable. - 404 or HTML back. The base URL is missing
/v1, or the SDK added a path twice. Print the final URL before suspecting the service. - 429. You crossed a limit, covered in the previous section.
- Request too large. Bodies above 8 MB are rejected, and a prompt plus completion budget above 100,000 tokens will not fit. Trim the history.
When you write to support, include the X-Request-Id value from the response headers. It lets the team find the exact request without asking you to paste your prompt. The support page lists how to reach them.
Is it the right choice for you
It fits when you want an OpenAI-shaped endpoint, pay-per-token billing with no minimum beyond the first $20 top-up, and a model that does not refuse lawful adult content. It fits less well when you need a named model version, image or audio input, embeddings, or a contractual uptime figure. This page makes no performance or uptime claims, so test with the trial credit and measure latency from your own servers. For a wider comparison of ways to reach Qwen-family models, see Qwen API options compared. One rule applies without exception: no sexual content involving minors.
