Zhipu AI says its GLM-4.7 coding model scores 73.8% on SWE-bench

The AI coding assistant market has a new player making waves — not from Silicon Valley, but from Beijing. Zhipu AI just released GLM-4.7, and it's turning heads for a simple reason: it delivers near-frontier performance at a price that makes competitors look almost predatory.

The David and Goliath Story

Here's the context you need: Claude Sonnet, GPT-4, and their peers charge premium prices for their coding capabilities. Developers have accepted this as the cost of doing business with state-of-the-art AI.

Then GLM-4.7 shows up offering comparable coding performance for roughly one-seventh the price. Some developers report paying around $30 for a full year of access. That's not a typo.

The natural question is: what's the catch? After digging through the benchmarks and community feedback, the answer seems to be... not much, actually.

How It Stacks Up

On SWE-bench — the industry-standard test for AI coding assistants — GLM-4.7 scores 73.8%. To put that in perspective, that's competitive with Claude Sonnet 4.5 and ahead of many models that cost significantly more.

But raw benchmark scores don't tell the whole story. What caught the attention of developers on Hacker News was the model's practical coding behavior. It handles multi-file refactoring. It navigates complex codebases. It writes tests that actually pass. These are the things that matter when you're using an AI assistant for real work, not just solving interview problems.

The model also scored notably well on Terminal Bench 2.0, a newer benchmark that tests how well AI can work in command-line environments — the kind of work that matters for DevOps and infrastructure tasks.

The Architecture Secret

GLM-4.7 uses a clever trick called Mixture of Experts (MoE). The model technically has 358 billion parameters, but only 32 billion are "active" for any given request. Think of it like a massive library where you only open the books you need.

This matters because it means GLM-4.7 can match larger models' capabilities while running faster and costing less to serve. It's efficient by design, not as an afterthought.

What are the three thinking modes in GLM-4.7?

One feature that stands out is GLM-4.7's three "thinking modes" — ways to control how deeply the model reasons before responding.

Interleaved Thinking shows its work before each action, similar to how Claude handles complex tasks. You see the model's reasoning, which builds trust and makes debugging easier.

Preserved Thinking maintains that reasoning across a multi-turn conversation. The model remembers not just what it said, but why it said it.

Turn-level Thinking lets you toggle reasoning on and off per message. Need a quick answer? Skip the thinking. Need careful analysis? Turn it on.

This flexibility matters because thinking takes time and tokens. Not every question needs deep contemplation.

The Elephant in the Room

Let's address the obvious concern: why is it so cheap?

Some developers on Hacker News questioned whether Zhipu AI might be using customer data for training, despite the company's assurances otherwise. Others speculated about government subsidies or aggressive market-entry pricing. These concerns aren't unreasonable when the value proposition seems too good.

What we can say objectively: the model's weights are openly available on Hugging Face and ModelScope. You can run it locally if you prefer. This isn't a black box — you can verify what you're running.

Who Should Care

If you're already happy with Claude or GPT and budget isn't a concern, GLM-4.7 might not move the needle for you. The frontier models still edge it out on the hardest reasoning tasks.

But if you're part of a team burning through API credits, or a solo developer watching costs, or just curious about alternatives to the usual suspects — GLM-4.7 deserves a serious look.

It integrates with Claude Code, Cline, and other popular coding assistants. The transition cost is low. And at this price point, you could run it as a backup while keeping your existing subscriptions.

The Bigger Picture

GLM-4.7's release signals something important: the era of frontier model monopoly pricing is ending. When a Chinese lab can match Western models' performance at a fraction of the cost, the pricing pressure cascades through the whole market.

For developers, this is unambiguously good news. Competition drives prices down and quality up. We're entering a world where "I can't afford good AI" stops being a valid excuse.

GLM-4.7 is available now through the Z.ai API, OpenRouter, and as downloadable weights on Hugging Face.

Sources

Related stories

More from Debug Duck

All stories from Debug Duck