Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Business
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
  1. Home
  2. /
  3. Compare

GLM 5.1 vs Gemma 4 31B

Compare GLM 5.1 from Z.ai and Gemma 4 31B from Google on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

GLM 5.1 vs Gemma 4 31B: side-by-side summary

GLM 5.1 and Gemma 4 31B are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

GLM 5.1, from Z.ai, has a 204,800-token context window and is priced at $0.966/M tokens input, $3.036/M tokens output on OpenRouter.

Gemma 4 31B, from Google, has a 262,144-token context window and is priced at $0.09/M tokens input, $0.34/M tokens output on OpenRouter.

Context window
  • GLM 5.1: 204,800 tokens
  • Gemma 4 31B: 262,144 tokens
Price
  • GLM 5.1: $0.966/M tokens input, $3.036/M tokens output
  • Gemma 4 31B: $0.09/M tokens input, $0.34/M tokens output
Provided by
  • GLM 5.1: Z.ai
  • Gemma 4 31B: Google
Favicon for z-ai
GLM 5.1
Favicon for google
Gemma 4 31B
Favicon for z-ai
GLM 5.1
Favicon for google
Gemma 4 31B

Overview

GLM 5.1
Author
Z.ai
Gemma 4 31B
Author
Google
GLM 5.1
Context length
205Ktokens
Gemma 4 31B
Context length
262Ktokens
GLM 5.1
Reasoning
Gemma 4 31B
Reasoning
GLM 5.1
Input modalities
Gemma 4 31B
Input modalities
GLM 5.1
Output modalities
Gemma 4 31B
Output modalities
model details, providers and pricing
model details, providers and pricing
GLM 5.1
Gemma 4 31B