Price Per TokenPrice Per Token
OpenAI
OpenAI
vs
Z-ai

GPT-5 Codex vs GLM 5

A detailed comparison of pricing, benchmarks, and capabilities

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

Key Takeaways

GPT-5 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 Codex
Context Window
GPT-5 Codex
Speed
GPT-5 Codex

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

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

License & Release

PropertyGPT-5 CodexGLM 5
LicenseProprietaryOpen Source
AuthorOpenAIZ-ai
ReleasedSep 2025Feb 2026

GPT-5 Codex Modalities

Input
textimage
Output
text

GLM 5 Modalities

Input
text
Output
text

Related Comparisons

Compare GPT-5 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 Codex's score of 38.9.
GPT-5 Codex has a 400,000 token context window, while GLM 5 has a 202,752 token context window.
GPT-5 Codex supports vision. GLM 5 does not support vision.