Price Per TokenPrice Per Token
Google
Google
vs
Z-ai

Gemma 4 31B Instruct vs GLM 5

A detailed comparison of pricing, benchmarks, and capabilities

Get our weekly newsletter on pricing changes, new releases, and tools.

Join the Price Per Token Community

Key Takeaways

Gemma 4 31B Instruct wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Supports vision

GLM 5 wins:

  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Has reasoning mode
Price Advantage
Gemma 4 31B Instruct
Benchmark Advantage
GLM 5
Context Window
Gemma 4 31B Instruct
Speed
GLM 5

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

FeatureGemma 4 31B InstructGLM 5
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 4 31B InstructGLM 5
LicenseProprietaryOpen Source
AuthorGoogleZ-ai
ReleasedApr 2026Feb 2026

Gemma 4 31B Instruct Modalities

Input
imagetextvideo
Output
text

GLM 5 Modalities

Input
text
Output
text

Frequently Asked Questions

Gemma 4 31B Instruct has cheaper input pricing at $0.14/M tokens. Gemma 4 31B Instruct has cheaper output pricing at $0.40/M tokens.
GLM 5 scores higher on coding benchmarks with a score of 39.0, compared to Gemma 4 31B Instruct's score of 38.7.
Gemma 4 31B Instruct has a 262,144 token context window, while GLM 5 has a 202,752 token context window.
Gemma 4 31B Instruct supports vision. GLM 5 does not support vision.