GLM 5.2 Fast
zai/glm-5.2-fastA chat model with a 1M-token context window, at $2.94 per million input tokens and $9.24 per million output tokens.
Details
- Maker
- zai
- Kind
- Chat
- Context window
- 1,000,000 tokens
- Max output
- 128,000 tokens
- Input
- $2.94 per million tokens
- Cached input
- $0.588 per million tokens, 80% off
- Cache write
- Same as input
- Output
- $9.24 per million tokens
- Capabilities
- Reasoning, tool use
- Takes
- Text
- Returns
- Text
- Zero data retention
- Yes, on every provider
- No training on requests
- Yes, on every provider
- Released
- 2026-06-23
- Newer model
- zai/glm-5.3-flashxReleased later by the same maker, costs no more, and lists the same capabilities. Compare the two
Description
GLM-5.2-Fast-Preview is the high-speed variant of Zhipu AI's GLM-5.2, with 1M context and capabilities on par with the standard version. Inference-optimized to deliver 1.5–2× the output TPS, it fits latency-sensitive use cases such as real-time chat, multi-turn agents, and streaming code generation.
Call it
curl
curl https://phantom.codes/v1/chat/completions \
-H "Authorization: Bearer $PHANTOM_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "zai/glm-5.2-fast",
"messages": [
{"role": "user", "content": "Hello"}
]
}'Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.