GLM 4.6 is the first open-weight model that makes Opus pricing look optional

4 min read 1 source clear_take
├── "GLM 4.6/5.2 has crossed the production threshold for open-weight coding models, making the price gap impossible to ignore"
│  ├── techstackups.com (techstackups.com) → read

The comparison article frames GLM 5.2 as the first open-weight checkpoint that competes credibly with Opus on real coding work, while costing roughly 7x less on input and 34x less on output tokens. The piece argues the subscription tiers ($3/$15 vs Anthropic's $20/$200) make the value proposition unsubtle: same agent loop at a fraction of the bill, with self-hostable weights as a fallback.

│  └── @ritzaco (Hacker News, 366 pts) → view

By submitting the comparison and driving it to 366 points, ritzaco surfaced the argument that GLM's price/performance ratio has shifted enough to warrant serious attention. The framing positions GLM as a genuine alternative rather than a hobbyist curiosity.

├── "Opus still wins clearly on hard problems — cross-file reasoning, ambiguous specs, and long-context coherence"
│  └── top10.dev editorial (top10.dev) → read below

The synthesis acknowledges practitioner consensus that Opus pulls ahead on cross-file reasoning, ambiguous specs, and holding 80k+ tokens coherently across multi-hour sessions. The interesting question isn't whether Opus wins but by how little, and at what cost multiple — implying Opus remains the right choice when the task complexity justifies the bill.

├── "GLM is competitive on bounded tasks — single-file edits, short tool-use loops, and standard refactors"
│  └── @HN practitioners (Claude Code / Aider / Cline users) (Hacker News) → view

Practitioners who ran GLM 4.6 through their own agent harnesses report it lands real punches on single-file edits, tool-use loops under ~15 steps, and Python/TypeScript refactors. The position is that for the majority of day-to-day coding agent work, GLM is good enough and the cost delta makes it the rational default.

└── "The open-weight coding wall has finally been breached"
  └── top10.dev editorial (top10.dev) → read below

The synthesis argues that for 18 months, open-weight models like Qwen 2.5 Coder and DeepSeek V3 could pass leetcode but fell apart on real repos with agent harnesses — failing at tool use, multi-step planning, and recovery from failed edits. GLM 4.6 is framed as the first open-weight checkpoint where that wall is visibly cracking, marking a structural shift rather than an incremental improvement.

What happened

A techstackups.com comparison pitting GLM 5.2 against Claude Opus climbed to 366 on Hacker News this week — not because the benchmarks are surprising, but because the price column finally is. Zhipu AI's GLM family (the post benchmarks the 4.6/5.2-class checkpoint that's been circulating on OpenRouter and the official z.ai endpoint) lands at roughly $0.60 per million input tokens and $2.20 per million output, against Opus 4's $15/$75. That's a ~7x and ~34x gap on the two halves of the bill that actually move when you run a coding agent.

The HN thread did what HN threads do: people pulled out their own agent harnesses and ran the comparison live. The consensus from practitioners running Claude Code, Aider, and Cline against both models is that GLM 4.6 now lands a real punch on single-file edits, tool-use loops under ~15 steps, and Python/TypeScript refactors, while Opus still pulls clearly ahead on cross-file reasoning, ambiguous specs, and anything that requires holding 80k+ tokens of context coherently across a multi-hour session. The interesting part isn't that Opus wins — it's by how little, and at what multiple of the cost.

Zhipu also ships GLM with a $3/month and $15/month subscription tier through z.ai's coding plan, explicitly positioned against Anthropic's $20 Pro and $200 Max plans. The pitch is unsubtle: same agent loop, fraction of the bill, weights you can self-host if you ever need to.

Why it matters

For most of 2024 and the first half of 2025, the open-weight coding story was "close enough for hobbyists, not close enough for production." Qwen 2.5 Coder, DeepSeek V3, and the early GLM checkpoints could pass leetcode and write a React component, but they fell apart the moment you handed them a real repo and an agent harness. The wall was always the same: tool use, multi-step planning, and the ability to recover from a failed edit without spiraling.

GLM 4.6 is the first open-weight model where that wall has visibly cracked — not vanished, cracked. Independent runs on SWE-bench Verified put it in the 50–55% range depending on scaffold, against Opus 4's ~67% and Sonnet 4.5's ~62%. That's still a gap. But it's a gap measured in single-digit percentage points, not in "can it even use a tool." And the cost gap is measured in orders of magnitude.

The community reaction on HN split predictably into two camps. The Opus loyalists pointed out, correctly, that benchmarks compress what actually matters: a 10% lower success rate on a 20-step agent loop compounds into a 65% lower end-to-end completion rate, and the human time spent unsticking a confused agent costs more than the tokens you saved. The GLM camp pointed out, also correctly, that Opus at $75/MTok output makes any agent that retries, reflects, or runs in a loop economically painful at scale — and that a routed setup where GLM handles 80% of the steps and Opus handles the 20% that need real reasoning is now a viable architecture, not a thought experiment.

What's quietly more important than the head-to-head: Zhipu is shipping these weights. Opus is an API. If you care about reproducibility, air-gapped deployments, fine-tuning on proprietary code, or just not being one pricing-page update away from your dev tooling tripling in cost, the open-weight column on this comparison isn't a tiebreaker — it's the entire argument.

What this means for your stack

If you're running an AI coding agent more than a couple hours a day, three concrete moves are worth making this week.

First, instrument your current spend. Most teams running Claude Code or Cursor have no idea what their per-task cost actually is — they see the monthly bill and feel vaguely uneasy. Pull the last 30 days of token usage, divide by completed tasks (PRs merged, tickets closed, whatever your unit is), and you have a number. That number is your switching threshold.

Second, try a routed config. Cline, Aider, and Roo Code all support per-step model selection. The pattern that's working for people in the HN thread: GLM 4.6 as the default for file reads, edits, and shell calls; Opus 4 (or Sonnet 4.5) invoked explicitly for planning steps, architectural decisions, and any step where the previous step failed. The router logic is 20 lines of code. The bill drops 60–80% with a measurable but not catastrophic quality hit.

Third, stop treating model choice as a religious commitment. The economics of inference are moving fast enough that the right answer in March was probably wrong in June and will probably be wrong again in September. Build your agent harness so that swapping the model behind it is a config change, not a refactor. If your tool calls assume Anthropic's exact tool-use JSON shape, or your prompts depend on Opus-specific quirks, you've accidentally locked yourself into a pricing curve you don't control.

One caveat worth naming honestly: GLM is a Chinese-lab model, and depending on your industry, your customers, and your compliance posture, that's either irrelevant or disqualifying. The weights are MIT-licensed and you can run them on your own hardware, which solves the data-residency question. It does not solve the procurement-committee question.

Looking ahead

The interesting question isn't whether GLM 4.6 beats Opus — it doesn't, quite. The interesting question is what Anthropic does when the next open-weight checkpoint (GLM 5, Qwen 3 Coder, DeepSeek V4) closes the remaining gap, which on current trajectory happens sometime in the next two quarters. Opus pricing has held remarkably firm while the floor has risen underneath it; that's a strategy with a finite runway. The teams who'll look smart in six months are the ones who built routing layers now, while the choice still feels optional.

Hacker News 493 pts 325 comments

GLM 5.2 vs. Opus

→ read on Hacker News

// share this

// get daily digest

Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.