█

AI/TLDR

Buy me a coffee
Buy me a coffee

Model comparison

GLM-4.7 vs GPT-5

Short answer

GLM-4.7 and GPT-5 split the 2 benchmarks both report evenly; GPT-5 is cheaper on input tokens ($1.3 vs $1.4 per 1M, 1.1×); GPT-5 has the larger context window (400K vs 200K); GLM-4.7 ships open weights while GPT-5 is API-only.

Specs and pricing side by side

SpecGLM-4.7GPT-5
MakerZ.ai (Zhipu / GLM)OpenAI
Released2025-12-222025-08-07
Context window200K400K
Max output128K128Ksame
Input price$1.40 / 1M tokens$1.25 / 1M tokens
Output price$2.20 / 1M tokens$10.00 / 1M tokens
Parameters355B total / 32B active (MoE)Not disclosed
LicenseMITProprietary
WeightsOpen weightsAPI only
ModalitiesTextText, Vision
Knowledge cutoffnot publishedSeptember 30, 2024

Benchmarks both models report

BenchmarkGLM-4.7GPT-5
SWE-bench Verified73.8%74.9%
AIME 202595.7%94.6%

Scores are as published by each maker or its cited source; harness, reasoning effort and date can differ between rows, so treat small gaps as ties. Sources are listed on each model page.

Which one should you pick?

Pick GLM-4.7 if…

  • You care about AIME 2025 (it scores higher on 1 shared benchmark).
  • You want to self-host or fine-tune (open weights, MIT).
  • Your use case is: autonomous and semi-autonomous coding agents that resolve real GitHub issues across multiple files.

Pick GPT-5 if…

  • You care about SWE-bench Verified (it scores higher on 1 shared benchmark).
  • Cost matters: input tokens cost 1.1× less ($1.3 vs $1.4 per 1M).
  • You need the longer context (400K vs 200K).
  • You need Vision input, which GLM-4.7 lacks.
  • Your use case is: agentic coding: multi-step bug fixing, refactoring, and pull-request-scale changes across a repository.

FAQ

Which is better, GLM-4.7 or GPT-5?

GLM-4.7 and GPT-5 split the 2 benchmarks both report evenly; GPT-5 is cheaper on input tokens ($1.3 vs $1.4 per 1M, 1.1×); GPT-5 has the larger context window (400K vs 200K); GLM-4.7 ships open weights while GPT-5 is API-only. The better pick depends on whether you value benchmark scores, price per token, context length or openness for your workload.

How much cheaper is GPT-5?

GLM-4.7: $1.40 / 1M tokens input, $2.20 / 1M tokens output. GPT-5: $1.25 / 1M tokens input, $10.00 / 1M tokens output (list API prices as published by each maker).

What are the context windows of GLM-4.7 and GPT-5?

GLM-4.7 offers 200K with up to 128K output; GPT-5 offers 400K with up to 128K output.

Is GLM-4.7 newer than GPT-5?

GLM-4.7 was released 2025-12-22; GPT-5 was released 2025-08-07.

Go deeper