Alex Getmanearly AI signals

GLM-5.1

Z.ai

Released Updated
Context window
203K
202,752 tokens
Max output
131K
131,072 tokens
Input / Output
text → text

API pricing

USD / 1M tokens

InputOutputCached input
  • $1.40
zai-pricing
  • $4.40
zai-pricing
  • $0.26
zai-pricing

Timeline

  1. · Weights version · evidence link
Input / output price · USD / 1M tokens
ModelEvidence linksInput / output price
glm-5.1
standard
zai-pricing
API route unavailable
$1.40 / $4.40
  1. · Evidence links · GitHub search · Z.ai · pulls · anomalyco/models.dev · @models-dev-automation[bot]
  2. · Evidence links · GitHub search · Z.ai · pulls · BerriAI/litellm · @dparkmit24
    Excerpt
    env -u ZAI_API_KEY python -c 'import litellm; print(litellm.validate_environment(model="zai/glm-5.1"))'
  3. · Catalogue listing · GitHub · MiniMax-AI/minimax-code · code
    Excerpt
    /** * Shared compatibility shim for the `edit` tool's arguments. * * Two model-side quirks are normalized before schema validation runs (both * mirror Pi 0.79's builtin edit tool shim): * * 1. Some models (MiniMax-M3 / GLM-5.1) emit `edits` as a JSON string even * though the public schema is `edits[]` — parse it back into an array. * 2. Legacy single-edit input (`oldText` / `newText` at the top level) is * folded into `edits[]`. * * One shared implementation is referenced by all three edit defs * (agent-core base, desktop, cloud); edit-defs-contract tests assert the * references are identical. */ export interface PreparedEditArguments { path: string; edits: { oldText: string; newText: string }[]; } export function prepareEditArguments(args: unknown): PreparedEditArguments { if (!args || typeof args !== 'object' || Array.isArray(args

    This code reference does not establish a working model identifier.

Specifications

GLM-5.1 is a model from Z.ai with open weights, released on 7 Apr 2026. The context window is 202,752 tokens. The maximum output is 131,072 tokens. Pricing is $1.40 per million input tokens and $4.40 per million output tokens.

Context window
202,752
Max output
131,072
Input
text
Output
text
Weights
Open
Input · USD / 1M tokens
$1.40
Output · USD / 1M tokens
$4.40
Cached input · USD / 1M tokens
$0.26

Questions

What is the context window of GLM-5.1?

The context window is 202,752 tokens. The maximum output is 131,072 tokens.

How much does GLM-5.1 cost?

Pricing is $1.40 per million input tokens and $4.40 per million output tokens. Cached input is $0.26 per million.

Are the weights of GLM-5.1 publicly available?

Yes. Z.ai publishes the weights.

When was GLM-5.1 released?

On 7 Apr 2026.