GLM-4.7 vs GPT-5
Wins 2 of 7 areas
Coding · Math
Wins 5 of 7 areas
Agents · Reasoning · Facts · Long documents · Following instructions
GPT-5 is the stronger all-rounder.GLM-4.7 is cheaper and better at coding.
Scores updated · 40 tests both models report · How we compare
Where each one wins
Tests won in each of the seven areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.
- ReasoningHard problems that need careful thinking03GPT-53 of 4 tests · 1 tie
- FactsGetting facts right instead of making them up13GPT-53 of 4 tests
- AgentsCarrying out multi-step tasks on its own12GPT-52 of 3 tests
- Long documentsFinding answers in very long texts01GPT-51 of 1 test
- Following instructionsDoing exactly what it is asked01GPT-51 of 1 test
- CodingWriting and fixing software42GLM-4.74 of 7 tests · 1 tie
- MathCompetition and research-level math10GLM-4.71 of 1 test
Math, long documents and following instructions rest on a single test each.
What it costs
Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.
GLM-4.7 costs 77% less for the same work.
The biggest differences
The three tests each model wins by the widest margin. Scores are out of 100.
Where GPT-5 pulls ahead
- Short factual questions, answered correctlySimpleQA Verified+17.9points ahead
- Answers hard knowledge questions correctlyAA-Omniscience · Accuracy+11points ahead
- Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+10.8points ahead
Where GLM-4.7 pulls ahead
- Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+11.4points ahead
- Command-line tasks in a real terminalTerminal-Bench 2.1+10.1points ahead
- Olympiad math problems with short answersIMOAnswerBench+6points ahead
Every test, side by side
All 40 tests both models report. The winning score is in its model's colour; marks a score checked independently.
CodingGLM-4.7
- SWE-bench MultilingualGLM-4.7 by 11.466.755.3+11.4
- Terminal-Bench 2.1GLM-4.7 by 10.145.335.2+10.1
- SciCodeGLM-4.7 by 2.245.142.9+2.2
- LiveCodeBench v6GPT-5 by 2.184.987+2.1
- LMArena · WebDevGLM-4.7 by 19 rating points14361417+19 rating
- SWE-bench VerifiedGPT-5 by 1.173.874.9+1.1
- Terminal-Bench Hardtie31.832.6tie
AgentsGPT-5
- τ-Bench V3 · BankingGPT-5 by 9.912.222.1+9.9
- GDPValGLM-4.7 by 4.825.720.9+4.8
- BrowseCompGPT-5 by 2.95254.9+2.9
ReasoningGPT-5
- SimpleBenchGPT-5 by 947.756.7+9
- CritPtGPT-5 by 41.75.7+4
- Humanity's Last ExamGPT-5 by 1.127.428.5+1.1
- GPQA Diamondtie85.985.4tie
FactsGPT-5
- SimpleQA VerifiedGPT-5 by 17.932.250.1+17.9
- AA-Omniscience · AccuracyGPT-5 by 1129.340.3+11
- AA-Omniscience · Non-hallucinationGPT-5 by 10.8717.8+10.8
- Vectara HHEM hallucination ratelower is betterGLM-4.7 by 3.411.715.1+3.4
Other results19 tests, not counted
Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.
- AA-OmniscienceGPT-5 by 27.7-36.4-8.7+27.7
- xbench-DeepSearchGPT-5 by 25.552.377.8+25.5
- frontiermath_tier_4_v1GPT-5 by 12.5012.5+12.5
- τ²-Bench Telecom (AA run)GLM-4.7 by 11.195.984.8+11.1
- Terminal-BenchGPT-5 by 10.533.343.8+10.5
- vectara_avg_summary_lengthGPT-5 by 92.1 rating points70.6162.7+92.1 rating
- HMMT Feb. 2025GLM-4.7 by 8.897.188.3+8.8
- HLE (with tools)GLM-4.7 by 7.642.835.2+7.6
- Artificial Analysis Coding IndexGLM-4.7 by 7.545.337.8+7.5
- Terminal-Bench 2.0GLM-4.7 by 5.84135.2+5.8
- τ²-BenchGLM-4.7 by 587.482.4+5
- HMMT Nov. 2025GLM-4.7 by 4.393.589.2+4.3
- BrowseComp-ZHGLM-4.7 by 3.666.663+3.6
- vectara_factual_consistencyGLM-4.7 by 3.488.384.9+3.4
- MMLU-ProGPT-5 by 2.884.387.1+2.8
- AIME 2025GLM-4.7 by 1.195.794.6+1.1
- AA Intelligencetie22.223tie
- AA Agentic Indextie26.226.5tie
- vectara_answer_ratetie99.899.9tie
Questions people ask
Which is better, GLM-4.7 or GPT-5?
GPT-5 wins five of the seven areas where both have results: agents, reasoning, facts, long documents and following instructions. GLM-4.7 wins coding and math, and costs 77% less.
Which is better for coding?
GLM-4.7. It wins 4 of the 7 coding tests both models report; GPT-5 wins 2, and 1 is a tie.
Which is cheaper?
GLM-4.7 costs $0.53 per million input tokens and $2.10 per million output tokens; GPT-5 costs $1.25 and $10.00. That makes GLM-4.7 about 77% cheaper for the same work.
How do you compare the two?
We use the 40 benchmark tests both models have published scores on. The verdict counts the 21 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 19 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.