Head to head
Gemma 4 31B vs Qwen3.8 27B
Verdict
- Choose Gemma 4 31B for lower token price.
- Choose Qwen3.8 27B for LiveBench Coding, agent work, longer context.
- Budget alternative: GLM 5.3 Flash ($0.036/$0.082 per 1M tokens).
Checked December 1, 2026
Side by side
Results from the same published benchmark can earn a score advantage. The benchmark rows below show shared tests and scores reported for only one model.
| Metric | Gemma 4 31BGoogle | Qwen3.8 27BQwen | Edge |
|---|---|---|---|
| Input $/1M | $0.20 | $0.06 | Qwen3.8 27B |
| Output $/1M | $0.40 | $1.96 | Gemma 4 31B |
| Cached input $/1M | N/A | N/A | No comparison |
| Context | 256K | 1M | Qwen3.8 27B |
| Price jump | None listed | None listed | |
| Coding score | N/A | N/A | No comparison |
| Reasoning score | N/A | N/A | No comparison |
| Agent score | 8.5 | 15.9 | Qwen3.8 27B |
| LiveBench | 32.4 | 54.0 | Qwen3.8 27B |
| LiveBench Long Agentic | 8.5 | 15.9 | Qwen3.8 27B |
| LiveBench Coding | 20.3 | 69.3 | Qwen3.8 27B |
| 10K coding agent runs | $3,300 | $2,370 | Qwen3.8 27B |
| Availability | Open weights | Open weights |
What three real workloads cost
Monthly totals with each model's own cache price where published.
Everyday chat
10,000 a month · 2,000 in / 500 out
- Gemma 4 31B
- $6.00
- Qwen3.8 27B
- $11.00
Coding agent
2,000 a month · 30,000 in / 1,500 out · 50 steps
- Gemma 4 31B
- $660
- Qwen3.8 27B
- $474
200K document summary
1,000 a month · 200,000 in / 1,000 out
- Gemma 4 31B
- $40.40
- Qwen3.8 27B
- $13.96
Gemma 4 31B vs Qwen3.8 27B
Is Gemma 4 31B better than Qwen3.8 27B?
Gemma 4 31B wins on lower token price; Qwen3.8 27B wins on LiveBench Coding, agent work, longer context. Which matters depends on your work.
Which is cheaper, Gemma 4 31B or Qwen3.8 27B?
Gemma 4 31B costs less per token. For 10,000 coding agent runs a month, Gemma 4 31B comes to about $3,300 and Qwen3.8 27B about $2,370.
Which has the bigger context window?
Gemma 4 31B reads 256K tokens and Qwen3.8 27B reads 1M.