Coding work
Code generation, repair, and software-engineering tasks
GLM-5.1
GLM-5.1 leads on the public coding lane, 51.5 to 48.5, with Supported evidence for both models, although the 90% intervals overlap.
Updated September 23, 2026. Rank says GLM-5.1 is ahead. Price, access, and your workload can each overturn that. Public scores include evidence status and uncertainty.
Both of these models will change. Get the price, version and retirement notices for the pair, each with its source. Follow model changes
GLM-5.1 has the higher public score estimate, 57.71 versus 56.73, but the 90% score intervals overlap. Treat that as a lead, not a settled winner. 14 results are shared. Category rows resting on Estimated evidence or different benchmark sets are marked directional and do not name a winner.
Recommendations appear only when a shared evidence basis or an explicit operating constraint supports the call. Secondary and unsupported use cases stay disclosed below the initial list.
Code generation, repair, and software-engineering tasks
GLM-5.1
GLM-5.1 leads on the public coding lane, 51.5 to 48.5, with Supported evidence for both models, although the 90% intervals overlap.
Prompts that approach the documented context limit
GLM-5.1
GLM-5.1 has the larger documented context window.
1K fresh input + 500 output tokens
GLM-5.1
GLM-5.1 has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.
50K fresh input + 3K output tokens
GLM-5.1
GLM-5.1 has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.
Tool use, computer use, and multi-step task completion
Not enough matched evidence
GLM-5.1 is scored on Estimated evidence for agentic, so the reading is directional rather than like-for-like.
200K cached + 20K fresh input + 10K output tokens
Not enough matched evidence
The page does not recommend a cost winner because at least one model cannot fit the stated workload in one request. Claude Sonnet 4.6 does not fit this workload in one request. GLM-5.1 does not fit this workload in one request. Claude Sonnet 4.6 has no published cached-input rate, so cached tokens use its listed input rate. GLM-5.1 has no published cached-input rate, so cached tokens use its listed input rate.
Choose a job from the LLM Selector's task catalog to see the category row it rests on, under the same basis rules as the table below. A directional row stays directional; choosing a job never creates a winner.
The same task catalog as the LLM Selector. Each job names the evidence surface it rests on; nothing here adds a new score.
Like-for-like · BenchAlign v5.6
GLM-5.1 leads the like-for-like coding row, although the 90% intervals overlap.
Coding scores combine specific tasks and setups. Match the editor, harness, and effort to your workflow.
Shared results can support a head-to-head reading. Results present for only one model describe coverage, not superiority.
2 categories rest on Estimated evidence or different evidence sets. Those rows remain visible for coverage context but do not name a winner.
Only shared public evidence is shown. Sparse evidence stays a ruled list rather than being closed into a radar shape.
Too few matched category axes support a radar. The ruled list below shows only shared benchmark results; positions use each benchmark’s normalized display scale when available.
Terminal-Bench 2.0Agentic
Normalized gap 4.4FrontierMath v2 (Tier 4)Math
Normalized gap 4.2HLEKnowledge
Normalized gap 3.3SWE-RebenchCoding
Normalized gap 2.0FrontierMath v2 (Tiers 1-3)Math
Normalized gap 1.0Each row shows the public-lane category score for both models: the BenchAlign v5.6 lane for agentic, coding, and knowledge, and the weighted public rows elsewhere, with the same rank each model page reports. A row is like-for-like only when both scores rest on Supported evidence or the same weighted set. Directional and not-comparable rows remain visible, but they never receive a winner.
| Category | Claude Sonnet 4.6 | GLM-5.1 | Basis | Reading |
|---|---|---|---|---|
| Coding | 48.5Supported · #41/135 | 51.5Supported · #36/135 | Like-for-likeBenchAlign v5.6 lane · 8 vs 7 public rows | GLM-5.1 leads · intervals overlap |
| Knowledge | 50.8Supported · #52/160 | 50.2Supported · #54/160 | Like-for-likeBenchAlign v5.6 lane · 6 vs 4 public rows | Claude Sonnet 4.6 leads · intervals overlap |
| Agentic | 41.0Supported · #44/105 | 42.1Estimated · #43/105 | Directional onlyBenchAlign v5.6 lane · 9 vs 9 public rows | Directional only |
| Instruction following | 46.6#88/124 | 92.4#4/124 | Directional onlyProvisional lane · 0 vs 0 weighted rows | Directional only |
| Reasoning | 67.9Unranked · 2 rankable rows | 71.7Unranked · 2 rankable rows | Not comparableProvisional lane · 0 vs 0 weighted rows | Not comparable |
| Multimodal | 54.1#35/50 | Not ranked | Not comparableProvisional lane · 1 vs 0 weighted rows | Not comparable |
| Multilingual | Not ranked | Not ranked | Not comparableProvisional lane · 0 vs 0 weighted rows | Not comparable |
| Math | 48.8Unranked · 2 rankable rows | 63.8#3/7 | Not comparableProvisional lane · 2 vs 4 weighted rows | Not comparable |
Ranks count the models scored in each category’s lane, so the agentic, coding, and knowledge denominators (BenchAlign v5.6) differ from the provisional-lane categories. Unranked scores sit on the provisional lane’s scale but never name a winner. Like-for-like rows within 0.5 points read as a practical tie.
Three fixed token mixes turn per-token rates into comparable decisions. Each scenario states context fit and whether cached input had to fall back to the published list-input rate.
1K fresh input + 500 output tokens
GLM-5.1 has the lower modeled cost
Costs use the listed standard API rates.
50K fresh input + 3K output tokens
GLM-5.1 has the lower modeled cost
Costs use the listed standard API rates.
200K cached + 20K fresh input + 10K output tokens
Claude Sonnet 4.6 does not fit this workload in one request. GLM-5.1 does not fit this workload in one request. Claude Sonnet 4.6 has no published cached-input rate, so cached tokens use its listed input rate. GLM-5.1 has no published cached-input rate, so cached tokens use its listed input rate.
Sourced differences are shown directly. Missing facts stay explicit instead of being inferred from a model name or family.
Maximum documented context; output-token limits may be lower.
Claude Sonnet 4.6
200K
GLM-5.1
203K
Claude Sonnet 4.6
Not sourced
GLM-5.1
Not sourced
A missing cached-input rate falls back to the listed input rate only in the stated workload estimate.
Claude Sonnet 4.6
Not published
GLM-5.1
Not published
Claude Sonnet 4.6
Not sourced
GLM-5.1
Not sourced
Claude Sonnet 4.6
Not sourced
GLM-5.1
Not sourced
Claude Sonnet 4.6
Not sourced
GLM-5.1
Not sourced
Claude Sonnet 4.6
Non-Reasoning
GLM-5.1
Reasoning
Claude Sonnet 4.6
Proprietary
GLM-5.1
Open Weight
Claude Sonnet 4.6
Proprietary
GLM-5.1
Open Weight
Claude Sonnet 4.6
2026-02-01
GLM-5.1
2026-04-07
GLM-5.1 has the higher public score estimate, 57.71 versus 56.73, but the 90% score intervals overlap. The higher estimate is not a decisive winner because the uncertainty ranges overlap.
GLM-5.1 leads the public coding lane, 51.5 to 48.5, with Supported evidence for both models, although the 90% intervals overlap.
GLM-5.1 scores higher for agentic tasks on the public lane, 42.1 to 41. GLM-5.1 is scored on Estimated evidence for agentic tasks, so the reading is directional rather than like-for-like. BenchLM does not name a winner for agentic tasks from a directional reading; read the shared benchmark rows directly and test the models on the same task set.
For the stated presets, chat costs $0.0105 on Claude Sonnet 4.6 and $0.0036 on GLM-5.1; repository review costs $0.195 and $0.0832; the cache-heavy agent loop costs $0.81 and $0.352. Claude Sonnet 4.6 does not fit this workload in one request. GLM-5.1 does not fit this workload in one request. Claude Sonnet 4.6 has no published cached-input rate, so cached tokens use its listed input rate. GLM-5.1 has no published cached-input rate, so cached tokens use its listed input rate.
GLM-5.1 has the larger documented context window: 203K, compared with 200K.
Estimates at 50,000 req/day · 1000 tokens/req average.
The full public result ledger is available for audit without forcing a wide desktop table onto a phone.
Terminal-Bench 2.0
GLM-5.1 leads this result
OSWorld-Verified
Not directly comparable
Claw-Eval
Shared sourceClaude Sonnet 4.6 leads this result
CyberGym
Shared sourceGLM-5.1 leads this result
Gert Labs
Shared sourceClaude Sonnet 4.6 leads this result
OSWorld 2.0
Not directly comparable
JobBench
Not directly comparable
Terminal-Bench 2.1 (Vals)
Claude Sonnet 4.6 leads this result
ApprenticeBench
Not directly comparable
BrowseComp
Not directly comparable
τ³-bench results
Not directly comparable
MCP Atlas
Not directly comparable
ResearchClawBench
Not directly comparable
SWE-bench Verified
Not directly comparable
SWE-Rebench
GLM-5.1 leads this result
React Native Evals
Not directly comparable
Vibe Code Bench
Shared sourceClaude Sonnet 4.6 leads this result
cursorBench31
Not directly comparable
FrontierCode 1.1 Main
Not directly comparable
LiveCodeBench (Vals)
Claude Sonnet 4.6 leads this result
SWE-bench (Vals)
Claude Sonnet 4.6 leads this result
SWE-bench Pro
Not directly comparable
NL2Repo
Not directly comparable
OpenHarmony Bench
Not directly comparable
CharXiv
Not directly comparable
GPQA
Not directly comparable
SuperGPQA
Not directly comparable
MMLU-Pro
Not directly comparable
HLE
GLM-5.1 leads this result
GPQA Diamond (Vals)
Claude Sonnet 4.6 leads this result
MMLU-Pro (Vals)
Claude Sonnet 4.6 leads this result
GPQA-D
Not directly comparable
FrontierMath v2 (Tiers 1-3)
Shared sourceGLM-5.1 leads this result
FrontierMath v2 (Tier 4)
Shared sourceGLM-5.1 leads this result
AIME26
Not directly comparable
HMMT Nov 2025
Not directly comparable
HMMT Feb 2026
Not directly comparable
MMAnswerBench
Not directly comparable
One weekly email when material rank, price, or benchmark evidence changes make this matchup worth revisiting.
Read a sample issueJoin 2,000+ readers.
Last updated September 23, 2026