Back to models

Z.ai: GLM 5.1

智谱 GLM · Text

Strong GLM coding model for agentic engineering, terminals, and repository generation

Model ID z-ai/glm-5.1Updated Apr 7, 2026

Pricing & billing

Billing unit: 1M tokens. Vendor reference price; conversion is approximate.

ItemUSD referenceList price (USD)
Input$0.8964$0.8964
Output$3.59$3.59
Cache read$0.1942$0.1942
Cache write$0.00$0.00

Context tier pricing: once a single request exceeds the tier's token count, that tier's rate applies (shown in USD1M tokens). 32K $1.20

Specifications

Form
Text model
Input modalities
Text
Output modalities
Text
Context length
205K
Max output
131K
Weights
Open weights
Family
glm
Released
Apr 7, 2026

Uses and capabilities

Capabilities Text model、Function calling、Structured output、Reasoning、Prompt caching、Open weights

Function calling

Structured output

Reasoning

Prompt caching

Open weights

Sources

Use these links to verify specs and pricing — they may point to the vendor's site or to a third-party catalog.