Sponsor
Menu
Trending · Updated Nov 23, 2026

GLM-5.4: what it is, how to use it, and whether the GLM Coding Plan is worth it

GLM-5.4 is Z.ai's new flagship coding model, released Nov 23, 2026, and today you use it through the GLM Coding Plan (from $18 a month, per Z.ai's docs) inside tools like Claude Code, Cline or OpenCode. The pay-per-token API is listed as coming soon, and Z.ai says open weights will follow after safety hardening, so it's a cheap second engine for coders now, not a drop-in API model yet.

What Z.ai released

Z.ai (Zhipu's international brand) calls GLM-5.4 its first flagship built on a Loop Transformer. Instead of running every layer once, it runs 28 layers of the GLM-5 base model twice, so the model can think more deeply without adding parameters. Z.ai says that puts its intelligence on par with 2T to 3T parameter models, at a 750B scale.

The docs list a 1 million-token context window, up to 128K output tokens, and text, image, video and file input. Z.ai frames the release as "Generalized Coding": the model writes code to make videos, games, 3D scenes and CAD designs, not only apps.

What's missing: benchmarks and an API

The launch post has no headline benchmark table for GLM-5.4 itself. Its numbers come from a smaller 30B test model, where Z.ai reports gains in math, science and long-context tasks and 10 to 14% shorter answers. On Hacker News, where the post reached the front page with hundreds of comments, the most common reaction was exactly that: hard to judge without scores.

Z.ai is also upfront about one weakness. It says the model "tends to get caught in overly long marathon thinking loops". One of the most-discussed comments says the same of recent Chinese models: the extra second-guessing slows down even simple tasks. Expect longer runs on easy edits.

How to use GLM-5.4

Right now GLM-5.4 is available to every GLM Coding Plan subscriber. Z.ai says the Model API will open after its security assessment. Setup takes three steps:

1. Subscribe and get a Coding Plan key

Pick a plan on z.ai/subscribe, then create a key under Personal Coding Plan. Since Oct 16, 2026, Coding Plan keys and standard API keys are separate and not interchangeable.

2. Point your tool at Z.ai

For Claude Code, use the Anthropic-compatible base URL https://api.z.ai/api/anthropic. OpenAI-style tools use https://api.z.ai/api/coding/paas/v4. Z.ai has setup guides for Claude Code, Cline, OpenCode, Kilo Code, Roo Code, Goose, Cursor and others.

3. Stay inside supported tools

The plan is limited to Z.ai's officially supported tools and products. Don't wire the key into your own app; that's what the coming API is for.

GLM Coding Plan pricing and limits

Z.ai's docs say plans start at $18 a month. There are three tiers, Lite, Pro and Max, each with a 5-hour and a weekly credit cap: Lite 2,000 and 10,000, Pro 12,000 and 60,000, and Max 28,000 and 140,000. Check z.ai/subscribe for current tier prices before you buy.

Credits depend on tokens. GLM-5.4 costs 4.6 credits per 10,000 input tokens and 16 per 10,000 output tokens, which is cheaper than GLM-5.3's 6.9 and 24. By Z.ai's formula, a session that reads 1 million tokens and writes 50,000 uses 540 credits, about a quarter of Lite's 5-hour cap. Z.ai says weekly-quota users get 1.5 times more GLM-5.4 usage than they had on GLM-5.3.

GLM Coding Plan vs Claude Code and Codex

This is the comparison most searchers want, and the honest answer is that they aren't the same kind of product. Claude Code and Codex are agents from the model makers. Claude Code needs a paid Claude plan or the API, and Codex comes with ChatGPT plans. The GLM Coding Plan is a model subscription you plug into an agent, and Claude Code is one of the supported ones. So many people will keep the Claude Code workflow they know and change only the model behind it.

Who should try it: developers who hit usage limits on their main plan, people already using Cline or OpenCode who want a flat monthly price, and tinkerers who want to test a looped model early. Who can skip it: teams that need published benchmarks or a vendor-reviewed data agreement before code leaves the building, and anyone who needs API access in their own product this week. Read Z.ai's terms before you point it at client code.

How it fits whichai's picks

GLM-5.4 doesn't change our coding rankings today, because we rank tools you can use end to end, and we haven't run our own tests on it. If you're choosing a first coding tool, start with our coding-assistant and vibe-coding pages. If you already have one and want a cheaper model to put behind it, GLM-5.4 is worth a week on the Lite plan. Making a coding tool that should be in this conversation? Getting featured puts it in front of readers comparing exactly these options.

FAQ

What is GLM-5.4?

It's Z.ai's flagship coding model, released Nov 23, 2026, and its first built on a Loop Transformer: 28 layers of the GLM-5 base run twice. It has a 1M-token context window and takes text, image, video and file input.

How do I use GLM-5.4 in Claude Code?

Subscribe to the GLM Coding Plan, create a Coding Plan API key, and set Claude Code's base URL to https://api.z.ai/api/anthropic with that key. Z.ai's docs have step-by-step guides for Claude Code, Cline, OpenCode and other tools.

How much is the GLM Coding Plan?

Z.ai's docs say plans start at $18 a month. Lite, Pro and Max differ by credits: 2,000, 12,000 or 28,000 per 5 hours and 10,000, 60,000 or 140,000 a week. GLM-5.4 uses fewer credits per token than GLM-5.3.

Is GLM-5.4 open source, and is there an API?

Not yet. Z.ai says the API is coming after a security assessment and that it plans to release the weights after safety hardening. Neither has a date.

References & evidence

Source dates apply to the cited claims only. Page updates do not mean every price or claim was rechecked. Vendor claims are not independent tests by whichai.

Related: Best AI coding assistants · Cursor vs Claude Code · New this week · Get featured

Get the free AI tool cheat sheet

One page: the right AI for each job, with why. Then 5 new tools and 1 straight answer, about once a week. Free, written by Leilani (an AI), unsubscribe anytime. Preview the cheat sheet →