Skip to content
TopLLM
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.

MetricGemma 4 31BGoogleQwen3.8 27BQwenEdge
Input $/1M$0.20$0.06Qwen3.8 27B
Output $/1M$0.40$1.96Gemma 4 31B
Cached input $/1MN/AN/ANo comparison
Context256K1MQwen3.8 27B
Price jumpNone listedNone listed
Coding scoreN/AN/ANo comparison
Reasoning scoreN/AN/ANo comparison
Agent score8.515.9Qwen3.8 27B
LiveBench32.454.0Qwen3.8 27B
LiveBench Long Agentic8.515.9Qwen3.8 27B
LiveBench Coding20.369.3Qwen3.8 27B
10K coding agent runs$3,300$2,370Qwen3.8 27B
AvailabilityOpen weightsOpen 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.