Z.ai: GLM 5.2
Z.ai: GLM 5.2 is designed for handling text-based inputs with a vast context length of 1048576 tokens and supports both reasoning and tools integration. While it lacks structured output capabilities, this model excels in tasks requiring extensive input processing and tool assistance. This model should be considered by those needing robust text analysis and a flexible toolset, especially given its competitive blended benchmark score of 88.7 across four independent tests. Its pricing at $0.7601 per million input tokens and $2.3888 per million output tokens makes it suitable for projects with significant text processing requirements, though users should carefully weigh these costs against the benchmark scores in their specific use cases.
Benchmark results
Independent, published benchmarks. Blended score 88.7 across 4 benchmarks, last refreshed 2026-08-01. How scoring works →
| Benchmark | Measures | Score |
|---|---|---|
| AI Index | broad capability composite | 84.3 |
| AI Index Coding | software engineering tasks | 100.0 |
| AI Index Agentic | multi-step tool-using tasks | 71.0 |
| EQ-Bench | emotional understanding in dialogue | 78.7 |
- Model ID
- z-ai/glm-5.2
- Vendor
- z-ai
- Released
- June 2026
- Tokenizer
- Other
- Input Modalities
- text
- Output Modalities
- text
- Max Output
- 128,000 tokens
- 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.76/M input and $2.39/M output rates. Run your own numbers →
| Job | Tokens | Cost |
|---|---|---|
| Summarize a 50-page report | 30k in / 1.5k out | $0.03 |
| Classify 1,000 customer emails | 500k in / 50k out | $0.50 |
| A month of a busy support chatbot | 5M in / 2M out | $8.58 |
Price & spec history
Tracked daily by PicksByModel since 2026-07-17.
| Date | Input /M | Output /M | Context |
|---|---|---|---|
| 2026-08-01 | $0.76 | $2.39 | 1,048,576 |
| 2026-07-31 | $1.19 | $3.74 | 1,048,576 |
| 2026-07-30 | $0.68 | $2.13 | 1,048,576 |
| 2026-07-28 | $0.73 | $2.28 | 1,048,576 |
| 2026-07-27 | $0.82 | $2.59 | 1,048,576 |
| 2026-07-26 | $0.72 | $2.25 | 1,048,576 |
| 2026-07-25 | $0.77 | $2.42 | 1,048,576 |
| 2026-07-24 | $0.77 | $2.43 | 1,048,576 |
| 2026-07-23 | $0.83 | $2.60 | 1,048,576 |
| 2026-07-22 | $0.82 | $2.57 | 1,048,576 |
| 2026-07-21 | $0.97 | $3.04 | 1,048,576 |
| 2026-07-20 | $0.97 | $3.06 | 1,048,576 |
| 2026-07-19 | $0.25 | $0.80 | 1,048,576 |
| 2026-07-18 | $0.41 | $1.29 | 1,048,576 |
| 2026-07-17 | $0.93 | $2.93 | 1,048,576 |
Strong choice for
SQL Generation
Code Review
Code Completion
Code Refactoring
Bug Fixing
Unit Test Generation
Category rankings
Where Z.ai: GLM 5.2 places across the 63 categories it ranks in. How we rank →
| # | Category | Score |
|---|---|---|
| #3 | Code DocumentationCode · of 25 ranked | 147 |
| #3 | Regex WritingCode · of 25 ranked | 137 |
| #3 | Language TranslationWriting · of 25 ranked | 137 |
| #3 | Meeting NotesBusiness · of 25 ranked | 158 |
| #3 | Tutoring for KidsPersonal · of 25 ranked | 137 |
| #4 | Transcript CleanupWriting · of 25 ranked | 145 |
| #5 | SQL GenerationCode · of 25 ranked | 174 |
| #5 | Code ReviewCode · of 25 ranked | 174 |
| #5 | Code CompletionCode · of 25 ranked | 133 |
| #5 | Code RefactoringCode · of 25 ranked | 172 |
| #5 | Bug FixingCode · of 25 ranked | 186 |
| #5 | Unit Test GenerationCode · of 25 ranked | 157 |
| #5 | CI/CD PipelinesCode · of 25 ranked | 148 |
| #5 | Data AnalysisData · of 25 ranked | 172 |
| #5 | CSV / Spreadsheet CleanupData · of 25 ranked | 157 |
| #5 | ETL ScriptingData · of 25 ranked | 160 |
| #5 | Long-Document SummarizationWriting · of 25 ranked | 168 |
| #5 | Short-Form SummarizationWriting · of 25 ranked | 131 |
| #5 | Blog Post WritingWriting · of 25 ranked | 144 |
| #5 | Marketing CopyWriting · of 25 ranked | 131 |
| #5 | Email DraftingWriting · of 25 ranked | 127 |
| #5 | Creative WritingWriting · of 25 ranked | 164 |
| #5 | Screenwriting & DialogWriting · of 25 ranked | 164 |
| #5 | Academic WritingWriting · of 25 ranked | 164 |
| #5 | Legal DraftingProfessional · of 25 ranked | 164 |
| #5 | Legal ResearchProfessional · of 25 ranked | 176 |
| #5 | Contract ReviewProfessional · of 25 ranked | 186 |
| #5 | Financial AnalysisProfessional · of 25 ranked | 161 |
| #5 | Medical Note SummarizationProfessional · of 25 ranked | 160 |
| #5 | Scientific ResearchProfessional · of 25 ranked | 176 |
| #5 | Math TutoringEducation · of 25 ranked | 149 |
| #5 | Physics TutoringEducation · of 25 ranked | 152 |
| #5 | Language LearningEducation · of 25 ranked | 127 |
| #5 | History TutoringEducation · of 25 ranked | 150 |
| #5 | Essay GradingEducation · of 25 ranked | 174 |
| #5 | Standardized Test PrepEducation · of 25 ranked | 131 |
| #5 | RFP ResponseBusiness · of 25 ranked | 181 |
| #5 | OKRs & Strategic PlanningBusiness · of 25 ranked | 164 |
| #5 | RAG PipelinesAgents · of 25 ranked | 172 |
| #5 | Long-Context Q&AAgents · of 25 ranked | 162 |
| #5 | Chat CompanionPersonal · of 25 ranked | 131 |
| #5 | Character RoleplayPersonal · of 25 ranked | 156 |
| #5 | Fiction CollaboratorPersonal · of 25 ranked | 176 |
| #5 | Trip PlanningPersonal · of 25 ranked | 144 |
| #5 | Trivia & General KnowledgePersonal · of 25 ranked | 122 |
| #5 | Math ProofsResearch · of 25 ranked | 164 |
| #5 | Scientific CodingResearch · of 25 ranked | 186 |
| #5 | Literature ReviewResearch · of 25 ranked | 176 |
| #5 | Experiment DesignResearch · of 25 ranked | 159 |
| #6 | Sales / Cold EmailBusiness · of 25 ranked | 123 |
| #6 | Job Application DraftingBusiness · of 25 ranked | 123 |
| #6 | Agent WorkflowsAgents · of 25 ranked | 198 |
| #6 | Coding AgentsAgents · of 25 ranked | 198 |
| #6 | Journaling HelperPersonal · of 25 ranked | 123 |
| #6 | Recipe GenerationPersonal · of 25 ranked | 123 |
| #6 | Fitness CoachingPersonal · of 25 ranked | 135 |
| #8 | Resume WritingBusiness · of 25 ranked | 118 |
| #9 | JSON ExtractionData · of 25 ranked | 146 |
| #9 | SOP / Process DocsBusiness · of 25 ranked | 137 |
| #11 | Customer SupportBusiness · of 25 ranked | 133 |
| #11 | Function / Tool CallingAgents · of 25 ranked | 151 |
| #12 | Dataset AnnotationResearch · of 25 ranked | 142 |
| #25 | Bulk Data LabelingData · of 25 ranked | 133 |
Similar models
Z.ai: GLM 5
Z.ai: GLM 4.6
Z.ai: GLM 5.1
Z.ai: GLM 4.7
Z.ai: GLM 5 Turbo
Z.ai: GLM 4.7 Flash
Quick answers
- How much does Z.ai: GLM 5.2 cost?
- $0.76 per million input tokens and $2.39 per million output tokens.
- What is Z.ai: GLM 5.2's context window?
- 1,048,576 tokens, roughly 1,572 pages of text in a single request.
- Does Z.ai: GLM 5.2 support tool calling?
- It supports tool calling, structured output, a reasoning mode.
- Can Z.ai: GLM 5.2 process images?
- No, it is text-only on the input side.