Claude Sonnet 4vsGLM-5.1
Claude Sonnet 4 | GLM-5.1 | |
|---|---|---|
| Specifications | ||
Parameters | — | 744B |
Context window | — | 200k |
| Benchmarks | ||
Nonsense detection BullshitBench v2Given a confidently-worded but nonsensical prompt, does the AI spot that it makes no sense and push back — instead of playing along and inventing an answer? The score is how often it clearly called out the nonsense. Higher is better. | 30%Best | 22% |
Coding SWE-Bench VerifiedReal coding tasks pulled from open-source projects — the AI has to find and fix actual bugs. A human-checked version of the original SWE-Bench. Higher is better. | 72.7% | — |
Next.js coding Next.js EvalsVercel's open eval of how well AI coding agents build and migrate real Next.js apps — measured as the share of tasks the agent completes successfully. Higher is better. | — | 75% |
Agentic terminal coding Terminal-Bench 2.0Can the AI work in a command-line terminal — running commands and finishing technical setup tasks the way a developer would? (Version 2.0 of the test.) Higher is better. | — | 63.5% |
Web browsing BrowseCompCan the AI browse the web and track down hard-to-find answers? Higher is better. | — | 68% |
Multidisciplinary reasoning Humanity's Last Exam · with toolsHumanity's Last Exam — extremely hard expert questions across many subjects. “With tools” means the AI is allowed to search the web or run code while answering. Higher is better. | — | 52.3% |
Science GPQA DiamondGraduate-level science questions in biology, physics, and chemistry — hard enough that subject-matter PhDs score around 65%. Higher is better. | 75.4% | 86.2%Best |
Community preference Arena Elo (Text)Real people chat with two anonymous AIs side by side and vote for the answer they prefer. Votes become a chess-style Elo rating on arena.ai — it measures which AI people actually like, not test scores. Higher is better. | — | 1468 |
Community preference (code) Arena Elo (Code)Like the text arena, but people vote on which AI writes better code. The votes become a chess-style Elo rating on arena.ai. Higher is better. | — | 1518 |
| Overview | ||
| Company | Anthropic | Z.ai |
| Release date | May 22 2025 | Apr 7 2026 |
| Access | Proprietary | Open Weight |
Which is better: Claude Sonnet 4 or GLM-5.1?
Claude Sonnet 4 and GLM-5.1 are evenly matched across the 2 benchmarks they both report (BullshitBench v2, GPQA Diamond). Claude Sonnet 4 shipped 320 days before GLM-5.1, so benchmark comparisons should account for the intervening progress.
Claude Sonnet 4 is proprietary, while GLM-5.1 is open weight.
On BullshitBench v2, Claude Sonnet 4 leads at 30% vs GLM-5.1 at 22%. On GPQA Diamond, GLM-5.1 leads at 86.2% vs Claude Sonnet 4 at 75.4%.
Frequently asked questions
Claude Sonnet 4 was released by Anthropic on May 22 2025.
GLM-5.1 was released by Z.ai on Apr 7 2026.
GLM-5.1 leads on GPQA Diamond — Claude Sonnet 4 75.4% vs GLM-5.1 86.2%.
Claude Sonnet 4 is a proprietary model released by Anthropic. GLM-5.1 is an open weight model released by Z.ai.
Other comparisons
Claude Sonnet 4vsGPT-5.6 SolGLM-5.1vsGPT-5.6 SolClaude Sonnet 4vsGemini 3.6 FlashGLM-5.1vsGemini 3.6 FlashClaude Sonnet 4vsMuse GlimmerGLM-5.1vsMuse GlimmerClaude Sonnet 4vsGrok 4.5GLM-5.1vsGrok 4.5Claude Sonnet 4vsDeepSeek-V4-Flash-0731GLM-5.1vsDeepSeek-V4-Flash-0731Claude Sonnet 4vsMistral Medium 3.5GLM-5.1vsMistral Medium 3.5