DevTk.AI

GLM-5.1

Z.AI

GLM-5.1 by Z.AI: $1.40/M cache-miss input, $4.40/M output tokens. Cached input: $0.26/M. 200K context, 128K max output. Function Calling & JSON Mode. Price verified 2026-11-18.

Input Price

$1.40

cache miss / 1M tokens

Cached Input

$0.26

per 1M tokens

Output Price

$4.40

per 1M tokens

Context Window

200K

tokens

China (CNY) price: ¥6/M input, ¥1.3/M cached input, ¥24/M output (Input under 32K) on Z.AI's official mainland price list. Details

GLM-5.1 official China pricing (CNY)

Mainland China list price from Z.AI, in CNY per 1M tokens. Verified 2026-11-16. The USD prices above are Z.AI's international list price, not a currency conversion.

RateCached inputInputOutput
Input under 32K¥1.3¥6¥24
Input 32K and above¥2¥8¥28

Official price list

GLM-5.1 price history

No price changes recorded for GLM-5.1 in our AI API price change log (earliest entry: 2026-05-27). Current rates last verified against the official Z.AI pricing page on 2026-11-18. See all AI API price changes

Cheaper ways to use GLM-5.1

Current free credits and discounts that apply to Z.AI models.

  • 🧠智谱 BigModelFree Credits— 20M free tokens for new sign-ups; GLM-4.7-Flash and GLM-4-Flash-250414 are free to call
  • 🌋火山方舟(豆包)Free Tier— Up to 5M free inference tokens per day on Doubao-Seed-2.1-pro (check the console for the exact allowance)
  • 💧硅基流动 SiliconFlowFree Credits— ¥16 voucher after real-name verification; referrer and new user each get ¥16; several small models are freeends 2026-12-31
See all AI deals and free credits →

Specifications

ProviderZ.AI
Model IDglm-5.1
Input Price$1.40 / 1M cache-miss tokens
Cached Input Price$0.26 / 1M tokens
Output Price$4.40 / 1M tokens
Context Window200K tokens
Max Output128K tokens
Capabilities
textfunction_callingstructured_output
Release Date2026-04-07
Pricing SourceOfficial Z.AI pricing
Price Verified2026-11-18
NotesPrevious GLM flagship for long-horizon coding and agent tasks. It remains available, while GLM-5.2 adds a 1M-token context window.

Monthly Cost Estimates

Estimated monthly costs based on different daily usage levels (assuming 50% input / 50% output split). Input estimates use cache-miss pricing, so cache-heavy workloads can be lower.

Daily TokensMonthly CostAnnual Cost
10K $0.87 $10.44
50K $4.35 $52.20
100K $8.70 $104.40
500K $43.50 $522.00
1.0M $87.00 $1044.00

How GLM-5.1 Pricing Compares

Standard cache-miss input / output prices per 1M tokens, compared with active, price-verified models priced in USD. Cached, batch and long-context rates are not included.

  • Within Z.AI: 6 of 8 other active Z.AI models have a lower input price, and 6 have a lower output price. Same $1.40/$4.40 price: GLM-5.3, GLM-5.2.
  • Similar context window: among the 18 active models with a 100K–400K token context window, GLM-5.1 ranks #16 from cheapest at a 50/50 input/output mix. Cheapest: GLM-4.7-Flash ($0.00/$0.00). Most expensive: Jamba Large 1.7 ($2.00/$8.00).
  • Versus the previous release: compared with GLM-5 (released 2026-02-12, $1.00/$3.20), input is +40% and output is +38%.

Use our Token Counter to estimate how many tokens your prompts use, and our Pricing Calculator to compare costs across all models.

GLM-5.1 Key Details

  • Pricing: $1.40/M cache-miss input tokens, $0.26/M cached input tokens, $4.40/M output tokens
  • Context window: 200K tokens — 81 of 90 active models we track have a larger window
  • Max output: 128K tokens per response
  • Capabilities: text, function_calling, structured_output
  • Highlights: Previous GLM flagship for long-horizon coding and agent tasks. It remains available, while GLM-5.2 adds a 1M-token context window.
  • Released: 2026-04-07

Other Z.AI Models

Similar Price Range

Related Tools

FAQ

How much does GLM-5.1 cost?

GLM-5.1 costs $1.40 per million cache-miss input tokens and $4.40 per million output tokens. Cached input costs $0.26 per million tokens. For a typical workload of 100K input tokens/day and 50K output tokens/day, expect approximately $10.80/month before cache-hit savings.

What is GLM-5.1's context window?

GLM-5.1 supports a context window of 200K tokens. This means your combined input prompt and output response can be up to 200K tokens. The maximum output per response is 128K tokens.

Is GLM-5.1 good for my use case?

GLM-5.1 supports text, function_calling, structured_output. We track pricing and limits, not output quality, so test it on your own prompts before committing. The price comparison above lists cheaper and pricier models with a similar context window, and the Pricing Calculator estimates your monthly cost across all of them.