Qwen API Pricing Explained: How Token Billing Works
Qwen api pricing, like most LLM pricing, is charged per token, split into input and output. This article explains how that billing works, shows how to turn a price list into a real monthly figure, and sets it next to our rates. This service is not Alibaba's official API, so for their numbers you should check their current pricing.


Key points
- LLM APIs bill per token, with separate rates for input and output.
- Here: $0.15 per 1M input tokens and $0.50 per 1M output tokens, prepaid, no subscription.
- Your bill depends on prompt length and history far more than on message count.
- This is a different service from the vendor's own platform; check the vendor's page for their prices.
How per-token pricing works
A token is a chunk of text, roughly three quarters of an English word. Every request has two sides. Input tokens are everything you send: system prompt, chat history, documents and the latest message. Output tokens are what the model writes back. Providers list a price per 1M tokens for each side, and output is normally the more expensive one because generating text costs more compute than reading it.
The formula is the same everywhere: cost = input tokens x input rate / 1M + output tokens x output rate / 1M. Once you know your typical prompt and reply length, you can price any provider with a spreadsheet.
What to look for on a vendor's price page
Pricing pages for hosted Qwen-family models differ from provider to provider, and they change. Instead of quoting numbers that may be out of date, here are the items to check on any official or third-party price list:
- Model tier. Larger models cost more per token than smaller ones. Make sure you are reading the row for the model you will actually call.
- Context tiers. Some providers charge more once a prompt passes a given length.
- Cached input. Some providers discount repeated prompt prefixes.
- Hidden reasoning tokens. On reasoning models, thinking tokens may count as output even if you never see them.
- Free quotas and expiry. A free allowance may expire after a set period, or apply only in certain regions.
- Billing currency and minimums. Check the currency, the payment methods and any minimum top-up.
Write these down for each candidate. Comparing a headline price without them often gives the wrong winner.
Pricing on this endpoint
This service is an OpenAI-compatible API for one open-weight model, tuned to answer without content refusals for lawful adult use. It is run by an independent provider and is not the official API of Alibaba, Qwen or any other vendor. The model ID is simply uncensored, and it does not stand in for a particular vendor model tier.
The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. You pay from prepaid credit, with no subscription, no context tiers and no expiry. Failed or refused requests are not charged. Top-ups are any whole amount from $20 to $500, with +5% bonus credit from $50, +10% from $100 and +15% from $200. The pricing page has the current table.
The context window is 100,000 tokens, prompt plus completion, and one rate applies across all of it.
Worked examples at $0.15 and $0.50
| Job | Input | Output | Math | Cost per call |
|---|---|---|---|---|
| Chat turn | 1,000 | 300 | 0.00015 + 0.00015 | $0.0003 |
| Retrieval answer | 6,000 | 600 | 0.0009 + 0.0003 | $0.0012 |
| Long document summary | 20,000 | 500 | 0.003 + 0.00025 | $0.00325 |
Scale those up. A support bot that handles 50,000 retrieval answers a month spends 50,000 x $0.0012 = $60. A writing tool that runs 200,000 chat turns spends 200,000 x $0.0003 = $60 as well. A batch job that summarizes 1,000 long documents spends 1,000 x $0.00325 = $3.25.
One more reference point: if you use exactly 1M input tokens and 1M output tokens, the bill is $0.15 + $0.50 = $0.65.
Comparing with another provider's price list
To compare fairly, convert both lists to the same request shape. Take your real average input and output length, apply each provider's two rates, and add any extra charges from the checklist above. Then compare the per-call figure and the monthly total.
Some honest cautions. A cheaper per-token price does not help if the model answers in a way you cannot use, or if the service filters the content you need. The vendor's own platform may offer larger model tiers, features we do not have, or regional terms that suit you better, and it is the right choice if you need the vendor's named models or official support. Our service is text only: no images, audio, embeddings or fine-tuning.
The advantages here are narrower and simple: one flat rate, a 100K context window, an OpenAI-compatible format and no content refusals for lawful adult use. See the Qwen-style uncensored workflow article for how this fits a typical writing setup.
Estimating tokens before you build
You do not need exact counts to budget. For English text, 1 token is about 4 characters, so a 4,000 character document is near 1,000 tokens. Other languages and code often use more tokens per character, so measure a sample if your traffic is not English prose.
The reliable method is to ask the API. Every response includes a usage object with prompt and completion tokens. Send twenty realistic requests, average the numbers and price them. This script does it and prints the cost of each call:
from openai import OpenAI
client = OpenAI(base_url="https://api.qwenuncensored.com/v1", api_key="YOUR_KEY")
IN_RATE, OUT_RATE = 0.15 / 1_000_000, 0.50 / 1_000_000
def priced(prompt):
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": prompt}],
)
u = r.usage
cost = u.prompt_tokens * IN_RATE + u.completion_tokens * OUT_RATE
return u.prompt_tokens, u.completion_tokens, round(cost, 6)
print(priced("Summarize the plot of a heist film in five sentences."))
Multiply the average cost by your expected monthly call volume and add a margin of 20 to 30 percent for growth. That figure is more trustworthy than any rule of thumb.
Why output is priced higher than input
The model reads your whole prompt in one parallel pass, but it writes the reply one token at a time. Each new token needs another pass, which is slower and uses more compute. That is why output rates are higher than input rates across the industry, and here output is $0.50 against $0.15 for input, a ratio of about 3.3 to 1.
The practical lesson depends on your workload. Summarizing and classification are input-heavy: long text in, short answer out, so the cheap side of the price dominates. Story writing and long-form generation are output-heavy, so the reply length is what you should control. A 2,000 token scene costs $0.001 in output alone, which is still small, but it adds up across many users.
Ways to keep the bill low
- Trim history. Input dominates most chat bills because you resend the conversation each turn. Summarize old turns.
- Cap output. Set
max_tokenswhen you only need a short answer. It is optional here, but it limits the worst case. - Keep the system prompt short. A 2,000 token system prompt costs $0.0003 per call before the user says a word.
- Watch the balance. Every response includes an
X-Balance-USDheader.
To see the format in action, this request works against the endpoint:
curl https://api.qwenuncensored.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"Hello"}],"max_tokens":50}'
New users can claim $0.50 of trial credit on the API key page, valid for 7 days and without a card. At 1,000 input and 300 output tokens per call, that is about 1,666 calls. Method details are in the docs.
More guides
Questions and answers
Is this the official Qwen API?
No. It is an independent OpenAI-compatible service running an open-weight model, not the official API of Alibaba or any other vendor. For their pricing, check their current pricing page.
How is the price calculated?
Input tokens times $0.15 per 1M plus output tokens times $0.50 per 1M. Failed or refused requests are not charged.
Is there a subscription or minimum?
No subscription. Prepaid top-ups start at $20 and credit never expires.
Can I pay by card?
Yes, by by crypto (USDT on TRC20, USDC on Base).
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.