Model introduction
GLM-5.2 is Z.AI's text model for long-horizon coding and engineering, with 1M context, 128K output, and configurable reasoning effort.
Model capabilities
Specifications come from the cited model material. Catalog tags help identify access features; use the source documentation for exact limits.
Verified specifications
- Official positioning
- Long-horizon coding and engineering
- Context window
- 1,000,000 tokens
- Maximum output
- 128,000 tokens
- Verified capabilities
- reasoning_effort, functions, structured output, MCP
Sources: B.AI GLM-5.2 model guide
Model pricing and access
Prices are read directly from the MoleAPI console catalog and shown by current billing group and context tier.
Your final charge follows the account group shown in the console.
Live pricing source
Pricing table
USD / 1M tokensStandardx1defaultInput $0.87 · Output $3.48
Input
$0.87 / 1M tokens
Output
$3.48 / 1M tokens
Cache read
$0.19 / 1M tokens
Access protocols
Available billing groups: Standard
- openai
- POST
- /v1/chat/completions
About z-ai/glm-5.2
This introduction is transcreated for clarity and cross-checked against the cited model material.
GLM-5.2 is Z.AI's text model for long-horizon coding and engineering, with 1M context, 128K output, and configurable reasoning effort.
Core strengths
- A 1M context window fits complete repositories and large engineering evidence sets.
- reasoning_effort tunes depth for complex tasks.
- Supports functions, streaming tool calls, structured output, caching, and MCP.
Limitations
- It is text-focused; images, video, and GUI understanding need a vision model.
- Very long input and 128K output require max_tokens limits and caching.
Selection and production evaluation
Start a z-ai/glm-5.2 evaluation by mapping its official positioning to real work: Project-scale code review, refactoring and migration, long-document analysis, and engineering agents using MCP or functions. The first pass should exercise both its main strength, "A 1M context window fits complete repositories and large engineering evidence sets.", and its known limitation, "It is text-focused; images, video, and GUI understanding need a vision model.", instead of relying on a single subjective general-chat comparison.
For access, MoleAPI currently lists openai protocols and the Standard billing groups for this Zhipu model; the default price summary is Input $0.87 / 1M tokens · Output $3.48 / 1M tokens. Pricing, protocols, and groups come from the live catalog, so production planning should still price representative requests using real context length, output size, and cache-hit assumptions.
No independent ranking is shown unless it matches this exact model ID and reasoning profile, so nearby variants are not used as a proxy. Before launch, pin the model ID, prompt, and sample set, then compare task accuracy, structured-output validity, tool-call success, and timeout rates under the same conditions.
The model material on this page was last checked on 2026-07-24. When upstream model cards, context limits, or tool support change, update the cited bilingual facts before changing the recommendation; live MoleAPI price changes remain separate and update from the catalog automatically.
Code examples
These examples use MoleAPI's OpenAI-compatible endpoint and run after you replace the API key.
curl https://api.moleapi.com/v1/chat/completions \
-H "Authorization: Bearer $MOLEAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5.2",
"messages": [{"role": "user", "content": "Hello"}]
}'Frequently asked questions
How is z-ai/glm-5.2 priced?
This page reads prices from the MoleAPI console API and updates with model prices, context tiers, and account groups.
How can I access z-ai/glm-5.2?
Protocols and endpoints come from the supported_endpoint_types field in the MoleAPI model catalog.
How do I switch an existing project to z-ai/glm-5.2?
Keep the MoleAPI API address and key, replace the model parameter with the model ID on this page, then check protocol-specific parameter differences.
Where do the z-ai/glm-5.2 model details come from?
Capabilities and limitations are checked against B.AI and the other cited pages. Pricing and available protocols come only from the MoleAPI console.