
The Z.ai API brings ZhipuAI's full GLM series to your stack, from GLM-4.6 to the flagship GLM-5.1, which ranks first among open-source models on SWE-Bench Pro and runs autonomous coding agents for hours at a time. GLM pairs a 202K token context with balanced Chinese and English output under a permissive MIT license. Atlas Cloud serves each model through one OpenAI-compatible key with Day-0 access and transparent per-call pricing. Start today.
Power chat, reasoning, and agents at scale with leading large language models, served fast and affordably on Atlas Cloud.
Compare standard vs. our pricing across every Z.ai model.
| Model | Standard Price (USD) | Our Price (USD) | Discount | |
|---|---|---|---|---|
| GLM 5.2 | $1.4/$4.4per 1M tokens1048.6K context | $1.26/$3.96M in/outper 1M tokens1048.6K context | -10% | View |
| GLM 5.1 | $1.4/$4.4per 1M tokens202.8K context | $1.26/$3.96M in/outper 1M tokens202.8K context | -10% | View |
| GLM 5v Turbo | $1.2/$4per 1M tokens202.8K context | $1.2/$4M in/outper 1M tokens202.8K context | — | View |
| GLM 5 | $1/$3.2per 1M tokens202.8K context | $0.95/$3.15M in/outper 1M tokens202.8K context | — | View |
| GLM 4.7 | $0.6/$2.2per 1M tokens202.8K context | $0.52/$1.85M in/outper 1M tokens202.8K context | — | View |
| GLM 4.6 | $0.6/$2.2per 1M tokens202.8K context | $0.6/$2.2M in/outper 1M tokens202.8K context | — | View |
Instantly explore and experiment with 400+ production-ready models in the Atlas Playground. Start customizing with one click.
GLM's model tiers cover everything from fast bilingual chat tasks to multi-hour autonomous coding agents. Teams use GLM-5.1 for long-horizon engineering work and GLM-4.7 or GLM-5 Turbo where cost efficiency and speed take priority.
Engineering teams use GLM-5.1 to run autonomous optimization agents that iterate on production systems over hundreds of rounds. In a documented run, GLM-5.1 improved a vector database through 600 iterations and 6,000 tool calls, reaching 21,500 queries per second — six times the result achievable in a single 50-turn session. Atlas Cloud's pay-as-you-go pricing makes it practical to run these extended sessions without pre-purchasing capacity.
Development teams use GLM-5.1 to execute full codebase transformations over multi-hour sessions without human checkpoints. The model plans, writes, tests, and iterates on changes continuously for up to 8 hours, handling 655 iterations in a demonstrated Linux system build from scratch. This replaces weeks of manual refactoring work on large, legacy codebases.
Developer tools teams integrate GLM-5.1 and GLM-5 Turbo as the underlying model for AI coding workflows in Claude Code, Kilo Code, Cline, Roo Code, and OpenCode. The Z-AI API on Atlas Cloud is OpenAI-compatible, so the base URL swap is the only change required to route any of these tools through GLM. GLM-5 Turbo's 262K context window makes it especially suited for large file context in IDE workflows.
Operations teams build support agents using GLM-5 that combine ticket database access, knowledge base search, and escalation tooling to handle repetitive queries without human intervention. The model's multi-tool calling and streaming support make it practical for real-time customer-facing deployments. Bilingual support means the same agent handles Chinese and English tickets from a single model endpoint on Atlas Cloud.
Content and business teams use GLM-4.7 to generate Word documents, PowerPoint presentations, PDFs, and Excel reports in both Chinese and English from structured prompts. At $0.52 per million input tokens, it is the most cost-efficient GLM tier for high-volume document workflows that do not require frontier-level reasoning. The 202K context window is sufficient to hold full document outlines and source material in a single call.
AI infrastructure teams use GLM-5.1 to run benchmark-driven optimization pipelines on machine learning workloads. On KernelBench-style tasks, GLM-5.1 performs thousands of tool-driven optimization cycles and achieves a 3.6x geometric mean speedup. The 8-hour continuous execution capability means the agent runs the full optimization loop without requiring manual restarts between sessions.
The Z.ai API gives developers programmatic access to the GLM series of large language models built by Z.ai, the company also known as Zhipu AI. GLM stands for General Language Model and spans releases from GLM-4.6 to the GLM-5.1 flagship, tuned for coding, agentic workflows, and bilingual Chinese and English production use. On Atlas Cloud you reach the full lineup through one OpenAI-compatible endpoint.
Atlas Cloud hosts the GLM series from GLM-4.6 up to the GLM-5.1 flagship, with GLM-4.7 and GLM-5 in between. Lighter tiers handle high-volume everyday tasks at lower cost, while GLM-5.1 targets the most demanding coding and agentic work. Every model runs pay-as-you-go through the same key.
Yes. GLM open weights, including GLM-5.1, are released under the MIT license, which permits commercial use, fine-tuning, and redistribution without restriction. If you would rather skip infrastructure overhead, Atlas Cloud serves the same models by API for managed access instead of self-hosting.
Point your existing OpenAI SDK at the Atlas Cloud base URL, set your key, and pass the GLM model name you want. Because the Z.ai API is OpenAI-compatible, most projects migrate by changing only the base URL and model string, and the models plug directly into agent tools such as Claude Code, Cline, and Roo Code. Start building today.
Both Chinese and English are first-class for GLM, which is trained for strong proficiency in each. Prompt in either language and you get consistent quality back, which makes the lineup practical for teams serving Chinese and international users from a single model rather than maintaining separate stacks.
GLM-4.6 through GLM-5.1 support a 200K token context window, enough to hold large codebases, long documents, or extended agent traces in a single request. Should your workflow produce long outputs, the same window covers big code files and multi-step execution logs without early truncation.
GLM-5.1 topped SWE-Bench Pro with a score of 58.4 in April 2026, placing it among the strongest open-source models for real-world coding. It also supports continuous autonomous execution for up to eight hours on a single task, running planning, iteration, and delivery in one loop, which suits long-horizon agent workflows in environments like Claude Code.
Every GLM model on the Z.ai API runs on transparent pay-as-you-go pricing, billed per token with no subscription or monthly commitment. Input and output tokens are metered separately, and lighter tiers such as GLM-4.7 cost less per token than the GLM-5.1 flagship, so you can match model choice to budget. Check the current per-token rate on each model card in Atlas Cloud.
Guides, tutorials, and product updates to help you get the most out of Atlas Cloud.