AI API PricesAlibaba (Qwen) › Qwen3 Coder

Qwen3 Coder pricing

Qwen3 Coder API cost from Alibaba (Qwen) — $0.220 per 1M input tokens and $1.80 per 1M output tokens. Open, code-specialised, 1M ctx. Estimate your real monthly bill below, then compare it against every other model.

Input price
$0.220
per 1M input tokens
Output price
$1.80
per 1M output tokens
Context window
1M
tokens per request
Reference call
$0.0020
1K in + 1K out

Balanced open weights 1M context · all prices USD per 1M tokens, list price last verified 2026-06-27.

Qwen3 Coder capabilities & limits

Representative specs for this tier — confirm exact limits in the Alibaba (Qwen) docs.

Context window1M
Max output32K
Knowledge cutoff2025
API formatOpenAI-compatible
✓ Tools / functions✓ JSON / structured✓ Batch API✓ Open weights

Call Qwen3 Coder from your code

The exact model string and endpoint to use. Works with the OpenAI SDK — just point base_url at the URL below.

Model stringqwen3-coder-plus
Base URLhttps://dashscope-intl.aliyuncs.com/compatible-mode/v1
API key envDASHSCOPE_API_KEY
curl https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-coder-plus",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Model strings follow each provider's naming convention; confirm the current id in the Alibaba (Qwen) docs before relying on it.

What a Qwen3 Coder API call actually costs

Blended input + output cost at Qwen3 Coder's list rates — useful yardsticks before you commit to volume.

$0.0020
Short call
1K in · 1K out
$0.0016
Chat turn
3K in · 500 out
$0.0062
RAG / long prompt
20K in · 1K out
$2.02
1M in + 1M out
bulk job

Qwen3 Coder cost calculator

Enter your monthly volume to estimate the Qwen3 Coder bill. Runs entirely in your browser.

Estimated monthly cost

For the full multi-model breakdown, use the cost calculator.

Alibaba (Qwen) models — Qwen3 Coder in context

How Qwen3 Coder prices against its siblings. Cheapest reference cost first.

Model Input /1M Output /1M Cost / call* Context Type
Qwen3 235B A22B
Open weights, very cheap
$0.090 $0.100 $0.0002 256K Fast / cheap open
Qwen3 Coder
Open, code-specialised, 1M ctx
$0.220 $1.80 $0.0020 1M Balanced open
Qwen3 Max
Flagship
$0.780 $3.90 $0.0047 256K Flagship

*Reference cost of one call with 1,000 input + 1,000 output tokens — a neutral yardstick. Use the calculator for your real usage. Cheapest row highlighted.

Cheaper than Qwen3 Coder? In the same balanced tier, Command R runs $0.150 in / $0.600 out. The overall cheapest model tracked is Gemini 1.5 Flash-8B — see the cheapest LLM API guide.

How Qwen3 Coder pricing works

Qwen3 Coder is billed per token: a lower input price of $0.220 per million tokens for everything you send, and a higher output price of $1.80 per million for everything the model generates. To turn that into a real Qwen3 Coder bill, multiply by your monthly request volume and average prompt/response length — the calculator above does exactly that.

Qwen3 Coder does not list a separate cached-input rate, so every input token bills at $0.220 per million. If repeated context is a big part of your prompts, a model with prompt caching may end up cheaper in practice.

List prices move fast — always confirm the current numbers on the official Alibaba (Qwen) pricing page before relying on them for budgeting.

Qwen3 Coder pricing FAQ

How much does the Qwen3 Coder API cost?

Qwen3 Coder costs $0.220 per 1M input tokens and $1.80 per 1M output tokens. A typical 3K-input / 500-output call works out to about $0.0016.

What is Qwen3 Coder's context window?

Qwen3 Coder has a 1M-token context window. Tokens you put in the prompt are billed at the $0.220 per 1M input rate.

Does Qwen3 Coder charge extra for output tokens?

Yes. Output (generated) tokens cost $1.80 per 1M, versus $0.220 per 1M for input — about 8.2× more, which is normal for LLM APIs.

Is there a cheaper alternative to Qwen3 Coder?

In the same balanced tier, Command R (Cohere) is cheaper at $0.150 in / $0.600 out. The overall cheapest model on the market is Gemini 1.5 Flash-8B.

Is Qwen3 Coder open weights?

Yes — Qwen3 Coder is released as open weights, so you can self-host it instead of paying per-token API rates. The prices here are a representative hosted endpoint.

Compare Qwen3 Coder with other models