Qwen 3.8 Flash vs Gemma 4 31 B: cost comparison
Prices updated 2026-11-05 · computed from live provider data
Short answer: Qwen 3.8 Flash is cheaper on a
3:1 input/output blend — $0.237 per million tokens versus
$0.240, a 1% difference.
Qwen 3.8 Flash offers the larger context window at 983,616 tokens, against 128,000 for Gemma 4 31 B.
Head to head
| Qwen 3.8 Flash | Gemma 4 31 B | |
|---|---|---|
| Input, per 1M tokens | $0.160 | $0.164 |
| Output, per 1M tokens | $0.470 | $0.469 |
| Blended 3:1, per 1M | $0.237 | $0.240 |
| Context window | 983,616 | 128,000 |
| Vendor | empiriolabs | kyma |
Monthly cost at real volumes
| Workload (input / output) | Qwen 3.8 Flash | Gemma 4 31 B |
|---|---|---|
| 1M in / 250K out | $0.278 | $0.281 |
| 10M in / 2.5M out | $2.77 | $2.81 |
| 100M in / 25M out | $27.75 | $28.14 |
Which should you pick?
Pick Qwen 3.8 Flash when you need the longer context window (983,616 vs 128,000 tokens). Pick Qwen 3.8 Flash when price per token dominates your workload — high-volume classification, extraction, or batch summarisation.