Alibaba Cloud logo Open weights · Apache 2.0

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.

List price via Alibaba Cloud
Input
$0.45 /1M tokens
Output
$2.25 /1M tokens

Cheapest: $0.06 / $0.25 per 1M tokens via Lyceum

Lyceum Novita EcoHash Alibaba Cloud 4 providers

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
Lyceum logo Lyceum Cheapest $0.06 $0.25 $0.01 $1.10 View
Novita logo Novita $0.07 $0.27 $1.24 View
EcoHash logo EcoHash $0.10 $0.30 $0.05 $1.60 View
Alibaba Cloud logo Alibaba Cloud Creator $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.

Single node ≤ 8
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 vs Qwen3-Coder-30B-A3B
Google Cloud Gemma 3 12B Instruct Google Cloud $0.0583 −36%
Meta Llama 3.2 1B Meta $0.0583 −36%
OpenAI GPT-OSS-120B OpenAI $0.0633 −31%
Nvidia Nemotron 3 Nano 30B A3B Nvidia $0.075 −18%
Meta Llama 3 8B Meta $0.0833 −9%
Alibaba Cloud Qwen3-Coder-30B-A3B This model Alibaba Cloud $0.0917
Meta Llama 3.2 3B Meta $0.0983 +7%
Alibaba Cloud Qwen3-30B-A3B FP8 Alibaba Cloud $0.0983 +7%
Mistral Ministral 3 3B Mistral $0.10 +9%
Z.AI GLM-5.3-Flash Z.AI $0.1083 +18%
OpenAI GPT-5 Nano OpenAI $0.1083 +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
Alibaba Cloud Qwen3-30B-A3B FP8 Open weights 33K $0.05 $0.34
Alibaba Cloud Qwen3.5-35B-A3B Open weights 262K $0.06 $0.46
Alibaba Cloud Qwen3.6-35B-A3B Open weights 262K $0.07 $0.42
Alibaba Cloud Qwen3-32B FP8 Open weights 33K $0.10 $0.30
Alibaba Cloud Qwen3.5-Flash 1M $0.10 $0.40
Alibaba Cloud Qwen3-235B-A22B Instruct (2507) Open weights 262K $0.09 $0.58
Alibaba Cloud Qwen3.7-Flash 1M $0.03 $0.13
Alibaba Cloud Qwen3.5-27B Open weights 262K $0.09 $0.69