Z.ai: GLM 5.2 (free)✓ Catalog verified
GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...
Overview
GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...
Access: available through the official Z Ai API. Context window: 128K.
Specifications
| API identifier | z-ai/glm-5.2:free |
| Provider | Z Ai |
| Model type | Text LLM |
| Context window | 128K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | Jun 16, 2026 |
| Moderated | No |
| Architecture modality | text->text |
API defaults
{
"top_k": null,
"top_p": 0.95,
"temperature": 1,
"presence_penalty": null,
"frequency_penalty": null,
"repetition_penalty": null
}Pricing
Live pricing components for z-ai/glm-5.2:free as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $0 | $0.00 / 1M | Per input token |
| Completion tokens | $0 | $0.00 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | Not advertised | Supports tools / function calling |
| Self-Hosting | Not advertised | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Z.ai: GLM 5.2 (free) through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="z-ai/glm-5.2:free",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| AllenAI: Olmo 2 32B Instruct | Allenai | 128K | $0.05 | View → |
| Amazon: Nova Micro 1.0 | Amazon | 128K | $0.04 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Z.ai: GLM 5.2 (free) cost?
$0.00 per 1M input tokens and $0.00 per 1M output tokens on the official Z Ai API.
What is the context window of Z.ai: GLM 5.2 (free)?
Z.ai: GLM 5.2 (free) supports up to 128K tokens of context.
Does Z.ai: GLM 5.2 (free) support tool / function calling?
Z.ai: GLM 5.2 (free) does not advertise first-class tool/function calling. Check vendor docs for the latest capabilities.
How do I access Z.ai: GLM 5.2 (free)?
Use the official Z Ai API with the model id `z-ai/glm-5.2:free`. See the Quick start section above for code examples.