GLM 5.2
glm-5.2
Open flagship GLM for long-horizon coding agents and million-token context work
Price / 1M
Guts AIOfficialInput$0.081$1.40Output$0.243$4.40Cached$0.020
Context1MTokens
Max output128KTokens
Latency1.0s75 tokens/s
1curl https://api.gutsai.id/v1/chat/completions \
2 -H "Authorization: Bearer $GUTS_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "glm-5.2",
6 "messages": [{"role": "user", "content": "Hello"}]
7 }'
1import os
2from openai import OpenAI
3
4client = OpenAI(base_url="https://api.gutsai.id/v1", api_key=os.environ["GUTS_API_KEY"])
5res = client.chat.completions.create(
6 model="glm-5.2",
7 messages=[{"role": "user", "content": "Hello"}],
8)
1import OpenAI from "openai";
2
3const client = new OpenAI({ baseURL: "https://api.gutsai.id/v1", apiKey: process.env.GUTS_API_KEY });
4const res = await client.chat.completions.create({
5 model: "glm-5.2",
6 messages: [{ role: "user", content: "Hello" }],
7});
Availability, last 24h
24h ago
Operational
Degraded
Down
No traffic
Now
Specifications
Context window
1,000,000Tokens
Max output
131,072Tokens
Knowledge cutoff
--
Released
Jun 13, 2026
Input
TextImagePDFVideoAudio
Output
Text
Open weights
Yes
Capabilities
ReasoningTool callingStructured outputPrompt cachingFile attachmentsTemperature
Pricing
Input, cached input and output each have their own price, charged from your balance.
InputPrompt tokens sent to the model
≈ Rp 1.500$0.081Cached inputPrompt tokens served from cache
≈ Rp 375$0.020OutputGenerated tokens, including reasoning
≈ Rp 4.500$0.243
Read from cache
Estimated cost per month
Performance
Measured on Guts AI traffic over the last 24 hours.
| Metric | P50 | P90 | P99 |
|---|---|---|---|
| Time to first token | 1.0s | 2.3s | 13.7s |
| End-to-end latency | 12.6s | 36.6s | 85.1s |
| Throughput | 75 tok/s | 46 tok/s | 43 tok/s |
API
Mapped from the model's capabilities. Everything else follows the OpenAI SDK.
- max_tokens
- Up to 131,072
- response_format
- JSON schema
- temperature
- Supported
- reasoning_effort
- high · max
- tools, tool_choice
- Supported
- stream
- Supported
Usage
Input + output tokens processed by GLM 5.2 on Guts AI, per week (UTC).
Tokens this week19.8M↓ 16.1% vs last week
Requests this week736↓ 22.2% vs last week
Avg tokens / request27Kinput + output
Apps using GLM 5.2
Top public apps sending GLM 5.2 traffic through Guts AI this week.
- 1.Sophia's LoreBary15.7%3.12M tokens
- 2.Cherry StudioGeneral chatDesktop AI client that connects many LLM providers, assistants and tools.0.0%561 tokens