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: 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
  • GLM 5.1 model details, providers and pricing
  • Gemma 4 31B model details, providers and pricing