China’s Low-Priced Z.ai Model Is Exposing Costly Coder Habits Z.ai's GLM 5.2, a 753-billion-parameter open-weights model released on June 16 by the Beijing-based lab, costs $4.40 per million output tokens via API, less than a fifth the price of Anthropic's Opus 4.8 and a tenth of Anthropic's Fable coding model, yet many software engineers still default to the most powerful model without tracking costs, according to Together AI engineer Zain Hasan. The model nearly ties Opus 4.8 on agentic coding benchmarks and scores well on cybersecurity benchmarks, adding to fears that U.S. AI companies could lose their competitive edge as Chinese firms produced half as many notable AI models as U.S. counterparts in 2025, up from a third in 2023. Zain Hasan https://www.linkedin.com/in/zainhas/ , an AI engineer at Together AI https://www.together.ai/ , has taught himself to use AI coding assistants https://spectrum.ieee.org/ai-coding-degrades while still keeping an eye on cost. He directs difficult problems to a frontier model, meaning one near the current state of the art in reasoning and capability, such as Anthropic’s Fable https://www.anthropic.com/claude/fable . But if the task that Hasan is outsourcing is more straightforward, he directs it to a less capable—and less expensive—language model. Right now, the cheaper model, for him, tends to be GLM 5.2. Released on 16 June https://z.ai/blog/glm-5.2 by the Beijing-based lab Z.ai https://z.ai , GLM 5.2 is an open-weights model https://opensource.org/ai/open-weights , meaning any organization with sufficient hardware can download and host the model for free. Those that pay Z.ai for GLM access still can save money, because the company’s API costs $4.40 per million output tokens https://blogs.nvidia.com/blog/ai-tokens-explained/ . That’s less than a fifth of the comparable price for access to Anthropic’s Opus 4.8 https://www.anthropic.com/claude/opus model, and a tenth the price of Anthropic’s Fable https://claude.com/product/claude-code?gclsrc=aw.ds&&utm source=google&utm campaign=dev acq us code search google-nonbrand swe en use-case-coding&utm medium=cpc&utm content=812333745802&utm term=best%20ai%20for%20coding&targetid=kwd-1960031980538&gad source=1&gad campaignid=23709663039&gbraid=0AAAAAqwcL8nXV6pkVxnGjIImuhfjtaFQS&gclid=CjwKCAjwpefSBhBvEiwAzyEtZ hRMtk7 2iArote4h2pIS1No2o0X1uJpT1ZUOa9zOzyjAvxZr rOhoCbBMQAvD BwE coding model. An output token is the basic unit of text a model generates in response to a prompt. Yet many software engineers around the world, Hasan said, aren’t yet fully mindful of the net AI pricetag for a given coding project. “A lot of companies right now, they’re still trying to figure this technology out, and so there isn’t really a token budget,” said Hasan. And when someone else is paying, the rational move for many software engineers is to skip tabulating costs entirely. “The easiest thing is to pick the most powerful model.” That price-be-damned habit, reinforced by loose token budgets in software companies today, may now be the widest moat protecting the U.S. frontier AI labs. Z.ai’s GLM 5.2 is an AI large language model LLM with 753 billion parameters, though it has only 40 billion parameters active at once—an optimization that improves the speed at which a model can respond. Z.ai released the model under an MIT open-source license https://opensource.org/license/mit , which means anyone can distribute, copy, modify, and use it. GLM 5.2’s release added to fears that U.S. AI companies could lose their competitive edge. The model nearly ties Opus 4.8’s score https://z.ai/blog/glm-5.2 on some agentic coding benchmarks, such as FrontierSWE https://www.frontierswe.com and PostTrainBench https://posttrainbench.com . Cybersecurity researchers https://www.graphistry.com/blog/glm-5-2-cybersecurity-open-model have also found that GLM 5.2 scores well in cybersecurity benchmarks https://botsbench.com , a capability that spurred comparisons to Anthropic’s Mythos https://semgrep.dev/blog/2026/we-have-mythos-at-home-glm-52-beats-claude-in-our-cyber-benchmarks/ . Z.ai arrives amid a broader trend. According to Stanford’s AI Index https://spectrum.ieee.org/state-of-ai-index-2026 an annual, 300-plus-page survey of AI trends Chinese companies produced just over half as many “notable” AI models in 2025 as their U.S. counterparts. That’s up from roughly a third in 2023, and a fifth in 2020. GLM 5.2 caused hand-wringing among some U.S. observers https://www.forbes.com/sites/craigsmith/2026/06/28/buckle-up-the-bad-guys-now-have-a-model-as-powerful-as-mythos/ due to its outstanding benchmark scores, which set new records for both open-weights models and Chinese-developed models generally. The model’s Chinese origin also complicates its use for U.S. and other companies wary of routing sensitive data through Chinese-linked infrastructure. However, the model’s open weights provide an out. Any organization worried about where their data is being sent can instead host the model on their own hardware. This stands in contrast to most frontier-level models, which are gated behind an API with no self-hosting option. Z.ai backed up GLM 5.2’s release with the company’s own numbers, publishing a research report https://z.ai/blog/glm-5.2 the same day as GLM 5.2’s launch. The report doesn’t mention Anthropic’s Mythos https://www.anthropic.com/claude/mythos or Fable, which were announced but not yet publicly available at the time of its release.The report instead focuses on Anthropic’s Opus 4.8 https://www.anthropic.com/news/claude-opus-4-8 and OpenAI’s GPT-5.5 https://openai.com/index/introducing-gpt-5-5/ . And while GLM 5.2 often performs almost as well as Opus 4.8 in benchmarks, the report only claims a win in two less-difficult reasoning benchmarks—and none in coding. Many of the report’s benchmarks place GLM 5.2 behind Opus 4.8 and, at times, OpenAI’s GPT-5.5 in agentic coding. For example, GLM 5.2 completed just 13 percent of tasks in SWE-Marathon https://www.swe-marathon.org , a difficult long-duration agentic coding benchmark. Claude Opus 4.8 doubled GLM 5.2’s score in this benchmark. Opus 4.8 also notched wins of 10 percent or more in the coding benchmarks NL2Repo https://arxiv.org/abs/2512.12730 , DeepSWE https://deepswe.datacurve.ai , and Tool-Decathlon https://toolathlon.xyz/introduction . Software engineers who’ve pitted GLM 5.2 against their own workflows report a wide range of results. “The main thing that I realized with GLM 5.2 , was that it can do more long-horizon tasks,” said Hasan, whose company hosts GLM 5.2 on North American infrastructure. Earlier open-weights models, he said, often lost the thread after around five to fifteen back-and-forth exchanges. “This one, I noticed that I could be using it for hours, and it would still have a coherent train of thought.” David Nix https://www.linkedin.com/in/nixdavid/ , a principal software engineer at the Denver-based MetaRouter https://www.metarouter.io/ , puts LLMs to work at both his day job and for personal side projects. Nix also operates a jobs board of AI engineers https://aiengineerjobs.com/ . Nix said GLM 5.2 comes “really close” to frontier models like Anthropic’s Opus and OpenAI’s GPT-5.5—close enough to earn a permanent spot in his rotation. “It’s pretty great at front-end development, for example, where I don’t need to always go to Opus or Fable for those things,” said Nix. He estimates that GLM 5.2 handles 10 to 20 percent of the work he sends to an LLM on a given day, and it’s now his first stop for some specific tasks, such as front-end design. Others reported the same strength. Hasan said GLM 5.2 has “really good taste” in web design. Kacper Michalik https://www.linkedin.com/in/kacpermichalik/ , a software engineer at Kraków, Poland-based Screen Studio https://screen.studio/ , received good results while using GLM 5.2 to create forms for use on a website. On the other hand, Sai Kiran Myadaram https://www.linkedin.com/in/sai-kiran-myadaram-027893242/ , a software engineer at Bengaluru-based Indhic AI https://www.linkedin.com/company/indhic-ai/ , reports less positive results with Z.ai. He signed up for Z.ai’s subscription plan the week GLM 5.2 launched and found the model burned through its token allotment quickly. “The weekly quota that Z.ai provides has been exhausted for me in less than two to three days,” he said. Michalik, who also accessed Z.ai directly, had no significant issues with the model’s quality but occasionally bumped into rate limits, though in his case he stuck to the free plan. In addition to rate limits, Myadaram experienced problems with model hallucinations and over-planning when asked to tackle minor front-end fixes. “It’s messing up my code base,” said Myadaram. He’s since drifted back to OpenAI’s Codex https://openai.com/codex/ .