GLM 5.1

Z.ai· released 7 Apr 2026

z-ai/glm-5.1
Input / 1M tokens
$0.965
Output / 1M tokens
$3.032
Context window205K tokens

Longest answer: 131K tokens

reads textopen weightstool callingreasoning

About

GLM 5.1 is a text model from Z.ai in the z-ai family, with open weights and tool support. Its listed summary highlights coding and long-horizon tasks, describing a model intended to work continuously and independently rather than only in brief interactions. It accepts text and produces text, with a 204,800-token context window and a maximum output of 131,072 tokens. Reasoning is listed as supported. The model was released on 2026-04-07; its Hugging Face identifier is zai-org/GLM-5.1, and its model ID is z-ai/glm-5.1. Pricing is 0.9646 USD per 1M input tokens and 3.0316 USD per 1M output tokens. The official listing is at https://openrouter.ai/z-ai/glm-5.1.

Who it is for

GLM 5.1 suits builders looking for an open-weight text model with tool support and a large context window, particularly for coding and extended tasks.

What is good

  • Open weights are available.
  • Supports tools and reasoning.
  • 204,800-token context window.
  • Maximum output is 131,072 tokens.

What to know first

  • Output costs 3.0316 USD per 1M tokens.
  • Input costs 0.9646 USD per 1M tokens.

Verdict

GLM 5.1 pairs open weights and tool support with a large context and output allowance. Its listed input and output prices make token costs a key consideration for extended use.

Details

Lab
Z.aiopenrouter.ai · 3 Oct 2026
Context
205Kopenrouter.ai · 3 Oct 2026
Input price
$0.965 / 1Mopenrouter.ai · 3 Oct 2026
Output price
$3.032 / 1Mopenrouter.ai · 3 Oct 2026
Max output
131,072 tokensopenrouter.ai · 3 Oct 2026
Inputs
textopenrouter.ai · 3 Oct 2026
Open weights
Yesopenrouter.ai · 3 Oct 2026

More newest models

See the list