Price Per TokenPrice Per Token
OpenAI
OpenAI
vs
Z-ai

GPT-5.1-Codex vs GLM 5

A detailed comparison of pricing, benchmarks, and capabilities

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

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

Key Takeaways

GPT-5.1-Codex wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at math
  • Supports vision

GLM 5 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Better at coding
Price Advantage
GLM 5
Benchmark Advantage
GPT-5.1-Codex
Context Window
GPT-5.1-Codex
Speed
GPT-5.1-Codex

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

FeatureGPT-5.1-CodexGLM 5
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGPT-5.1-CodexGLM 5
LicenseProprietaryOpen Source
AuthorOpenAIZ-ai
ReleasedNov 2025Feb 2026

GPT-5.1-Codex Modalities

Input
textimage
Output
text

GLM 5 Modalities

Input
text
Output
text

Related Comparisons

Compare GPT-5.1-Codex with:

Compare GLM 5 with:

Frequently Asked Questions

GLM 5 has cheaper input pricing at $0.72/M tokens. GLM 5 has cheaper output pricing at $2.30/M tokens.
GLM 5 scores higher on coding benchmarks with a score of 39.0, compared to GPT-5.1-Codex's score of 36.6.
GPT-5.1-Codex has a 400,000 token context window, while GLM 5 has a 202,752 token context window.
GPT-5.1-Codex supports vision. GLM 5 does not support vision.