z-ai

Z.ai: GLM 5.2

GLM 5.2 from Z.ai is a text-in, text-out model with a context window of roughly one million tokens and a maximum output of 32,768 tokens per response. It supports tool use and reasoning, which makes it viable for multi-step workflows and agentic tasks. Structured output support is not confirmed for this model, so developers who depend on guaranteed JSON schemas should verify that before committing. At $1.00 per million input tokens and $4.00 per million output tokens, it sits in the mid-range price tier. Its blended benchmark score of 89.7 comes from four benchmarks, a limited coverage sample, so treat it as directional rather than definitive. The coding benchmark result is notably strong, which makes it worth shortlisting for software-focused use cases. Teams that need long-context retrieval or agentic pipelines and can tolerate some benchmark uncertainty will find the pricing reasonable relative to the performance signal available.

Quality Score
97/100
price + capability + benchmarks
Input Price
$1.00
per 1M tokens
Output Price
$4.00
per 1M tokens
Context Window
1,048,576
tokens
Model ID
z-ai/glm-5.2
Vendor
z-ai
Tokenizer
Other
Input Modalities
text
Output Modalities
text
Max Output
32,768 tokens
Tool Calling
✓ supported
Structured Output
✓ supported
Reasoning Mode
✓ supported
Vision
text only
Audio
no
Moderated
no

Strong choice for

Category rankings

Where Z.ai: GLM 5.2 places across the 53 categories it ranks in. How we rank →

#CategoryScore
#4 SQL GenerationCode · of 25 ranked 173
#4 Code RefactoringCode · of 25 ranked 171
#4 Unit Test GenerationCode · of 25 ranked 156
#4 Regex WritingCode · of 25 ranked 136
#4 CI/CD PipelinesCode · of 25 ranked 147
#4 ETL ScriptingData · of 25 ranked 159
#4 Long-Document SummarizationWriting · of 25 ranked 167
#4 Language TranslationWriting · of 25 ranked 136
#4 Financial AnalysisProfessional · of 25 ranked 160
#4 Medical Note SummarizationProfessional · of 25 ranked 159
#4 Math TutoringEducation · of 25 ranked 149
#4 Physics TutoringEducation · of 25 ranked 151
#4 History TutoringEducation · of 25 ranked 149
#4 RFP ResponseBusiness · of 25 ranked 180
#4 RAG PipelinesAgents · of 25 ranked 171
#4 Long-Context Q&AAgents · of 25 ranked 161
#4 Character RoleplayPersonal · of 25 ranked 154
#4 Fitness CoachingPersonal · of 25 ranked 135
#4 Tutoring for KidsPersonal · of 25 ranked 136
#4 Experiment DesignResearch · of 25 ranked 158
#5 Code ReviewCode · of 25 ranked 173
#5 Bug FixingCode · of 25 ranked 185
#5 Code DocumentationCode · of 25 ranked 146
#5 Data AnalysisData · of 25 ranked 171
#5 Blog Post WritingWriting · of 25 ranked 142
#5 Marketing CopyWriting · of 25 ranked 130
#5 Creative WritingWriting · of 25 ranked 163
#5 Screenwriting & DialogWriting · of 25 ranked 163
#5 Transcript CleanupWriting · of 25 ranked 144
#5 Academic WritingWriting · of 25 ranked 163
#5 Legal DraftingProfessional · of 25 ranked 163
#5 Legal ResearchProfessional · of 25 ranked 175
#5 Contract ReviewProfessional · of 25 ranked 185
#5 Scientific ResearchProfessional · of 25 ranked 175
#5 Essay GradingEducation · of 25 ranked 173
#5 Standardized Test PrepEducation · of 25 ranked 130
#5 OKRs & Strategic PlanningBusiness · of 25 ranked 163
#5 Agent WorkflowsAgents · of 25 ranked 197
#5 Function / Tool CallingAgents · of 25 ranked 150
#5 Coding AgentsAgents · of 25 ranked 197
#5 Fiction CollaboratorPersonal · of 25 ranked 175
#5 Trip PlanningPersonal · of 25 ranked 142
#5 Math ProofsResearch · of 25 ranked 163
#5 Scientific CodingResearch · of 25 ranked 185
#5 Literature ReviewResearch · of 25 ranked 175
#6 SOP / Process DocsBusiness · of 25 ranked 136
#7 CSV / Spreadsheet CleanupData · of 25 ranked 156
#7 Sales / Cold EmailBusiness · of 25 ranked 122
#7 Meeting NotesBusiness · of 25 ranked 153
#7 Job Application DraftingBusiness · of 25 ranked 122
#7 Journaling HelperPersonal · of 25 ranked 122
#7 Recipe GenerationPersonal · of 25 ranked 122
#9 Resume WritingBusiness · of 25 ranked 116

Similar models