GLM-4-Long

by Z.ai (Zhipu AI)Chat

GLM-4 model optimized for long inputs with context caching. 1,000,000 token context window. Input and output billed at the same per-token rate.

Context
1M tokens
Max output
4,095 tokens
Released
2024-01-01
Weights
Closed

Feed

zhipuai/glm-4-long

Specifications

Full facts as recorded, incl. what is unknown.

Released
2024-01-01
Weights
Closed
Input
Text
Output
Text
Context window
1,000,000 max across endpoints
Max output
4,095
Providers
1 + 1 gateway, not counted as providers
Epoch Capabilities Index
not evaluated
Direct price range
$0.138 in · $0.138 out per 1M tokens · from its one provider
More details
Last updated
2024-08-01
Knowledge cutoff

Capabilities

Across all endpoints: supported if any endpoint supports it.

  • Tool calling
  • Parallel toolsunknown
  • Structured output
  • Reasoning
  • Image input
  • PDF input
  • Audio input
  • Audio outputunknown
  • Video input
  • Prompt cachingunknown
  • Web searchunknown
  • Computer useunknown
  • System messagesunknown
  • Assistant prefillunknown
  • Temperatureunknown
  • Streamingunknown
  • Attachments

Endpoints

One row per provider and variant; gateways are listed separately.

Loading endpoints…

Price history

Atom feed

No change since 19 Oct 2026. The cheapest direct price has been $0.138 in / $0.138 out per 1M tokens at Zhipu AI on every data refresh since then.

Tracked from 19 Oct 2026. Headline-eligible direct prices only, so a price the sanity check flags never draws a spike. Series as JSON

Cost calculator

Loading endpoints…

Similarly priced models

Blended rate per 1M tokens, each at its own cheapest provider (10M input : 2M output mix).

ModelBlended/1MIn/1MOut/1MContextvs GLM-4-Long
Sao10K Stheno 8bSao10K$0.201$0.201$0.20116.4K+0%
Qwen3.5 PlusAlibaba (Qwen)$0.201$0.11$0.6581M+0%
Qwen3 4B InstructAlibaba (Qwen)$0.20$0.20$0.20262K−0% cheaper
Qwen3 8BAlibaba (Qwen)$0.20$0.20$0.20131K−0% cheaper
gemma-2-9bGoogle$0.20$0.20$0.208.2K−0% cheaper
Gemma 4 E4B ITGoogle$0.20$0.20$0.20131K−0% cheaper
Ministral 14BMistral AI$0.20$0.20$0.20262K−0% cheaper
Ministral 3 14BMistral AI$0.20$0.20$0.20262K−0% cheaper

More from Z.ai (Zhipu AI)

Newest Z.ai (Zhipu AI) models in the catalogue. All Z.ai (Zhipu AI) models

ModelReleasedContextListed price
Apex Flash 12026-10-051.05M$0.15 via NanoGPT
Apex Flash 1 Abliterated2026-10-051.05M$0.15 via NanoGPT
GLM 5.3 Uncensored2026-09-261.05M$1.25 via NanoGPT
GLM 5.3 Prime2026-09-231Mfrom $2.80
GLM 5.3 Flash Cybersecurity2026-09-191.05M$0.15 via NanoGPT
GLM 5.3 FlashX2026-09-181.05Mfrom $0.37
GLM-5.3-Flash2026-08-261.05Mfrom $0.099
GLM-5.32026-08-141.05Mfrom $0.75
Heads up: prices are indicative list rates scraped from provider pricing pages; verify with the provider before relying on them. Report incorrect data for this model