EN ▾
Get API key

Qwen API Pricing and a Prepaid Uncensored Alternative

Most searches for qwen api pricing end in a table of per-token rates that will be out of date within months. This page gives you the method for comparing any provider, and the exact numbers for the prepaid alternative on this site.

Updated

Balance scale weighing small token cubes against a large block, illustrating per-token API price comparison

Where the official numbers live

I am not going to quote Alibaba Cloud's rates here. Per-token prices, free quotas, tiers by context length and regional differences all change, and a number copied into an article goes stale quietly. For qwen api pricing from the official source, open the vendor's current pricing page and write down four things: the input price, the output price, whether prices change with prompt length, and whether there is a minimum spend or a free quota that expires.

What this page can do reliably is show the other side of the comparison. This site is not the official Qwen service and not a router across vendors. It sells access to one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use, through an OpenAI-compatible API. Its pricing is simple enough to fit in a paragraph, and the Qwen API guide on this site explains how the two kinds of service differ.

The rates here

ItemRate
Input tokens$0.15 per 1M
Output tokens$0.50 per 1M
Subscriptionnone
Credit expirynever
Failed or refused requestsnot charged
Context window100,000 tokens, prompt plus completion

Billing is pay as you go from prepaid credit. You add credit, requests draw it down by the token, and the balance is returned in the X-Balance-USD response header so your own code can watch it. The two token rates above are the whole price list.

The pricing page holds the live version of these numbers. If this article and that page ever disagree, trust the pricing page.

Put numbers on your own workload

Rates alone do not tell you what you will spend. The unit that matters is cost per request, which is input tokens times the input rate plus output tokens times the output rate. Here are three workloads worked through.

A support-style chatbot

Each turn sends 1,500 input tokens (instructions plus recent history) and returns 600 output tokens. Cost per turn: 1,500 x $0.15 / 1M = $0.000225, and 600 x $0.50 / 1M = $0.0003, so $0.000525. For 10,000 turns a month: input is 15M tokens, which is $2.25, and output is 6M tokens, which is $3.00. Total $5.25.

A batch summarizer

Each job sends a 12,000-token document and returns a 400-token summary. Input: 12,000 x $0.15 / 1M = $0.0018. Output: 400 x $0.50 / 1M = $0.0002. That is $0.002 per document, so 5,000 documents cost $10.

A long-context session

A single request that fills 98,000 tokens of input and returns 2,000 tokens costs 98,000 x $0.15 / 1M = $0.0147 plus 2,000 x $0.50 / 1M = $0.001, so $0.0157. Large prompts are cheap per call, but they add up if you repeat them every turn of a long chat.

Notice the shape in all three: output tokens cost a little over three times as much as input tokens, yet input usually dominates the token count. Chat applications resend history on every turn, so trimming history saves more than shortening replies.

Top-ups and bonuses

Credit is added in whole dollar amounts from $20 to $500. Bigger top-ups carry a bonus on the credit you receive.

Top-upBonusCredit received
$20none$20.00
$505%$52.50
$10010%$110.00
$20015%$230.00
$50015%$575.00

Payment is in crypto: USDT on TRC20 or USDC on Base. Because credit never expires, a larger top-up is a simple way to lower the effective rate, with no penalty if you spend it slowly. For the chatbot example above at $5.25 a month, a $20 top-up lasts a little over three and a half months at that volume.

New users can try the service first. After sign-up, one click on the API key page claims $0.50 of trial credit, one per person, valid for 7 days, with no payment needed. At $0.000525 a turn, that is around 950 chat turns of the size above.

How to compare this with another provider fairly

When you put two price lists side by side, use a single workload and compute both totals. Follow these steps with your own numbers:

  1. Measure a typical request: input tokens and output tokens. Your current provider's usage field returns both.
  2. Multiply each count by the provider's rate per token (the rate per 1M divided by 1,000,000) and add the two results.
  3. Add anything that is not a per-token rate: minimum spend, expiring credit, a subscription fee, or fees on failed calls.
  4. Check the limits. Rate limits and context windows decide whether the workload fits at all.
  5. Check the content policy, because refusals cost money in retries and developer time.

On limits, a full key here allows 8 concurrent requests and 300 requests per minute, with a maximum body of 8 MB. A trial key allows 2 concurrent and 60 per minute. When the limits are exceeded the API returns HTTP 429, with the code rate_limited or concurrency.

The honest summary on fit: if you need an official Qwen model by version name, its hosted service is the correct choice and its pricing page is the source of truth. If you need an OpenAI-compatible endpoint that does not refuse lawful adult requests, with predictable prepaid billing, this is built for that.

Switching an existing app

Because the API follows the OpenAI format, trying it costs a two-line change. Set the base URL and the key, and use the model ID uncensored:

from openai import OpenAI

client = OpenAI(base_url="https://api.qwennsfw.cc/v1", api_key="YOUR_KEY")
r = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarize this in two sentences: ..."}],
)
print(r.usage.prompt_tokens, r.usage.completion_tokens)
print(r.choices[0].message.content)

Print the usage numbers for a day of real traffic and plug them into the formula above. That one measurement answers the pricing question better than any price list. The docs cover streaming, tool calling and JSON mode, which behave as they do with other OpenAI-style APIs. Prompts are not used for training. The API is text only, and one rule has no exceptions: no sexual content involving minors.

Costs that never show up on a price list

Two services with the same per-token rates can still cost different amounts to run. A few effects are worth putting a number on before you decide.

Refusals and retries. If a model declines a request and your code resends a reworded version, you pay for both attempts on any provider that charges for refused calls. Suppose 1 request in 10 needs a second try. A workload that costs $5.25 a month at one attempt per request costs $5.25 x 1.1 = $5.775 with the retries. Here, failed or refused requests are not charged, so that overhead does not reach the bill, though your own engineering time spent on rewording still counts.

Padding in prompts. Long system prompts are billed as input on every call. A 3,000-token instruction block sent 10,000 times is 30M input tokens, or $4.50 at $0.15 per 1M. Moving rarely used instructions out of the prompt saves more than it appears to.

Output length. Because output is the more expensive side, a model that writes 800 tokens where 300 would do adds 500 x $0.50 / 1M = $0.00025 to every call. Over 10,000 calls that is $2.50. Ask for the format and length you need.

Waiting. Low limits mean batch jobs take longer, and engineers wait. Compare the limits as well as the rates before you commit.

Questions and answers

How much does this API cost per token?

Input costs $0.15 per 1M tokens and output costs $0.50 per 1M tokens, paid from prepaid credit.

Is there a subscription or minimum monthly spend?

No. You pay by the token from a prepaid balance. The only minimum is the $20 smallest top-up, and the credit never expires.

Are failed requests billed?

No. Failed or refused requests are not charged.

Where do I find official Qwen API prices?

On the vendor's own current pricing page. This site is not the official Qwen service, so it does not publish their rates.

Can I test before paying?

Yes. New users can claim $0.50 of trial credit with one click after sign-up, valid for 7 days with no payment method.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

https://api.qwennsfw.cc/v1