Compare/Gemma 4 31B (Non-reasoning) vs GLM-4.7-Flash (Reasoning)

Gemma 4 31B (Non-reasoning)vsGLM-4.7-Flash (Reasoning)

Side-by-side comparison of pricing, 12 benchmarks, and generation speed.

Google

Gemma 4 31B (Non-reasoning)

Input
$0.15/M
Output
$0.4/M
Speed
82 tok/s
TTFT
1.40s
Z AI

GLM-4.7-Flash (Reasoning)

Input
$0.07/M
Output
$0.4/M
Speed
93 tok/s
TTFT
1.24s

Winner by Category

Cheaper
GLM-4.7-Flash (Reasoning)
Faster (tok/s)
GLM-4.7-Flash (Reasoning)
Lower Latency
GLM-4.7-Flash (Reasoning)
Benchmarks (1-1)
Tie

Pricing Comparison

MetricGemma 4 31B (Non-reasoning)GLM-4.7-Flash (Reasoning)
Input ($/M tokens)$0.15$0.07
Output ($/M tokens)$0.4$0.4
Cost for 1M input + 100K output tokens:
Gemma 4 31B (Non-reasoning)$0.19
GLM-4.7-Flash (Reasoning)$0.11

Speed Comparison

Output Speed (tokens/s) — higher is better
Gemma 4 31B (Non-reasoning)
82 tok/s
GLM-4.7-Flash (Reasoning)
93 tok/s
Time to First Token (seconds) — lower is better
Gemma 4 31B (Non-reasoning)
1.40s
GLM-4.7-Flash (Reasoning)
1.24s

Editorial Analysis

Verdict. Gemma 4 31B (Non-reasoning) and GLM-4.7-Flash (Reasoning) split the benchmark comparison evenly at 1–1. The tiebreaker here is price, speed, and what you actually run them on.

Pricing. Both models sit in the budget bracket for output-token pricing. At 1.0× the per-million-token cost, GLM-4.7-Flash (Reasoning) is meaningfully cheaper if your traffic is output-heavy (long completions, document generation, agent loops). GLM-4.7-Flash (Reasoning) makes more sense when output volume is low and absolute reasoning quality justifies the premium.

Strengths. Gemma 4 31B (Non-reasoning) is strongest on Coding Index (33.2), Intelligence Index (22.3). GLM-4.7-Flash (Reasoning) leads on Intelligence Index (23.3).

Speed. Throughput is comparable — 82 tok/s vs 93 tok/s — so generation speed shouldn't drive your choice here. Look at the per-benchmark wins instead.

Provider. Google and Z AI sell to overlapping but distinct developer audiences: Google tends to ship frontier reasoning models with premium positioning, while Z AI often prices more aggressively. Your existing vendor relationships, billing, and SLA preferences may matter as much as the raw numbers above.

Workload cost. Workload scenarios (per million requests at 30M input + 15M output tokens): Gemma 4 31B (Non-reasoning) costs $10.50 ($126/year); GLM-4.7-Flash (Reasoning) costs $8.10 ($97/year). At a smaller 5M-input/2M-output scale (single-developer tool or prototype): Gemma 4 31B (Non-reasoning) ≈ $1.55/run, GLM-4.7-Flash (Reasoning) ≈ $1.15/run. At agent/realtime scale (200M input / 100M output per million requests): Gemma 4 31B (Non-reasoning) ≈ $70/run, GLM-4.7-Flash (Reasoning) ≈ $54/run. GLM-4.7-Flash (Reasoning) becomes more attractive at higher volume — the absolute per-token pricing difference compounds when you ship at scale.

Recommendation. Both models have legitimate use cases — the right answer depends on whether you are optimizing for benchmark ceiling, latency, or unit cost. Start with the cheaper / faster model, evaluate against your specific task, and only switch if the upgrade shows a meaningful lift.

Head-to-head deltas

  • Benchmark wins tie exactly at 1–1. The tiebreaker on raw benchmark parity will be price, speed, or capability coverage.

Benchmark Comparison

Data from Artificial Analysis API — 12 benchmarks

Intelligence Index
22.323.3
Coding Index
33.2
Math Index
GPQA Diamond
MMLU-Pro
LiveCodeBench
AIME 2025
MATH-500
Humanity's Last Exam
SciCode
IFBench
TerminalBench
Gemma 4 31B (Non-reasoning)1 wins
1 winsGLM-4.7-Flash (Reasoning)

Frequently Asked Questions

Which is cheaper, Gemma 4 31B (Non-reasoning) or GLM-4.7-Flash (Reasoning)?

GLM-4.7-Flash (Reasoning) is cheaper overall. Its blended price (3:1 input/output ratio) is $0.15/M tokens vs $0.21/M for Gemma 4 31B (Non-reasoning).

Which model performs better on benchmarks?

It's a tie — both models win 1 benchmarks each across 12 evaluated categories. See the detailed benchmark chart above for per-category results.

Which is faster for real-time applications?

GLM-4.7-Flash (Reasoning) generates tokens faster at 93 tok/s vs 82 tok/s. However, GLM-4.7-Flash (Reasoning) has lower time-to-first-token (1.24s vs 1.40s).

When should I use Gemma 4 31B (Non-reasoning) vs GLM-4.7-Flash (Reasoning)?

Choose based on your priorities: GLM-4.7-Flash (Reasoning) for lower cost, both perform similarly on benchmarks, and GLM-4.7-Flash (Reasoning) for faster generation. For latency-sensitive apps, check the TTFT comparison above.