All models
Z.AI
GLM 5.2
Top new-generation GLM with a huge context
Text
Reasoning
Tools
- Type
- Chat
- Context
- 1.0M tokens
- Russian
- medium
- Input price
- 77,28 ₽ / 1M tokens
- Output price
- 242,88 ₽ / 1M tokens
- Release date
- June 2026
chat/completions
import OpenAI from "openai"const client = new OpenAI({ baseURL: "https://api.yenisei.ru/v1", apiKey: process.env.YENISEI_API_KEY,})const stream = await client.chat.completions.create({ model: "glm-5.2", messages: [{ role: "user", content: "Hi!" }], stream: true,})for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? "")}About the model
GLM 5.2 is the recent top model in the Chinese GLM lineup from Z.AI: reasoning, code and agent scenarios. It lays out detailed step-by-step reasoning for complex multi-stage tasks and holds a very large context, working confidently with lengthy documents and long conversations. The model reliably calls tools (function-calling) and is a good fit for autonomous agents and automation. It follows instructions and system prompts and behaves predictably in production systems. Its Russian is average.
Strengths
- Deep step-by-step reasoning
- Huge context
- Strong with code and agents
- Reliable tool calling for automation
- Precise instruction following
- Predictable behavior in production systems
Where to use it
- Complex analytics and research
- Development, debugging and code analysis
- Autonomous agents and multi-step planning
- Working with large documents and data
- Agent scenarios with tool calling
- Tasks where depth and context matter