| published by | Jessica Wachtel |
|---|---|
| in blog | The New Stack |
| published date | 2026-11-30 |
| original entry | GLM-5.4 vs. Claude Sonnet 5.5: Similar results on small jobs, paid for in time and tokens |
Z.ai makes a family of AI models called GLM, and it released the newest one, GLM-5.4, on November 23. Built for writing code, the company says GLM-5.4 beats the last version at writing tests, building features, fixing bugs, and working in the terminal. It can also look at images now, which the last version couldn’t.
Z.ai also made a bigger claim: A model works through each request in a series of steps called layers, and GLM-5.4 repeats 28 of those layers a second time for every token it generates. Z.ai says that extra pass enables GLM-5.4 to reason like models several times its size. The company hasn’t published test scores for GLM-5.4 itself to back up any of this, so I tested it myself.
I needed something to compare it to, and Z.ai’s instructions helped guide me. You get GLM-5.4 through a monthly subscription (I used the $18 tier). That subscription works with Claude Code, Anthropic’s coding tool. Claude Code usually runs on Anthropic’s models. Z.ai’s setup guide shows you how to put GLM-5.4 in the spots where three of them, Haiku, Sonnet, and Opus, normally go.
I went with Sonnet 5.5 because it’s the model GLM-5.4 would most likely replace based on its capabilities. Sonnet 5.5 is Anthropic’s everyday coding model, the one you’d use for ordinary work like building a page or fixing a bug. It also set a high bar the last time I tested it, scoring perfectly on every run. If GLM-5.4 is going to take over that everyday work, Sonnet 5.5 has to beat it.
I ran each model once per test, with the same instructions and the same tools for reading files, editing files, and running commands. GLM-5.4 ran through its subscription’s Claude-compatible connection, and Sonnet 5.5 ran through Anthropic’s API. Neither ran inside the Claude Code app itself.
I ran OpenAI’s GPT-5 on each test first to check that the test was hard enough, and rebuilt any test GPT-5 found too easy. Here are the final versions of the tests with GPT-5’s score for reference.
Build a page from screenshots (153 points) – Each model got three screenshots of a freight report and had to rebuild the page, including reading the numbers off its charts. This tests GLM-5.4’s new ability to look at images. GPT-5 scored 22
Make a slow program faster (no max). Each model got a slow, six-stage data pipeline and had to speed it up without changing its output. A stage with a wrong result scored zero. GPT-5 scored 345.5
Fix a real app (132 points): I undid 41 recent bug fixes in SQLGlot, an open-source tool that translates SQL between databases, and asked each model to fix them again. Hidden checks taken from the real fixes did the grading. GPT-5 scored 8
Reading a screenshot is a brand new skill for GLM-5.4, since GLM-5.3 only worked with text. GLM-5.4 scored 147 of 153, six points behind Sonnet 5.5’s perfect score.
If you hand it a screenshot to rebuild, you can trust the layout and should proofread the words.
GLM-5.4 read the bar heights and line positions off the charts almost exactly. Where it slipped tells you how to use it. All six missed points came from three place names with accented letters, such as “Malmø” for “Malmö.” GLM-5.4 can see the shape of a page and the size of a bar, but it’s less reliable on fine details in text. If you hand it a screenshot to rebuild, you can trust the layout and should proofread the words.
Both models also exerted different amounts of effort, by a huge margin. On launch day, Z.ai’s Zixuan Li warned that GLM-5.4 “loves going into a long ‘thunderous thinking’ mode” and suggested GLM-5.3-Flash for simpler tasks. Sonnet 5.5 got to a perfect page in 19 turns and about two minutes. GLM-5.4 needed 105 turns and about 40 minutes of working time, plus close to two hours waiting on the subscription’s five-hour usage limit.
The numbers:
GLM-5.4 won this one with 483.0 points to Sonnet 5.5’s 457.3. Each stage earns 10 points for every doubling of speed, and both models kept the output identical on all six stages. By my calculation, that works out to an average of about 265 times faster for GLM-5.4 and about 197 times faster for Sonnet 5.5.
That means GLM-5.4 can out-optimize Sonnet 5.5 when the job is self-contained, and it has room to keep trying. It kept trying for 137 turns and 37 minutes. Sonnet 5.5 stopped after 13 turns and less than two minutes, so you’re trading a somewhat better result for a much longer wait.
The numbers:
Here’s where I ran into challenges with both models. GLM-5.4 used up the subscription’s weekly allowance: 202 turns into the test, with 16 of 132 points and 2 of the 41 bugs fully fixed. The next tier costs $80 a month, a steep jump for someone at home who’s already paying for an Anthropic or OpenAI subscription. I’d rather pay per use through OpenRouter, but GLM-5.4 isn’t available there yet, so I never completed this test.
Sonnet 5.5’s problem was on my end. A spending cap in my test setup stopped it at turn 251. The code it had fixed up to that point was saved, so I raised the budget and started a new session that picked up from there.
GLM-5.4 scored 16 points when the allowance ran out. It was still working, so I can’t call that a final score or set it against Sonnet 5.5’s. What I can describe is how it was working. GLM-5.4 spent most of its 202 turns reading and searching through the code and rarely ran anything to test a fix. On an earlier, easier version of this test, that careful approach scored 94 of 97. In a large, real codebase, it used up the week’s allowance and fully fixed 2 bugs.
Its final summary said it had fixed 40 of the 41 bugs. My grading script… found only 15.
Sonnet 5.5 did finish, with 83 of 132 points and 15 bugs fully fixed. It worked differently than GLM-5.4, running commands constantly and checking its changes as it went, but it had its own issue. Its final summary said it had fixed 40 of the 41 bugs. My grading script, which runs checks the model never sees, found only 15. The second session’s 119 turns of changes didn’t make a single extra check pass.
Both models tended to patch the symptom they were shown and stop before they’d fixed the problem underneath it.
This isn’t a complete analysis, since GLM-5.4 never finished, but the data I have points to one pattern. Each bug report gave a single failing example and said it was only one symptom of the bug. Sonnet 5.5 made that example pass in 35 reports but fully fixed only 15 bugs. GLM-5.4 made it pass in 9 and fully fixed 2. Both models tended to patch the symptom they were shown and stop before fixing the problem underneath.
The numbers:
Give GLM-5.4 a small, well-defined job, and it’ll do about as well as Sonnet 5.5. It just takes a lot more steps to get there. Those steps add up, and after a week of testing, my subscription ran out before I finished the big bug-fixing job.
GLM-5.4 is as good as Sonnet 5.5 on small, well-defined jobs, but it’s slower, and it isn’t really cheaper, so it’s a second option to Sonnet, rather than a replacement. I wouldn’t use either model for bug fixes.
On bounded tasks, GLM-5.4’s quality matches Sonnet. GLM-5.4 came within six points of Sonnet on the screenshot rebuild and beat Sonnet on the optimization test. It just takes 5 to 10 times the turns and about 20 times longer to get the same result.
On price, the “cheaper” is a mirage. The tier that can carry a full workload runs $168 a month, between Anthropic’s $100 and $200 plans. The only way it comes out cheaper is to pay per use on OpenRouter for the odd job, when it becomes available.
AI Engineer Step by step guide to becoming an AI Engineer in 2026 Introduction Working With LLMs Context Engineering AI Models Embeddings & Vector Databases Embedding Models RAGs AI Agents AI Safety and Ethics Evaluation & ObservabiityYOUTUBE.COM/THENEWSTACK
Tech moves fast, don't miss an episode. Subscribe to our YouTube channel to stream all our podcasts, interviews, demos, and more.