Latest in AI
GLM-5.4 Coding Plan setup: Claude Code, vision and credit costs
Switch Claude Code to GLM-5.4, check whether requests use your Coding Plan credits, and calculate what the lower token multipliers mean for real coding sessions.
Z.ai rolled out GLM-5.4 to Coding Plan users on November 23. If you already use GLM-5.3 for coding, you can now use the flagship model for screenshot-based work, too. It also uses fewer credits for the same text token mix. The catch is that the model, the endpoint and the key all have to match the way you intend to use it.
The Coding Plan overview lists GLM-5.4 on Lite, Pro and Max. The standard API rate card still doesn't list it as of November 23. Try it in your coding tool first. If you're choosing a model for an application, don't budget for GLM-5.4 at GLM-5.3's API price.
Switch an existing Claude Code setup
First make sure your existing Z.ai setup can call a model like glm-5.3-flash. If that doesn't work, fix the connection before you change models.
For Claude Code, keep ANTHROPIC_BASE_URL pointing to https://api.z.ai/api/anthropic. The model-switch guide shows how to enable the 1M-token context option. For a first comparison, change only the Sonnet mapping in the existing env object rather than remapping all your Claude Code aliases:
{
"env": {
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000"
}
}
Merge those fields into your user settings; don't replace the entire file. The compaction setting also lives in the environment, so restore its old value before running unrelated models under the same settings. Restart Claude Code, choose Sonnet in the model picker and run /status. Check both the settings source and the resulting model. If an older Claude Code build rejects the [1m] suffix, Z.ai advises updating the client.
Match the key to the billing route
The Coding Plan quick start lists separate base URLs for different clients: https://api.z.ai/api/v1 for the Responses protocol used by Codex, and https://api.z.ai/api/coding/paas/v4 for supported Chat Completions clients. In those tools, use the model ID glm-5.4 without Claude Code's suffix.
An endpoint alone doesn't decide what you pay. The key management guide says newly issued Standard keys use standard billing, while Coding Plan keys draw from the corresponding plan on supported routes. Older keys labeled Compatible follow separate endpoint-dependent rules. If your first smoke test succeeds, check that the expected plan meter moved before you run a long session.
Calculate credits for a run, not just a prompt
Z.ai applies different credit multipliers to ordinary input, cached input and output. For GLM-5.4 they are 4.6, 1.1 and 16. For GLM-5.3 they are 6.9, 1.7 and 24. Multiply each token count by its rate, add the results, then divide by 10,000.
Take an illustrative task with 20,000 uncached input tokens, 80,000 cached input tokens and 4,000 output tokens. At the standard rate, that is 24.4 credits on GLM-5.4 versus 37 on GLM-5.3. Off-peak model usage costs half as much on both. Z.ai defines peak as weekdays from 2 to 6 p.m. Singapore time. Separate tool usage isn't in this example.
That explains the roughly 50% more work you can fit into the same credit pool when the token mix stays fixed. It doesn't mean every coding task gets cheaper. In the example, if GLM-5.4 keeps the same input mix but writes 12,000 output tokens, it uses 37.2 credits. A long reasoning run can erase the savings. Compare credits per completed task before upgrading tiers. Lite gives you 2,000 credits in the five-hour window and 10,000 per week, for example. A daily burst can hit the shorter limit even if there are plenty of weekly credits left.
Test the screenshot path separately
Z.ai's switch guide documents native image inputs in compatible tools such as Cline. Test the workflow in whichever client you'll actually use. Give it a synthetic screenshot of a component with a visible spacing bug, an existing implementation and a small acceptance test. For a like-for-like native vision comparison, run the same fixture through GLM-5.3-Flash. Record whether the client passes the image, whether the patch fixes the layout and how many credits it takes to get a passing result.
Also run a text-only refactor. If GLM-5.4 earns its keep only on visual bugs, leave it as a selectable model for those jobs. There's no need to move every routine edit onto the flagship.
I'm Paras. I work at the intersection of AI, engineering and distribution.
I help AI teams turn model releases into technical writing that developers can use to make a decision.