GLM 5.1

Provider: Zhipu AI (GLM) CN Official API price

Scheduled for retirement on 2026-11-20.
Input price
$1.40
/ 1M tokens
Output price
$4.40
/ 1M tokens
Cache price
$0.26
/ 1M tokens (read)
Context
203K tokens
Max output 131K tokens

Overview

Zhipu AI's GLM 5.1 is a coding specialist model designed for long-horizon, autonomous tasks.

Strengths

  • Input cost of $1.4/1M and output of $4.4/1M tokens
  • Cached input priced at $0.26/1M tokens
  • Supports 202,752 context window and 131,072 max output
  • Includes function-calling, json-mode, and thinking capabilities

Best use cases

  • Autonomous multi-step coding workflows
  • Complex JSON parsing tasks
  • Long-horizon programming jobs

Pricing position

Input pricing closely matches DeepSeek V4 Pro 0423 at $1.416/M and Qwen3.7 Max at $1.475/M.

Caveats

Context window is significantly smaller than the 1M+ token capacity of GLM 5.3 Flash and DeepSeek V4.

Notes drafted by an LLM from the figures on this page (2026-11-10) and rewritten when the price changes.

Key facts

Price basis
Official API price
Max output
131K tokens
Listed on OpenRouter
2026-04-07
Tracked since
2026-05-09
Last updated
2026-11-14

Features

Function callingJSON outputReasoning

Monthly cost estimate

Scale Input (M) Output (M) Monthly
0.1M (hobby) 0.1 0.05 $0.36
1M (small app) 1 0.5 $3.60
10M (mid scale) 10 5 $36.00
100M (large) 100 50 $360.00

※ Cache and batch discounts not factored in. Detailed calculator

Official resources

Other models from Zhipu AI (GLM)

Similar-priced models

Source: OpenRouter API (z-ai/glm-5.1)