Gemma 4 31B it vs Qwen3-Coder 30B-A3B
Gemma 4 31B it scores higher on the intelligence index, 15 against 10. Both take the same machine to start: the cheapest here that runs either is the Framework Desktop, 32GB, at $1,269. On it, Qwen3-Coder 30B-A3B is about 3.3× quicker: 27 tok/s against 8.3, both estimated from memory bandwidth. At 500k tokens a day the Framework Desktop, 32GB pays for itself in 102 years running Qwen3-Coder 30B-A3B, against 119 years running Gemma 4 31B it.
| Gemma 4 31B it | Qwen3-Coder 30B-A3B | |
|---|---|---|
| Intelligence index | 15 | 10 |
| Class | Haiku-class | Below every hosted tier |
| Weights | 20 GB | 19 GB |
| Needs at 32k | 23 GB | 22 GB |
| Quantisation | Q4_K_M | Q4_K_M |
| Parameters | 31.3B | 30.5B (3.3B active) |
| Max context | 256k | 256k |
| API price per 1M | $0.09 in / $0.34 out | $0.07 in / $0.27 out |
| Licence | Apache 2.0 | Apache 2.0 |
| Machines here that run it | 28 of 37 | 28 of 37 |
| Cheapest machine that runs it | Strix Halo Framework Desktop, 32GB $1,269 | Strix Halo Framework Desktop, 32GB $1,269 |
Run Gemma 4 31B it on the Framework Desktop, 32GB · or Qwen3-Coder 30B-A3B
Jump to: Side by side on the Framework Desktop, 32GB · How much use it takes to pay for the machine · Memory is not what separates them · The assumptions behind both columns
Side by side on the Framework Desktop, 32GB
The cheapest machine that runs either model is the same one, so this is the pair doing the same work on the same hardware: Strix Halo Framework Desktop, 32GB, at $1,269.
| Gemma 4 31B it | Qwen3-Coder 30B-A3B | |
|---|---|---|
| Speed at 32k | 8.3 tok/s estimated | 27 tok/s estimated |
| Pay-back on this machine | Pays back in 119 years | Pays back in 102 years |
| API cost per month | $1.61 | $1.26 |
Run Gemma 4 31B it on the Framework Desktop, 32GB · or Qwen3-Coder 30B-A3B
How much use it takes to pay for the machine
Everything above is at 500k tokens a day. Pay-back moves with how much you actually run, so here are both models at the five levels of use the calculator names, on the Framework Desktop, 32GB. Qwen3-Coder 30B-A3B pays for it sooner at every level of use, so which of them to run does not turn on how hard you work it.
| A day's use | Gemma 4 31B it | Qwen3-Coder 30B-A3B |
|---|---|---|
| 50ka few chats a day | 1,191 years | 1,023 years |
| 200klight assistant use | 298 years | 256 years |
| 1Ma moderate coding-assistant day | 60 years | 51 years |
| 4Mheavy coding with an agent | 15 years | 13 years |
| 20Magents running most of the day | 5.2 yearsits ceiling | 2.6 years |
The Framework Desktop, 32GB generates at most 11.5M tokens a day on Gemma 4 31B it, so that column's figure at 20M tokens a day is for the most it can do, not for the whole of what was asked.
Run Gemma 4 31B it at 20M tokens a day · or Qwen3-Coder 30B-A3B
Memory is not what separates them
Gemma 4 31B it needs 23 GB of memory at 32k of context and Qwen3-Coder 30B-A3B needs 22 GB. Every machine priced here that runs one runs the other, at 32k of context. So the choice between them is what each is good at, how fast it runs and what the same work costs on an API, not what you have to buy to hold it.
Gemma 4 31B it is also head to head with Qwen3.5 122B-A10B above it on the leaderboard, Granite 4.2 30B below it and Gemma 3 27B it, the last-generation Gemma nearest it in size. Two more models need much the same memory: Qwen3.6 35B-A3B and Qwen3 30B-A3B Instruct 2507. Qwen3-Coder 30B-A3B is also head to head with Qwen3-Coder Next below it on the leaderboard and Qwen3 30B-A3B Instruct 2507, the last-generation Qwen nearest it in size.
The assumptions behind both columns
Both columns use the same usage: 500k tokens a day at 15:1 input to output, 32k of context, $0.17 per kWh, and today's API prices held flat. Speeds marked estimated are worked out from memory bandwidth rather than measured, and pay-back scales with them. Where nobody rents an open model by the token, its API prices are the nearest hosted model's, named beside them. Machines are the 37 here with a published price that are still sold. Change any of it in the calculator.
More head to head: every machine that runs Gemma 4 31B it · every machine that runs Qwen3-Coder 30B-A3B · every other match-up · both against the frontier · the quickest pay-back at each level of use