← Blog

Is GLM 5.4 better than DeepSeek V4.1 Flash 1017 at coding?

Probably yes on the thin head-to-head data, but the honest verdict is not proven. KingBench 4, Arena WebDev, ModelDial and Z.ai's own 200-task study all lean GLM 5.4, while DeepSeek's terminal numbers are on older variants and against GLM 5.3. We confirmed what '1017' means, found extra like-for-like comparisons, and priced the cache-aware bill.

ChatOSSDecember 3, 202613 min read
GLM 5.4DeepSeek V4.1 Flash 1017Coding BenchmarksCost per TaskOpen WeightBenchmarks
Is GLM 5.4 better than DeepSeek V4.1 Flash 1017 at coding? — hero artwork

Probably yes on the limited head-to-head data, but the evidence is thin — that is the honest answer. Z.ai shipped GLM 5.4 on November 23, 2026 as a 750B-scale Loop Transformer flagship, initially limited to the GLM Coding Plan, ZCode and Z.ai Chat. DeepSeek V4.1 Flash 1017 is not a mystery build: we confirmed that 1017 is the October 17, 2026 dated checkpoint, served under the deepseek-flash API name with MIT open weights. Every like-for-like comparison we found leans GLM 5.4, but there are only four of them, no independent lab has published a GLM 5.4 SWE-bench, Terminal-Bench or Artificial Analysis Intelligence Index score, and the one direct head-to-head most people quote is a single YouTuber-run test. We verified each claim below, said which we could not confirm, and priced the cache-aware bill both ways.

The short version for a reader in a hurry: if your work is building apps and web front ends, GLM 5.4 is the likelier pick on the evidence we have. If it is terminal work, long agent loops, or anything where cost and latency dominate, DeepSeek V4.1 Flash 1017 is competitive and in several places cheaper by an order of magnitude. Neither conclusion is a lab-verified verdict, and the two model families are rarely run on the same benchmark variant at all.

What we actually know: the verified scorecard

The table separates independent labs, informal community tests and vendor-reported numbers, because those are not the same kind of evidence. Where a cell is blank, no published score for that model on that exact variant exists that we could verify — a blank is not a zero. Note the variant names: Terminal-Bench 2.0, Terminal-Bench 3.0 and Terminal-Bench 4.0 are different tests, as are DeepSWE v1.1 and Vibe Code Bench v1.1, and no number below can be subtracted from a number on a different row.

Benchmark / exact variantGLM 5.4DeepSeek V4.1 Flash 1017Source and typeDate
KingBench 4 (strict-v2)33.2/60 at max effort, 7th of 1931.0 (labelled "V4.1 Flash", no 1017 suffix)AICodeKing, informal YouTuber runNov 23, 2026
Code Arena WebDev1692 points, 15th overall, first among open models1660 points at $0.11 median cost per taskArena, independent human-vote leaderboardDec 2, 2026
ModelDial Coding Rankings v348.0/100 at max, rank 26/5645.4/100 at max, rank 31/56ModelDial, independent private test setsDec 3, 2026
Z.ai 200-scenario coding preferencewon 36.6%, tied 30.2%, lost 33.2% vs 1017the opponent in that paired studyZ.ai, vendor-reported, no task breakdownNov 23, 2026
Vibe Code Bench v1.1no entry87.73% at $0.58 per testvals.ai, independent, superseded by v1.1.1Nov 19, 2026
Kilo Bench, Terminal-Bench 2.0no entry75.3% at $2.58 per attempt (September 10 build, not 1017)Kilo Code, provider-run evalSep 10, 2026
Terminal-Bench 3.0 (retired)no entry30.0 vs GLM 5.3 at 28.3LLMBoard / LLMLearner, self-reported aggregatorNov 21, 2026
DeepSWE v1.1 (vendor table)no entry77.0 for 1017, 74.2 for the September build, GLM 5.3 66.9DeepSeek, vendor-reported, mini-swe-v2 harnessOct 17, 2026
Terminal-Bench 4.1 (Artificial Analysis)no entry32.3% vs GLM 5.3 at 40.9%Artificial Analysis, independent, index v5.0.2Dec 2, 2026
SWE-bench Verifiedno entryno entry (board saturated; GLM 5.3 95.40%)vals.ai, independent, no longer run on new releasesSep 1, 2026

Confirmation status, plainly: GLM 5.4's launch date, 750B-scale Loop Transformer architecture, 1M context, 128K max output, initial availability in the GLM Coding Plan, ZCode and Z.ai Chat, and its $1.40/$0.26/$4.40 rate card are all confirmed by Z.ai's own blog, model guide and pricing page. The KingBench 4 result, the Arena WebDev rank, the ModelDial score and Z.ai's 200-scenario win rate are all confirmed as published numbers, with the important caveats below. DeepSeek's 75.3% on Terminal-Bench 2.0, 74.2 on DeepSWE v1.1 and 30.0 on Terminal-Bench 3.0 are also real published numbers — but they belong to the September 10, 2026 V4.1 Flash build, not necessarily to the 1017 checkpoint, and they compare against GLM 5.3 rather than GLM 5.4. The claim that DeepSeek Flash matches Claude Sonnet 5.5 in VSCode while being faster and cheaper is anecdotal: we could not find a reproducible benchmark behind it, so we do not use it as evidence.

Where GLM 5.4 leads: app-building and web-dev

The one direct head-to-head most readers arrive with is KingBench 4, a six-task application-building suite run by the YouTuber AICodeKing. At max effort GLM 5.4 scored 33.2/60 (55.3%), ranked 7th of 19 and was the highest-scoring open model in that run, ahead of DeepSeek V4.1 Flash at 31.0 and GLM 5.3 at 27.5. That is a genuine same-variant comparison, and it is the only one inside a lab-style scoreboard rather than an Elo board or a preference study. It is also the thinnest kind of evidence: one informal tester, a preview build, some tasks self-graded by the model itself, and two simulator and container tasks re-run with reworded prompts. With the original prompts the same run scored 31.8, which would put GLM 5.4 behind Kimi K3.1 Pro and level with Muse Wonder Full in that table. The run also took 431 minutes and used 9 to 14 times the reasoning tokens of Gemini 4 Neon.

One suite, one scale: KingBench 4 (points out of 60)

GLM 5.4DeepSeek V4.1 FlashOther models in the same run

All six bars: AICodeKing's KingBench 4 (strict-v2) leaderboard, a single informal YouTuber-run test of six application builds, not an independent lab benchmark. GLM 5.4's 33.2 used a preview build and two reworded prompts; with the original prompts the same run scored 31.8. The DeepSeek bar is labelled "V4.1 Flash" without a "1017" suffix, so it may not be the October 17 checkpoint. No score from any other benchmark appears on this axis.

Arena's Code Arena WebDev is the strongest independent signal for GLM 5.4. On December 2, 2026, GLM 5.4 (Max) entered at 1692 points, 15th overall and first among open models, a 69-point jump over GLM 5.3 (Max) at 1623. Crucially, the same board has a DeepSeek entry: DeepSeek-V4.1-Flash-20261017 (Max) at 1660, third among open models, at $0.11 median cost per task against GLM 5.3's $1.41. That makes Arena a true head-to-head on one variant — 1692 vs 1660, a 32-point gap — and it says GLM 5.4's lead on human-voted web development is real but modest. Ratings move with votes: earlier ChatOSS articles quoted 1665 for the 1017 checkpoint on this board in October, and launch-week press reported 1670, so treat 1660 as the December 2 reading rather than a permanent number.

ModelDial Coding Rankings v3 is a like-for-like check that the original Q&A missed. Its 58-model board scores five weighted axes (backend 25%, frontend 20%, autonomous delivery 25%, visual aesthetics 15%, maintainability 15%) on private test sets. GLM 5.4 scores 48.0 at max, rank 26/56; DeepSeek V4.1 Flash (1017) scores 45.4 at max, rank 31/56. GLM 5.4's own gain over GLM 5.3 is small there, 48.0 vs 47.2, and GLM 5.3 actually leads on autonomous delivery, 66.4 vs 54.3 — a useful reminder that a higher overall number is not a win in every coding mode. ModelDial also revised this axis on November 30, which limits how far back its scores can be compared.

Finally, Z.ai's own 200-scenario coding study is the closest thing to a controlled head-to-head against the exact 1017 checkpoint. It reports GLM 5.4 winning 36.6%, tying 30.2% and losing 33.2% of paired comparisons — a 3.4-point margin, and only 52.4% of comparisons that produced a winner. It is vendor-reported, with no task breakdown, judge, sample size or confidence interval, so it supports “probably yes” but cannot prove it. Two further informal same-prompt comparisons point the same way with the same caveat: a December 1 Chinese six-task review found GLM 5.4 best on quality in five of six tasks but slowest in all six (32 minutes vs 9 minutes on one Three.js build), and a 30-run Crazyrouter test had GLM 5.4 correct on 25/25 shared objective tasks against DeepSeek's 21/25, while DeepSeek was far more reliable at raw parseable JSON (16/21 vs 3/19).

Where DeepSeek V4.1 Flash holds up: terminal and agentic tests

DeepSeek's reputation for agentic work comes from a different set of variants. Kilo Code's leaderboard reports 75.3% completion on Terminal-Bench 2.0 at $2.58 per attempt for the September 10 V4.1 Flash build; Kilo's 1017 page has no Kilo Bench result, so that number should not be silently carried over to the 1017 checkpoint. The DeepSeek model card reports DeepSWE v1.1 at 77.0 for 1017, up from 74.2 on the September build, with GLM 5.3 at 66.9; Terminal-Bench 4.0 at 42.3, up from 31.2, with GLM 5.3 at 37.9. Those are vendor numbers on a Claude Code and mini-swe-v2 harness, and the comparison column is GLM 5.3, not GLM 5.4.

The retired Terminal-Bench 3.0 board lists DeepSeek-V4.1-Flash at 30.0 against GLM 5.3 at 28.3, again a previous-generation comparison on a benchmark its publisher has since replaced. On vals.ai's Vibe Code Bench v1.1, the 1017 checkpoint scores 87.73% at $0.58 per test and 43.65M tokens — a strong, independently-run web-app result that has no GLM 5.4 counter-score because that board was superseded by v1.1.1 on November 19, four days before GLM 5.4 shipped. Vals.ai also stopped running SWE-bench Verified on new models in September 2026, so neither model has a fresh Verified row. Artificial Analysis has no GLM 5.4 Intelligence Index entry at all; its 1017-vs-GLM-5.3 comparison has both at 32 on index v5.0.2, with DeepSeek ahead on FrontierCode-AA 2.0 (28.2% vs 21.6%) and AA-Briefcase v1.1 (1570 vs 1498) but behind on Terminal-Bench 4.1 (32.3% vs 40.9%) at $0.60 vs $5.01 cost per task. In other words, even the terminal story is mixed once you name the variant and the runner.

The Claude and OpenAI mapping, briefly and in house style: on these boards GLM 5.4 sits below the Claude Opus 5.5 and Claude Fable 5.2 frontier (Arena WebDev rates Opus 5.5 Max at 1817 and KingBench 4 has Fable 5.2 at 42) and around the GPT-6.1 Sol tier on app-building; DeepSeek 1017 is a Flash-tier model that shows up near Claude Sonnet 5.5 and GPT-6.1 Sol on selected agentic tests at a fraction of their price. Neither is a verified Opus-class replacement, and the Sonnet 5.5 VSCode claim specifically remains anecdotal.

Flash vs flagship: speed and the cache-aware bill

The two models are built for different jobs. GLM 5.4 is a 750B-scale flagship that loops 28 GLM-5 layers twice for deeper reasoning; Z.ai itself warns of “marathon thinking” and quotes up to 200 tokens per second off-peak and 70 to 80 at peak. DeepSeek V4.1 Flash 1017 is a sparse MoE at roughly 748B total parameters (552B backbone plus 196B Engram) with only 8B active during prefill and 16B during decode, built to be fast and cheap. That difference shows up in the six tasks above, where GLM 5.4 was slowest every time, and decisively in the rate cards.

PropertyGLM 5.4DeepSeek V4.1 Flash 1017
Input / 1M$1.40$0.15 off-peak, $0.30 peak
Cached input / 1M$0.26$0.003 off-peak, $0.006 peak
Output / 1M$4.40$0.60 off-peak, $1.20 peak
Context / max output1M / 128K1M / 384K
Weights / licenceplanned after safety hardening; not yet publicMIT, open weights on Hugging Face
AvailabilityCoding Plan, ZCode, Z.ai Chat; pay-as-you-go API opened Dec 2, 2026first-party API plus many third-party hosts

Putting those cards through the repo's established agent-hour profile — 31.0M cache reads, 175K uncached input and 107K output — is where the “probably yes on quality” verdict meets its limit. In full, the two rate cards are GLM 5.4 at $1.40 input, $0.26 cached input and $4.40 output per million tokens, against DeepSeek 1017 at $0.15/$0.60 off-peak, $0.30/$1.20 peak and $0.003/$0.006 cache reads. GLM 5.4 costs $8.78 for that hour; DeepSeek 1017 costs $0.18 off-peak or $0.37 at peak, roughly 49 and 24 times cheaper. The gap is mostly the cache line: GLM 5.4 bills 31 million cached reads at $0.26 per million, while DeepSeek bills them at $0.003. A sensitivity ladder keeps the comparison honest: at 90% cache hits GLM 5.4 is $12.13 against $0.62 off-peak and $1.23 at peak, and with zero caching it is $44.12 against $4.74 and $9.48. DeepSeek's peak clock applies only in 01:00-04:00 and 06:00-10:00 UTC on weekdays; GLM 5.4 has no off-peak discount. None of this says which model writes better code — it says what a finished task costs at the cache-hit rate your agent actually achieves.

Cost per modeled agent hour — the cache decides ($)

DeepSeek 1017, off-peakDeepSeek 1017, peakGLM 5.4, list price

Modeled at GLM-5.4's $1.40/$4.40/$0.26 list card and DeepSeek's $0.15/$0.60/$0.003 off-peak and $0.30/$1.20/$0.006 peak card. The 31.0M cache reads, 175K uncached input and 107K output are a modeled agent hour, not a benchmark average; the other bars re-run the same total input at 90% cache hits and with caching off. GLM-5.4 has no peak/off-peak discount. Cost is not quality: this chart says nothing about which model writes better code.

The caveats, all of them

First, the benchmarks are not comparable with each other. A 33.2/60 on KingBench 4, 1692 Arena points, 48.0 on ModelDial, 75.3% on Terminal-Bench 2.0 and 87.73% on Vibe Code Bench v1.1 live on different scales, different task sets and different runners; none can be subtracted from another, which is why the chart above plots only one suite on one axis. Second, coverage is thin because GLM 5.4 launched on November 23, 2026: as of December 3 there is no GLM 5.4 entry on SWE-bench Verified, SWE-bench Pro, Terminal-Bench 4.1 or the Artificial Analysis Intelligence Index, and the independent boards that do have DeepSeek 1017 rows predate the launch. Third, the 1017 question is now answered — it is the October 17, 2026 checkpoint, confirmed by DeepSeek's dated release note, its pricing page, which maps deepseek-flash to DeepSeek-V4.1-Flash-1017, the MIT-licensed Hugging Face card and Kilo's own description — but several of the DeepSeek numbers in circulation are for the earlier September 10 build, so a version mismatch may invalidate those comparisons. KingBench 4 in particular labels its DeepSeek row simply "V4.1 Flash" with no 1017 suffix.

Fourth, most DeepSeek-vs-GLM terminal comparisons are against GLM 5.3, not GLM 5.4, and GLM 5.3 is not a proxy for its successor: on Terminal-Bench 4.1 Artificial Analysis has GLM 5.3 ahead 40.9% to 32.3%, while DeepSeek's own vendor table has 1017 ahead of GLM 5.3 42.3 to 37.9 on Terminal-Bench 4.0. Fifth, the informal reports cut both ways: the Claude Sonnet 5.5 VSCode claim is unverifiable anecdote, KingBench 4 used a preview build with some tasks self-graded and two prompts reworded, and the Chinese six-task review found GLM 5.4 best on quality but slowest on every task, taking nearly two hours on one 3D build. Sixth, the licensing asymmetry is real: DeepSeek 1017 is MIT open weights you can self-host today, while GLM 5.4's weights are still only promised after safety hardening, so “open model” in the Arena headline means a planned release, not a downloadable checkpoint. Finally, community sentiment trackers show GLM 5.4's first week sliding on speed and quota complaints — useful color, not a benchmark.

How to decide

If you care most about quality on app-building and web-dev work, GLM 5.4 is the likelier pick: it leads the one direct KingBench 4 comparison, the Arena WebDev board, ModelDial Coding Rankings v3 and Z.ai's own paired study. If the work is terminal-heavy, agentic, or budget- and latency-sensitive — especially cache-heavy agent loops — DeepSeek V4.1 Flash 1017 is competitive and dramatically cheaper, with MIT weights and a 384K output ceiling. Both statements are “probably”, not “proven”: the head-to-head sample is four comparisons, half of them informal or vendor-reported, and no independent lab has run both models on the same variant yet.

So run both on a few of your own tasks. Hold the environment constant (same repository revision, prompts, tools, reasoning setting, time budget and retry policy), define a pass condition before you start, count accepted changes rather than subjective impressions, and divide total billed spend by accepted tasks. Include one multi-file fix, one greenfield web app and one task with a strict time budget. A dozen representative tasks on your own codebase will settle this far more reliably than any leaderboard in this article — and if you find a GLM 5.4 Terminal-Bench 4.1 or SWE-bench entry, check the model ID, the variant, the runner and the effort tier before believing the number.

Sources

Reporting referenced in this article.

  1. GLM-5.4: Toward Generalized Coding with Our First Loop Transformer (Nov 23, 2026: 750B-scale Loop Transformer looping 28 GLM-5 layers twice, 1M context, 128K max output, launch limited to GLM Coding Plan/ZCode/Z.ai Chat, API after safety evaluation, open weights planned, up to 200 tok/s off-peak, 'marathon thinking' caveat, 200 real-world coding scenarios) — Z.ai · November 23, 2026
  2. Pricing — GLM-5.4 $1.4 input / $0.26 cached input / $4.4 output per 1M tokens, unchanged from GLM-5.3; GLM-5.3-Flash $0.15/$0.03/$0.50 — Z.ai Docs
  3. Models & Pricing — deepseek-flash is DeepSeek-V4.1-Flash-1017: 1M context / 384K max output, off-peak $0.15/$0.60/$0.003 and peak $0.30/$1.20/$0.006 per 1M tokens; peak hours 01:00-04:00 and 06:00-10:00 UTC weekdays — DeepSeek API Docs
  4. DeepSeek-V4.1-Flash-1017: Wish-Driven Programming Made Real — the October 17, 2026 dated checkpoint (the '1017' suffix), a Pareto improvement over V4.1-Flash, released as MIT open weights on Hugging Face and ModelScope — DeepSeek API Docs · October 17, 2026
  5. deepseek-ai/DeepSeek-V4.1-Flash-1017 — model card (MIT license, 763B params, vendor table: DeepSWE v1.1 77.0 up from 74.2, Terminal-Bench 4.0 42.3 up from 31.2, GLM-5.3 66.9 and 37.9; Claude Code and mini-swe-v2 harnesses) — Hugging Face · October 17, 2026
  6. DeepSeek V4.1 Flash 1017 is the October 17, 2026 snapshot of V4.1 Flash served as deepseek-flash (created Oct 17, 2026, 1M/384K); Kilo's separate September 10 V4.1 Flash page reports Kilo Bench 75.3% on Terminal-Bench 2.0 at $2.58 per attempt — Kilo Code · October 17, 2026
  7. GLM-5.4 is The Best Open Coding Model Yet! (My Early Access Review) — KingBench 4 strict-v2: GLM-5.4 33.2/60 at max effort, 7th of 19, DeepSeek V4.1 Flash 31.0, GLM-5.3 27.5; four effort tiers, preview build, two reworded prompts, 431-minute run — AICodeKing · November 23, 2026
  8. Arena: GLM-5.4 (Max) ranks 15th in Code Arena WebDev with 1692 points, first among open-source models (Dec 2, 2026; Agent Arena Index 1134, 26th overall) — AI Tracker · December 2, 2026
  9. Code Arena WebDev leaderboard (Dec 2, 2026, 1,077,692 votes): DeepSeek-V4.1-Flash-20261017 (Max) 1,660 at $0.11 median cost per task, GLM-5.3 (Max) 1,623, Claude Opus 5.5 (Max) 1,817; ratings move as votes arrive — Arena · December 2, 2026
  10. GLM-5.4 Benchmarks: Coding Scores and Leaderboards (KingBench 4 six 10-point app builds, Bug Hunt Bench 28/105 vs GLM-5.3 19/105, ModelDial 48.0 vs 47.2, no GLM-5.4 entry on SWE-bench Verified/SWE-bench Pro/Terminal-Bench 4.1/AA Intelligence Index as of Dec 2, Z.ai 200-scenario win rate 51.1/25.7/23.1 vs GLM-5.3) — EvoLink · December 2, 2026
  11. Does GLM-5.4 beat Kimi and DeepSeek? — Z.ai's 200-scenario head-to-head: vs DeepSeek V4.1 Flash 1017 GLM-5.4 won 36.6%, tied 30.2%, lost 33.2% (3.4-point margin); no task breakdown, judge, sample size or confidence interval disclosed — CCNAVX · November 25, 2026
  12. Vibe Code Bench v1.1 — DeepSeek V4.1 Flash 1017 87.73% at $0.58 per test / 43.65M tokens; superseded by v1.1.1 on Nov 19, 2026; the SWE-bench Verified board stopped running new models in September, so neither GLM-5.4 nor 1017 has a row there — vals.ai · November 19, 2026