Skip to main content
GLM-5.2 is Z.ai’s flagship open-weight model. It’s built for coding agents and long-horizon tasks. Its one-million-token context window can process an entire codebase in a single request. And you can balance response quality and cost by editing the model’s reasoning parameters. To use GLM-5.2, see the following model properties: To estimate costs, see how tokens are priced:

Choose a Model Feature

Choose what you’d like to do with the model:

Send Requests

Connect to GLM-5.2 with the OpenAI-compatible Chat Completions API.

Control Reasoning

Edit GLM-5.2’s reasoning parameters.

Other Resources

FriendliAI Models

Z.ai Docs

Hugging Face Models

Last modified on July 19, 2026