GLM 5.2 (batch)
by Z.aitext->text1 endpoint
Overview
GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering, and complex multi-step automation.
Reasoning efforts high and xhigh are supported; xhigh maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.
Capabilities
Text generation
Tool use / Function calling
Structured output
Extended reasoning
Prompt caching
Long context
Top-P sampling
Stop sequences
Log probabilities
Modalities
Input
Text
Output
Text
Technical Specifications
Context Window
1.0M tokens
Max Output
943.7K tokens
Tokenizer
Other
Supported Parameters
frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokenspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Pricing
Per 1M tokens
Input$0.70
Output$2.20
Cache read$0.07
Added
June 16, 2026
Last synced 9/18/2026