← All Comparisons

GLM-4.7 vs GPT-5.2 Codex

A detailed comparison of GLM-4.7 (Zhipu AI) and GPT-5.2 Codex (OpenAI) across pricing, performance, and features.

Pricing Comparison

MetricGLM-4.7GPT-5.2 CodexDifference
Input / 1M tokens$0.60$1.75+192%
Output / 1M tokens$2.20$14.00+536%
Context window200K200K
Max output128K65.536K

Benchmark Comparison

BenchmarkGLM-4.7GPT-5.2 Codex
MMLU-Pro84.3%89%
HumanEval95.5%
GPQA85.7%76%

Capabilities

CapabilityGLM-4.7GPT-5.2 Codex
code
reasoning
text
tool-use
vision

GLM-4.7 Strengths

  • Excellent value — strong benchmarks at $0.60/$2.20
  • Open-weight (MIT license)
  • Top scores on AIME 25 and BrowseComp

GLM-4.7 Weaknesses

  • No tool-use support yet
  • 358B parameters — still heavy for self-hosting
  • Smaller ecosystem than OpenAI/Anthropic

GPT-5.2 Codex Strengths

  • Strong coding performance
  • Available via API now
  • 200K context window

GPT-5.2 Codex Weaknesses

  • Being superseded by 5.3
  • Higher output cost than some competitors

Quick Verdict

Best value: GLM-4.7 is the more affordable option at $0.6/$2.2 per 1M tokens.

Higher benchmarks: GPT-5.2 Codex scores higher on average across available benchmarks (86.8% avg).

Choose GLM-4.7 if cost matters most. Choose GPT-5.2 Codex if you need the best possible quality for complex tasks.

More Comparisons