Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...
Model details →Google: Gemma 4 31B (batch) vs Z.ai: GLM 4.7 Flash
Google: Gemma 4 31B (batch) and Z.ai: GLM 4.7 Flash are evenly matched on 6 axes — pick the one whose provider, latency, or licensing fits your stack.
As a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency. It is further optimized for agentic coding use cases, strengthening coding capabilities, long-horizon task planning,...
Model details →Side-by-side comparison
| Capability | Google: Gemma 4 31B (batch) | Z.ai: GLM 4.7 Flash | Winner |
|---|---|---|---|
| Context window Maximum number of input tokens the model can attend to in a single request. | 262K | 200K | 🏆 Google: Gemma 4 31B (batch) |
| Input price (per 1M) Cost per million input tokens billed by the provider. | $0.39 | $0.06 | 🏆 Z.ai: GLM 4.7 Flash |
| Output price (per 1M) Cost per million output tokens billed by the provider. | $0.97 | $0.40 | 🏆 Z.ai: GLM 4.7 Flash |
| Tool / function calling First-class support for emitting structured tool calls. | Yes | Yes | Tie |
| Vision input Accepts image inputs alongside text. | Yes | — | 🏆 Google: Gemma 4 31B (batch) |
| Reasoning mode Internal chain-of-thought / extended-thinking support. | Yes | Yes | Tie |
Frequently asked questions
Is Google: Gemma 4 31B (batch) better than Z.ai: GLM 4.7 Flash?
Google: Gemma 4 31B (batch) and Z.ai: GLM 4.7 Flash are evenly matched on 6 axes — pick the one whose provider, latency, or licensing fits your stack.
What's the price difference between Google: Gemma 4 31B (batch) and Z.ai: GLM 4.7 Flash?
Input: $0.39 vs $0.06 per 1M tokens. Output: $0.97 vs $0.40 per 1M tokens.
What context windows do Google: Gemma 4 31B (batch) and Z.ai: GLM 4.7 Flash support?
Google: Gemma 4 31B (batch) supports up to 262K tokens. Z.ai: GLM 4.7 Flash supports up to 200K tokens.
Do both Google: Gemma 4 31B (batch) and Z.ai: GLM 4.7 Flash support tool calling?
Google: Gemma 4 31B (batch): yes. Z.ai: GLM 4.7 Flash: yes.