EN ▾
Open account

Qwen api docs: Transparent Pricing

Qwen API pricing is straightforward: you pay per token with no hidden fees or subscription traps. This transparent model lets you predict exact costs before you send a single request.

No subscriptions. Prepaid balance does not expire.

per 1M input tokens
$0.15
Output tokens / 1M
$0.50
token context
100,000
trial credit
$0.50
requests per minute
300

Cost estimator

$0.00
Open account

Usage examples

A developer running a 10k token context window with a 2k token response.

Input: 10,000 tokens × $0.15 / 1,000,000 = $0.0015. Output: 2,000 tokens × $0.50 / 1,000,000 = $0.0010. Total: $0.0025.

A heavy batch job processing 500k input tokens for 50k output tokens.

Input: 500,000 tokens × $0.15 / 1,000,000 = $0.075. Output: 50,000 tokens × $0.50 / 1,000,000 = $0.025. Total: $0.10.

A short chat interaction with 500 input tokens and 100 output tokens.

Input: 500 tokens × $0.15 / 1,000,000 = $0.000075. Output: 100 tokens × $0.50 / 1,000,000 = $0.00005. Total: $0.000125.

Simple Per-Token Pricing

We charge strictly for what you use. Input tokens cost $0.15 per million, and output tokens cost $0.50 per million. This structure reflects the actual compute load of processing your prompt versus generating the response. You do not pay for idle time or reserved capacity. The ratio ensures that longer responses cost more, which aligns with the GPU resources required to produce them.

Crypto Top-Up with Bonuses

Add funds using USDT on TRC20 or USDC on Base. We offer bonus credit for larger top-ups: +5% for $50, +10% for $100, and +15% for $200. This bonus applies to your prepaid balance immediately. You can top up any whole amount between $20 and $500. There are no monthly fees or subscription traps. Your credit never expires, so you can use it whenever you need it.

No Expiration, No Subscriptions

Prepaid credit remains valid indefinitely until you use it. This means you can top up once and use the balance over weeks or months. You only pay for the tokens you actually consume. Errors and refusals are free, so you do not waste credit on failed requests. This approach keeps your spending predictable and avoids the surprise of monthly bills for services you barely used.

Free Errors and Refusals

If the API returns an error or refuses a request for valid reasons, you do not pay for those tokens. This includes rate limit errors or server-side issues. You only pay for successfully processed requests. This feature protects your budget from unexpected failures. It also encourages experimentation since you can test parameters without risking your prepaid balance.

Rate Limits and Concurrency

Each API key allows 300 requests per minute and 8 concurrent requests. The request body size is limited to 8 MB. These limits ensure stable performance for all users. If you exceed the rate limit, you receive a 429 error without any charge. This structure supports both bursty workloads and steady streams of requests. You can generate a new key if you need a fresh start, but each account is limited to one active key at a time.

Refund Policy for Mistakes

Credit is non-refundable because it never expires. If you make a mistake, such as a double charge, contact Support through the Support page. We will fix the issue by adjusting your balance. This policy ensures that your prepaid funds remain secure. You do not need to worry about losing your balance due to administrative errors. The Support team handles these cases directly to keep your workflow uninterrupted.

Frequently asked questions

What is the qwen API pricing for input vs output tokens?

Input tokens cost $0.15 per million, while output tokens cost $0.50 per million. This pricing reflects the compute cost of processing your prompt versus generating the response. You only pay for the tokens you actually use.

How does the crypto top-up bonus work?

We offer bonus credit for top-ups of $50, $100, and $200. The bonuses are +5%, +10%, and +15% respectively. This bonus is added to your prepaid balance immediately upon payment.

Does my prepaid credit expire?

No, your prepaid credit never expires. You can use it whenever you need it, even years after you top up. This makes it ideal for projects with irregular usage patterns.

Are errors charged to my balance?

No, errors and refusals are free. You only pay for successfully processed requests. This protects your budget from unexpected failures or rate limit errors.

Generate your API key

Sign up, copy the key, update the base URL. That’s it.

Open account