Z.aiCodingReleased 7 April 2026

GLM 5.1 pricing, context and benchmark

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.

205K
Input context
182K
Output context
$0.9
Official input
$2.9
Official output
n/a
AA index

Everything that matters, in one table

Context, pricing, cache, modalities and tooling, from the model registry and Artificial Analysis.

ModelGLM 5.1
Model IDz-ai/glm-5.1
ProviderZ.ai
Release date7 April 2026
StatusGenerally available
Input context204,800 tokens
Output context182,476 tokens
Official input pricing$0.9 per 1M tokens
Official output pricing$2.9 per 1M tokens
Cache read pricing$0.262 per 1M tokens (78% off input)
Market input pricing$0.9 per 1M (cheapest route)
Market output pricing$2.9 per 1M (cheapest route)
Highest route pricing$1.38 in, $4.4 out per 1M
Input modalitiestext
Output modalitiestext
Reasoning controlNot exposed
Tool supportText generation only
TokenizerOther
Provider routes8 endpoints
Artificial Analysis indexNot published
Speed76 tokens/s, 24s to first token
Knowledge cutoffNot publicly stated

Input and output support

ModalityInputOutputBilled at
Text✓ yes✓ yes$0.9 in
Imagenononot supported
Audionononot supported
Videonononot supported
File (PDF)nononot supported

What is GLM 5.1?

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.

Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

GLM 5.1 carries a 205K token window, uses the Other tokenizer and is served by Z.ai. On Hoodgen it sits in the Coding tier of the model menu next to its siblings, so you can switch mid conversation without losing the thread.

Release and what changed from the previous version

Released7 April 2026

This is the only release of GLM 5.1 on OpenRouter, released 7 April 2026. The provider has not published a knowledge cutoff, so treat training data as recent but unconfirmed for very new events.

Features and capabilities

⚡
Prompt caching
Cached input costs $0.262 per million instead of $0.9, so stable prefixes get cheaper.

What can you do with GLM 5.1?

Code generation
New modules, tests and migrations from a written spec.
Refactoring
Cross file renames and API migrations with the whole repo in context.
Code review
Diff review with reasons, not just lint output.
Pairing
In editor loops inside the Hoodgen Coding workspace.

Prompt caching and how to cut the bill

Cached input bills at $0.262 per million instead of $0.9, a 78% discount. Keep the system prompt and documents first and the changing question last, so every call hits the cache.

GLM 5.1 pricing

Official pricing

List price
$0.9 / 1M in
$2.9 / 1M out
  • $0.262 cached input
  • 205K context
  • text input
Cheapest route
$0.9 / 1M in
$2.9 / 1M out
  • 8 routes on OpenRouter
  • What Hoodgen routes to first
  • Same model, lower bill
Highest route
$1.38 / 1M in
$4.4 / 1M out
  • Priority or premium tier
  • Best under load
  • Use for latency critical calls

Market pricing, every route

ProviderTierInputOutputCache readUptime 24h
Chutesstandard$0.9$2.9$0.0999.9%
StreamLakestandard$0.966$3.036$0.179100.0%
SiliconFlowstandard$1.19$3.74$0.699.9%
Phalastandard$1.21$4.2$0.6100.0%
AtlasCloudstandard$1.26$3.96$0.234100.0%
Alibabastandard$1.33$4.18$0.24795.9%
Novitastandard$1.38$4.4$0.26100.0%
Baidustandard$1.4$4.4$0.26n/a

API pricing and cost calculator

RatePer callTotalCredits
Cheapest route$0.0126$6.316000
List price$0.0147$7.356979
Highest route$0.0342$17.1016246

API and developer information

Model IDz-ai/glm-5.1
Endpointhttps://openrouter.ai/api/v1/chat/completions
Parametersprompt and max_tokens
StreamingYes, server sent events
Modality stringtext->text
Max prompt tokens204,800
Max completion tokens182,476
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.1",
    "messages": [{ "role": "user", "content": "Summarise this document." }],
    "max_tokens": 1024
  }'

Model limitations

Text only outputIt cannot generate images, audio or video. Pair it with an image model on Hoodgen when you need visuals.
Output cap182,476 tokens per request. Long deliverables have to be chunked.
Benchmarks not publishedArtificial Analysis does not publish an Intelligence Index for this release, so no benchmark score is claimed here.
Knowledge cutoffThe provider does not state a fixed cutoff for every release. Verify very recent events against search.

GLM 5.1 vs other Z.ai models

ModelContextInput /1MOutput /1MAA indexReleased
GLM 5.1205K$0.9$2.9n/a2026
GLM 5.21.05M$0.0066$7.983n/a2026

Privacy and data policy

  • On Hoodgen, prompts and attachments answer that request and stay in your conversation history so you can reopen it. They are not used to train models.
  • Requests route through OpenRouter to Z.ai and are covered by that provider's API terms.
  • Do not paste secrets or personal data you would not send to any hosted model.

GLM 5.1 questions, answered

GLM 5.1 is a coding model from Z.ai, released 7 April 2026. GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.
✦

Start chatting with GLM 5.1

Free to try on Hoodgen AI, with a live credit estimate before every send. No API key, no setup.