GLM 5.2
by ZAI
GLM 5.2 pricing, context window and specs
GLM 5.2 is a ZAI model with a 1,048,575 token context window. It costs $1.40 per million input tokens and $4.40 per million output tokens, and supports reasoning, tool calling and structured output.
GLM 5.2 specs
Provider
ZAI
Model ID
zai-org/GLM-5.2
Input price
$1.40 per 1M tokens
Cached input price
$0.26 per 1M tokens
Output price
$4.40 per 1M tokens
Context window
1,048,575 tokens
Modalities
Text in, text out
Tool calling
โ Supported
Structured output
โ Supported
Reasoning
โ Supported
Vision
Not supported
Prices checked on
When to use GLM 5.2
Pick GLM 5.2 as an everyday model when you need solid quality without paying top-tier prices.
Drafting and analysis. Writing, summarising and answering questions over your own data.
Problems that need thinking. It can reason through a task before it answers.
Agents that use tools. It supports tool calling and structured output, so it can act and hand back clean JSON.
Large inputs. The 1,048,575 token context window fits long documents and transcripts in one request.
Cost calculator
What GLM 5.2 costs at your volume
Pick a workload or move the sliders. The estimate uses the prices in the table above.
Templates
Templates you can run with GLM 5.2
Ready-made workflows and agents. Copy one, pick GLM 5.2 in the AI step and run it.
Workflow
3
uses
AI Visibility Checker
Paste a customer question to see how ChatGPT and Gemini answer it and which brands and sources they mention.
tom_alan
Workflow
1
uses
Community Co-Host Leads From Referring Organizations
For community program managers and executives, this workflow reads a program website and its live backlinks to identify organizations worth approaching as potential event co-hosts. It returns a prioritized table with each referring page and an evidence-based reason to reconnect.

Fetch Hive
Agent
1
uses
Google SEO Keyword Research Agent
Tell it what you want to create and the country and language, and it picks the keyword worth targeting with the evidence behind it.
tom_alan
Build with it
Use GLM 5.2 in Fetch Hive
Fetch Hive is an AI agent builder. Pick this model in any prompt, workflow or agent step, or call it from your own code with one API request.
Call GLM 5.2 through the AI Gateway
1
Create a prompt and pick the model
Write your prompt in Fetch Hive and choose this model from the model library. Add a fallback model if you want a backup.
2
Deploy the prompt
Deploying gives the prompt a deployment name and a variant that your code can call.
3
Send one POST request
Call the invoke endpoint with your API key. Usage is charged to your AI wallet at the provider list price, and each call uses one task.
Compare
Compare GLM 5.2 with similar models
List prices per 1M tokens and context window, next to the models people most often weigh it against.
GLM 5.1 FP4
GLM 5.3

Gemini 3.8 Flash
FAQ



