Qwen API Key Price: What You Pay Per Token
There is no fee for the key itself. You pay for tokens from prepaid credit, and the smallest top-up is $20.

Key points
- Input tokens cost $0.15 per 1M and output tokens cost $0.50 per 1M. No subscription, no monthly minimum.
- Top up any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200.
- A request with 2,000 input and 500 output tokens costs $0.00055, so $20 buys roughly 36,000 of them.
- This is not the official Qwen platform, and pricing from other vendors is not compared here.
The answer in one table
| Item | Value |
|---|---|
| Cost of the key | Free to create |
| Input tokens | $0.15 per 1M |
| Output tokens | $0.50 per 1M |
| Billing model | Prepaid credit, pay as you go |
| Top-up range | Any whole amount, $20 to $500 |
| Credit expiry | Never |
| Failed or refused requests | Not charged |
| Trial | $0.50, one click, 7 days, no payment needed |
If you came here with the query qwen api key price in mind, one clarification saves you time: this is not the official Qwen platform. It is a hosted OpenAI-compatible text API for a single open-weight model, run by an independent provider, with the model ID uncensored. The prices above are the prices for this service only. For the official Qwen platform or any other vendor, check their current pricing.
How token billing works
A token is a chunk of text, usually a short word or a piece of a longer one. Every request has two sides. The input side is everything you send: the system message, the chat history and your latest question. The output side is what the model writes back. Input is cheaper per token than output, so a prompt that is long and an answer that is short is the inexpensive shape of request.
Your bill for a request is a plain formula:
cost = input_tokens * 0.15 / 1_000_000 + output_tokens * 0.50 / 1_000_000
The response includes a usage block with both token counts, so you can check the arithmetic yourself. Streamed responses report usage at the end of the stream. Every response also carries an X-Balance-USD header, which shows your remaining balance after the call. That makes it easy to watch spend from a script without opening a dashboard.
There are no seats, no tiers and no monthly plan. If you make no requests for three months, you pay nothing for those three months, and the balance is still there when you come back.
Worked examples with exact numbers
Abstract per-million prices are hard to feel. These four cases are computed from the formula above.
1. A short chat reply
2,000 input tokens and 500 output tokens. Input: 2,000 x $0.15 / 1M = $0.0003. Output: 500 x $0.50 / 1M = $0.00025. Total: $0.00055. A thousand of these cost $0.55.
2. A long-document question
80,000 input tokens and 2,000 output tokens. Input: 80,000 x $0.15 / 1M = $0.012. Output: 2,000 x $0.50 / 1M = $0.001. Total: $0.013. Even near the top of the 100,000-token window, one request costs about a cent.
3. A batch job
10,000 prompts, each with 300 input tokens and 150 output tokens. That is 3,000,000 input tokens and 1,500,000 output tokens. Input: 3 x $0.15 = $0.45. Output: 1.5 x $0.50 = $0.75. Total: $1.20 for the whole batch.
4. How far $20 goes
At $0.00055 per short chat reply, $20 buys 20 / 0.00055, which is about 36,363 requests. At $0.013 per long-document request, $20 buys about 1,538. Your real mix will sit somewhere between the two, and the response headers let you measure it after the first few calls.
Estimating a monthly bill
Before you top up, it helps to turn your expected traffic into a monthly figure. Two rough profiles show the method; replace the numbers with your own.
A small support chatbot
500 conversations a day, each averaging 3,000 input tokens (instructions plus history) and 400 output tokens. Per conversation: 3,000 x $0.15 / 1M = $0.00045 for input and 400 x $0.50 / 1M = $0.0002 for output, so $0.00065. Per day: 500 x $0.00065 = $0.325. Over 30 days: $9.75.
A tagging job on a content feed
2,000 items a day, each with 1,500 input tokens and 300 output tokens. Per item: $0.000225 for input plus $0.00015 for output, so $0.000375. Per day: $0.75. Over 30 days: $22.50.
Both fit inside a single $20 to $50 top-up per month, and neither needs a plan or a seat count. The point of the exercise is to find which side dominates your bill. In the chatbot case, input is about 69% of cost because history is resent every turn. In the tagging case, input is 60%. If input dominates, shorten prompts and trim history. If output dominates, ask for shorter answers or cap max_tokens.
Rate limits are a separate question from price. A full key allows 8 concurrent requests and 300 requests per minute, which is a ceiling on throughput, not on spend. A job that needs more speed than that is a scheduling problem, not a billing one.
Top-ups, minimums and bonuses
You add credit in whole dollar amounts from $20 to $500. Larger top-ups earn a bonus on the credited amount:
| You pay | Bonus | Credit you get |
|---|---|---|
| $20 to $49 | None | Same as you pay |
| $50 | +5% | $52.50 |
| $100 | +10% | $110 |
| $200 | +15% | $230 |
| $500 | +15% | $575 |
The bonus rate depends on the amount you pay, so $49 earns no bonus while $50 earns 5%. If you expect to spend a little under $50, it can make sense to top up the full $50 for the bonus and keep the remainder, since credit does not expire.
Payment is by crypto only: USDT on TRC20 or USDC on Base. Prepaying with a stablecoin means you know the cost ceiling in advance, because the service cannot charge you beyond the credit you loaded. The full table lives on the pricing page.
Try it first with trial credit
You can test the API before you pay anything. After you sign up with Google, or with an email and password, the API key page shows a button that claims $0.50 of trial credit. It takes one click, needs no payment method, is limited to one per person, and stays valid for 7 days.
That $0.50 is not a toy amount. At $0.00055 per short chat reply it covers about 909 requests (0.50 / 0.00055 = 909.09). It is more than enough to confirm the endpoint works with your client and to measure how many tokens your real prompts use.
A trial key has lower limits than a full key: 2 concurrent requests and 60 requests per minute, against 8 concurrent and 300 per minute for a full key. If a test script fires too fast, you will see HTTP 429 with the error code rate_limited or concurrency. Slow the script down or add a small queue.
Checking your spend from code
You do not need a separate billing API to know where you stand. The balance header on each response is enough. This snippet prints the remaining balance and the tokens used for one request:
import requests
r = requests.post(
"https://api.qwenimageapi.cc/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_KEY"},
json={
"model": "uncensored",
"messages": [{"role": "user", "content": "Say hello in five words."}],
"max_tokens": 20,
},
timeout=60,
)
print("balance:", r.headers.get("X-Balance-USD"))
u = r.json()["usage"]
cost = u["prompt_tokens"] * 0.15 / 1e6 + u["completion_tokens"] * 0.50 / 1e6
print("tokens:", u["prompt_tokens"], u["completion_tokens"], "cost: $%.6f" % cost)
Log those two values per request and you have a spending history with no extra infrastructure. If you drive the API with an OpenAI SDK, the same headers are available on the raw response object.
Ways to keep the bill low
- Trim chat history instead of resending thousands of old tokens every turn.
- Set
max_tokenswhere you know the answer is short. - Put stable instructions first and keep them short, since they are billed as input each time.
- Retry only on 429 and temporary errors. Failed requests are not charged, but a loop that keeps sending large prompts adds up.
The docs list the headers and error codes in full.
Common pricing mistakes
A few errors show up again and again when people estimate API cost for the first time.
- Forgetting that history is resent. A chat with 40 turns does not cost 40 small requests. Each request carries every earlier message, so input tokens grow turn after turn.
- Counting words, not tokens. English text runs roughly three-quarters of a word per token, and code or non-English text uses more tokens per word. Read the usage block instead of guessing.
- Ignoring output price. Output costs more than three times as much per token as input. A verbose answer to a short question can cost more than the question.
- Retry loops on large prompts. Failed requests are not charged, but a loop that resubmits a 90,000-token prompt after each success of a different kind will.
If you only remember one thing, remember that the cheapest request is the one with the shortest useful prompt. Measure a sample of real traffic for a day, multiply by the per-million rates above, and top up with a margin.
More guides
Questions and answers
Does the API key itself cost money?
No. Creating a key is free. You pay only for the tokens you use, drawn from prepaid credit that you top up.
What is the minimum I can add?
$20, in any whole amount up to $500. Bonuses of 5%, 10% and 15% apply from $50, $100 and $200.
Do I pay when a request fails or is refused?
No. Failed or refused requests are not charged.
Does my credit expire?
No. Credit never expires, and there is no subscription fee to keep the account open.
Is this priced like the official Qwen platform?
This is a separate service for one open-weight model and is not the official Qwen API. Check the official platform's current pricing if you want to compare.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.