Qwen3-Coder-30B-A3B
Code-specialized 30.5B MoE with 3.3B active across 128 experts, small enough to run on consumer hardware for code generation and agentic coding.
- Input
- $0.45 /1M tokens
- Output
- $2.25 /1M tokens
Cheapest: $0.06 / $0.25 per 1M tokens via Lyceum
Key Specifications
- Context window
- 262K tokens
- Max output
- 66K tokens
- Parameters
- 30.5B, 3.3B active
- Inputs
- Text
- Capabilities Show details
- Function calling Connect to external tools, APIs, and systems. Structured output Return responses in structured formats like JSON.
Hosted API pricing
| Provider | Input /1M tokens | Output /1M tokens | Cached input /1M | Cost at 10M in + 2M out | |
|---|---|---|---|---|---|
|
|
$0.06 | $0.25 | $0.01 | $1.10 | View |
|
|
$0.07 | $0.27 | $1.24 | View | |
|
|
$0.10 | $0.30 | $0.05 | $1.60 | View |
|
|
$0.45 | $2.25 | $9.00 | View |
Heads up: Base-tier, on-demand rates per 1M tokens; cached, batch and long-context tiers excluded. A provider may serve a shorter context or a quantized build than the creator's release. Verify before provisioning. More on how we price.
Estimated cost to self-host
Qwen3-Coder-30B-A3B needs about 20 GB of GPU memory at 4-bit with 32K context. The cheapest rental that fits is 2× RTX 4070 at about $144 a month.
That costs the same as roughly 192M tokens a month on Alibaba Cloud's API. Self-hosting is more expensive below that volume.
| Precision | Memory | Cheapest fit (32K context) | Cost /mo | Break-even vs API |
|---|---|---|---|---|
| 4-bitINT4 / FP4 |
20 GB
|
$144
|
192M tokens /mo
|
|
| 8-bitFP8 / INT8 |
36 GB
|
$173
|
230M tokens /mo
|
|
| 16-bitFP16 / BF16 |
66 GB
|
$346
|
461M tokens /mo
|
Estimates based on median on-demand rates for Nvidia GPUs. Memory is weights plus KV cache for one request, using FP8 KV cache where supported and FP16/BF16 otherwise. Break-even assumes a 5:1 input-to-output ratio. No guarantee of runtime support, usable performance, or that a matching quantized build exists. How we estimate costs.
Similarly priced models
The models nearest Qwen3-Coder-30B-A3B by blended rate, each at its own cheapest provider.
| Model | Blended /1M | Input /1M | Output /1M | Context | Cutoff | vs Qwen3-Coder-30B-A3B |
|---|---|---|---|---|---|---|
|
|
$0.0583 | $0.05 | $0.10 | 128K | Aug 2024 | −36% |
|
|
$0.0583 | $0.03 | $0.20 | 128K | Dec 2023 | −36% |
|
|
$0.0633 | $0.04 | $0.18 | 131K | Jun 2024 | −31% |
|
|
$0.075 | $0.05 | $0.20 | 262K | Jun 2025 | −18% |
|
|
$0.0833 | $0.05 | $0.25 | 8K | Mar 2023 | −9% |
|
|
$0.0917 | $0.06 | $0.25 | 262K | ||
|
|
$0.0983 | $0.05 | $0.34 | 128K | Dec 2023 | +7% |
|
|
$0.0983 | $0.05 | $0.34 | 33K | +7% | |
|
|
$0.10 | $0.10 | $0.10 | 256K | +9% | |
|
|
$0.1083 | $0.08 | $0.25 | 1M | +18% | |
|
|
$0.1083 | $0.05 | $0.40 | 400K | May 2024 | +18% |
Prices are USD per 1M tokens at each model's cheapest listed provider. Blended is the cost of 10M input plus 2M output tokens, spread over the 12M.
Frequently Asked Questions
What is Qwen3-Coder-30B-A3B good for?
Agentic coding and browser-use tool calling on local hardware. Apache 2.0 weights, a 30.5B mixture of experts with 3.3B active, on a single consumer GPU.
When is Qwen3-Coder-30B-A3B not a good fit?
Tasks that need a reasoning trace, since it is non-thinking only, and general assistant work, where the lineup's non-Coder models fit. No image or video input, and no built-in web search, though a host or your own tool loop can add one.
What is the cheapest way to run Qwen3-Coder-30B-A3B?
Hosted, unless you push serious volume. Alibaba Cloud charges $0.45 in / $2.25 out per 1M tokens. The cheapest rental that fits is 2x RTX 4070 at $144 a month, which costs the same as about 192M tokens a month on that API.
Can I self-host Qwen3-Coder-30B-A3B?
Yes. The weights are Apache 2.0 licensed. At 4-bit it needs about 20 GB of GPU memory, which starts at roughly $144 a month on the cheapest rental that fits.
More from Alibaba Cloud
| Model | Context | Input /1M | Output /1M |
|---|---|---|---|
|
|
33K | $0.05 | $0.34 |
|
|
262K | $0.06 | $0.46 |
|
|
262K | $0.07 | $0.42 |
|
|
33K | $0.10 | $0.30 |
|
|
1M | $0.10 | $0.40 |
|
|
262K | $0.09 | $0.58 |
|
|
1M | $0.03 | $0.13 |
|
|
262K | $0.09 | $0.69 |