Is There a Free API? Trial Credit and Real Costs
Searching for a qwen coder api free plan? This service has no unlimited free tier, but new users can claim $0.50 of trial credit with no card, and pay-as-you-go prices are low enough that small projects cost cents.

Key points
- There is no free unlimited tier. There is a one-click $0.50 trial, valid for 7 days, one per person.
- Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, with no subscription.
- Failed or refused requests are not charged, and credit never expires.
- The smallest top-up is $20, with bonus credit from $50.
What is free and what is not
The direct answer to the qwen coder api free question is: partly. Nothing here runs forever at no cost, because every request uses GPU time that somebody pays for. What you get is a trial. After sign-up you press one button on the API key page and receive $0.50 of credit. It needs no card, it is valid for 7 days, and each person can claim it once. After it is gone or expired, you pay per token from prepaid credit.
There is no subscription, no monthly minimum and no seat fee. If you stop using the API, nothing keeps billing you. That is a different shape from an advertised free plan, so it helps to see what the trial buys in real work before you decide whether the money question is worth a second thought.
What $0.50 of trial credit buys
Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens. Here are four ways to spend $0.50, computed from those rates.
| Workload | Cost per request | Requests for $0.50 |
|---|---|---|
| Short question: 300 tokens in, 200 out | $0.000045 + $0.0001 = $0.000145 | about 3,448 |
| Code help: 1,000 in, 500 out | $0.00015 + $0.00025 = $0.0004 | 1,250 |
| Document summary: 10,000 in, 800 out | $0.0015 + $0.0004 = $0.0019 | about 263 |
| Full window: 90,000 in, 10,000 out | $0.0135 + $0.005 = $0.0185 | about 27 |
Check one row by hand. For code help, 1,000 input tokens is 0.001 of a million, so 0.001 times $0.15 gives $0.00015. Output of 500 tokens is 0.0005 of a million, so 0.0005 times $0.50 gives $0.00025. The sum is $0.0004, and $0.50 divided by $0.0004 is 1,250. Counts of requests are rounded down in practice, since you cannot send a fraction of one.
In plain terms: the trial is enough to build an integration, run a few hundred real prompts, and form an opinion. It is not enough to run a production workload, and it is not meant to be.
Trial limits to plan around
The trial key is capped at 2 concurrent requests and 60 requests per minute. A full key, after your first top-up, allows 8 concurrent requests and 300 requests per minute. The trial does not hide any features. Streaming, tool calling and JSON mode all work, so you can test the same code path you will use later.
Two behaviours are easy to miss. A streamed request holds its concurrency slot until the stream ends, so two long streams at once use the whole trial allowance. And a 429 response is not an error in your code: the error code rate_limited means too many requests per minute, concurrency means too many at once, and a temporary overload comes back with a Retry-After: 5 header. Wait the stated time, then retry.
A sensible way to use a small allowance is to write down ten to twenty prompts that look like your real traffic before you claim the credit. Run them once, read the answers, and note which ones fail. Then claim the credit, run the same set, and compare. That uses perhaps a few cents, leaves most of the $0.50 for tuning, and keeps the 7-day window from ticking away while you think of what to ask.
Try it in five minutes
If you want to spend the trial well, make a small script that runs your own prompts and prints the cost. Create the account, claim the credit on the API key page, then run this:
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.qwencoder.cc/v1", api_key=os.environ["API_KEY"])
IN_PRICE = 0.15 / 1_000_000
OUT_PRICE = 0.50 / 1_000_000
prompts = [
"Write a bash one-liner that counts lines in all .py files.",
"Explain the difference between a list and a tuple in Python.",
]
total = 0.0
for p in prompts:
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": p}],
)
cost = r.usage.prompt_tokens * IN_PRICE + r.usage.completion_tokens * OUT_PRICE
total += cost
print(f"{cost:.6f} USD {r.usage.prompt_tokens} in / {r.usage.completion_tokens} out")
print("total:", round(total, 6))
Compare the printed total with the balance you see in the dashboard, or in the X-Balance-USD response header. They should agree closely. If they do not, send the X-Request-Id of the call to the support team.
Paying for real use
Once the trial has done its job, the smallest top-up is $20. It can be any whole amount up to $500, and bonuses apply as you go up: +5% from $50, +10% from $100 and +15% from $200. So $50 gives $52.50 of credit, $100 gives $110 and $200 gives $230. You can pay with crypto (USDT on TRC20 or USDC on Base).
To see what $20 means, use the code-help workload from the table: 1,000 tokens in and 500 out costs $0.0004, and $20 divided by $0.0004 is 50,000 requests. A heavier workload of 2,000 in and 1,000 out costs $0.0003 plus $0.0005, which is $0.0008, and $20 buys 25,000 of those. Credit never expires, so a bigger top-up on a quiet month does not go stale. The pricing page has the full rate card.
Why no unlimited free tier
A free unlimited plan on a hosted model has to be paid for somehow. Usually that means tight caps, heavy queues, advertising, or using your prompts as training data. This service takes the plain route instead: you pay for tokens, prompts are not used for training, and failed or refused requests are not charged. If you are comparing with other offers, read their terms for rate limits, data use and what happens when the free quota ends, and check their current pricing, because those details change.
There is also a route that costs nothing per token: run an open-weight model on your own hardware. That is a fair choice if you own a capable GPU, you want full control, and you can spend the time on setup. A hosted API makes sense when you would rather not own the servers, or when your hardware cannot hold the model you want. Neither answer is right for everyone.
Staying cheap after the trial
Cost scales with tokens, so a few habits cut the bill without touching quality. Keep system prompts short. Trim old chat turns, since history is resent on every request. Set max_tokens when you only need a short reply, because output tokens cost more than three times as much as input tokens. Cache answers to repeated questions on your side. And batch small related questions into one request when they share the same context, so you pay for the shared background once.
The quickstart covers each of these parameters in the request format.
More guides
Questions and answers
Is there a free tier with no time limit?
No. There is a one-time trial of $0.50 with no card needed, valid for 7 days, and after that you pay per token.
How do I claim the trial credit?
Sign up with Google or with email and password, open the API key page, and press the trial button. It is one claim per person.
What is the cheapest way to keep using it?
Top up the minimum of $20 and pay only for tokens used. Input is $0.15 per 1M tokens and output is $0.50 per 1M, and credit never expires.
Am I charged when a request fails?
No. Failed or refused requests are not charged.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.