GLM 5.2 (free)

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, and complex multi-step automation. Reasoning efforts `high` and `xhigh` are supported; `xhigh` maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.

ChatZhipu256k tokensFree

z-ai/glm-5.2:free

Context
256k tokens
Completion cap
256,000
Tools
Yes
JSON
Yes
Released
2026-06-16

Call it from Geek Hub

Same OpenAI SDK. Change the base URL and the model id.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.2:free",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is GLM 5.2 (free)?
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, and complex multi-step automation. Reasoning efforts `high` and `xhigh` are supported; `xhigh` maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task. GLM 5.2 (free) runs on the Geek Hub API (OpenAI-compatible). Model id: z-ai/glm-5.2:free.
Is GLM 5.2 (free) free?
Yes. The listed price is zero — you are not charged for prompt or completion tokens. Free endpoints are rate limited.
What is the context length of GLM 5.2 (free)?
GLM 5.2 (free) has a 256k tokens context window. It supports up to 256,000 completion tokens.
Does GLM 5.2 (free) support tool calling and structured outputs?
GLM 5.2 (free) accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was GLM 5.2 (free) released?
GLM 5.2 (free) was released on 2026-06-16.

More models from Zhipu