z-ai

Z.ai: GLM 5.2 (batch)

Z.ai's GLM 5.2 (batch) is designed for text handling with an impressive context length of up to 512,000 tokens and supports tools and reasoning. While it does not offer structured output, its capabilities in text processing are robust. This model stands out with a blended benchmark score of 89.3 across four independent benchmarks, making it a strong contender. For those prioritizing cost-effectiveness, GLM 5.2 offers a pricing structure of $0.7 per million input tokens and $2.2 per million output tokens, though its high price point may limit its appeal for frequent or extensive use. Given its solid performance across various benchmarks, it is particularly suitable for projects requiring advanced text processing and reasoning abilities.

Quality Score
98/100
price + capability + benchmarks
Input Price
$0.70
per 1M tokens
Output Price
$2.20
per 1M tokens
Context Window
512,000
tokens

Benchmark results

Independent, published benchmarks. Blended score 89.3 across 4 benchmarks, last refreshed 2026-08-13. How scoring works →

BenchmarkMeasuresScore
AI Index broad capability composite 86.9
AI Index Coding software engineering tasks 100.0
AI Index Agentic multi-step tool-using tasks 75.4
EQ-Bench emotional understanding in dialogue 78.7
Model ID
z-ai/glm-5.2:batch
Vendor
z-ai
Released
June 2026
Tokenizer
Other
Input Modalities
text
Output Modalities
text
Max Output
default
Tool Calling
✓ supported
Structured Output
✓ supported
Reasoning Mode
✓ supported
Vision
text only
Audio
no
Moderated
no

What it costs in practice

Computed from the current $0.70/M input and $2.20/M output rates. Run your own numbers →

JobTokensCost
Summarize a 50-page report 30k in / 1.5k out $0.02
Classify 1,000 customer emails 500k in / 50k out $0.46
A month of a busy support chatbot 5M in / 2M out $7.90

Strong choice for

Category rankings

Where Z.ai: GLM 5.2 (batch) places across the 61 categories it ranks in. How we rank →

#CategoryScore
#3 Short-Form SummarizationWriting · of 25 ranked 132
#3 Email DraftingWriting · of 25 ranked 128
#3 Language LearningEducation · of 25 ranked 128
#3 Chat CompanionPersonal · of 25 ranked 132
#4 Meeting NotesBusiness · of 25 ranked 158
#4 Trivia & General KnowledgePersonal · of 25 ranked 122
#6 Code CompletionCode · of 25 ranked 134
#6 Code DocumentationCode · of 25 ranked 148
#6 Regex WritingCode · of 25 ranked 138
#6 Language TranslationWriting · of 25 ranked 138
#6 Transcript CleanupWriting · of 25 ranked 146
#6 Tutoring for KidsPersonal · of 25 ranked 138
#9 CSV / Spreadsheet CleanupData · of 25 ranked 157
#9 Long-Document SummarizationWriting · of 25 ranked 168
#9 Blog Post WritingWriting · of 25 ranked 144
#9 History TutoringEducation · of 25 ranked 151
#9 Sales / Cold EmailBusiness · of 25 ranked 124
#9 Job Application DraftingBusiness · of 25 ranked 124
#9 Character RoleplayPersonal · of 25 ranked 156
#9 Journaling HelperPersonal · of 25 ranked 124
#9 Recipe GenerationPersonal · of 25 ranked 124
#9 Trip PlanningPersonal · of 25 ranked 144
#10 Unit Test GenerationCode · of 25 ranked 158
#10 CI/CD PipelinesCode · of 25 ranked 148
#10 ETL ScriptingData · of 25 ranked 160
#10 Medical Note SummarizationProfessional · of 25 ranked 160
#10 Long-Context Q&AAgents · of 25 ranked 163
#11 SQL GenerationCode · of 25 ranked 175
#11 Code ReviewCode · of 25 ranked 175
#11 Code RefactoringCode · of 25 ranked 172
#11 Bug FixingCode · of 25 ranked 188
#11 Marketing CopyWriting · of 25 ranked 132
#11 Creative WritingWriting · of 25 ranked 165
#11 Screenwriting & DialogWriting · of 25 ranked 165
#11 Academic WritingWriting · of 25 ranked 165
#11 Legal DraftingProfessional · of 25 ranked 165
#11 Legal ResearchProfessional · of 25 ranked 177
#11 Contract ReviewProfessional · of 25 ranked 187
#11 Scientific ResearchProfessional · of 25 ranked 177
#11 Physics TutoringEducation · of 25 ranked 153
#11 Essay GradingEducation · of 25 ranked 175
#11 Standardized Test PrepEducation · of 25 ranked 132
#11 RFP ResponseBusiness · of 25 ranked 182
#11 OKRs & Strategic PlanningBusiness · of 25 ranked 165
#11 RAG PipelinesAgents · of 25 ranked 172
#11 Fiction CollaboratorPersonal · of 25 ranked 177
#11 Math ProofsResearch · of 25 ranked 165
#11 Scientific CodingResearch · of 25 ranked 188
#11 Literature ReviewResearch · of 25 ranked 177
#13 JSON ExtractionData · of 25 ranked 147
#14 Customer SupportBusiness · of 25 ranked 133
#14 Agent WorkflowsAgents · of 25 ranked 199
#14 Coding AgentsAgents · of 25 ranked 199
#15 Math TutoringEducation · of 25 ranked 150
#15 Fitness CoachingPersonal · of 25 ranked 136
#16 Data AnalysisData · of 25 ranked 173
#16 Financial AnalysisProfessional · of 25 ranked 162
#16 Experiment DesignResearch · of 25 ranked 160
#18 Resume WritingBusiness · of 25 ranked 118
#19 Dataset AnnotationResearch · of 25 ranked 143
#21 SOP / Process DocsBusiness · of 25 ranked 137

Similar models

Quick answers

How much does Z.ai: GLM 5.2 (batch) cost?
$0.70 per million input tokens and $2.20 per million output tokens.
What is Z.ai: GLM 5.2 (batch)'s context window?
512,000 tokens, roughly 768 pages of text in a single request.
Does Z.ai: GLM 5.2 (batch) support tool calling?
It supports tool calling, structured output, a reasoning mode.
Can Z.ai: GLM 5.2 (batch) process images?
No, it is text-only on the input side.