modelgrep

Longest-Context Z.ai Models

Match · Updated July 2026

GLM 5.2 has the largest context window of any Z.ai model, at 1.0M tokens. GLM 5.1 (205K) and GLM 5 (205K) round out the top three.

1.0MContext
51.1Intelligence
$0.966Input /M

AI models with the largest context windows, ranked by token capacity. The best large language models for long documents, codebases and extended conversations.

  1. 1z-ai logo
    glm-5.2
    ReasoningToolsJSON51.1 intel · $0.966/M
    1.0M
    Context
  2. 2z-ai logo
    glm-5.1
    ReasoningToolsJSON40.2 intel · $0.966/M
    205K
    Context
  3. 3z-ai logo
    glm-5
    ReasoningToolsJSON39.5 intel · $0.950/M
    205K
    Context
  4. 4z-ai logo
    glm-4.7
    ReasoningToolsJSON33.7 intel · $0.400/M
    205K
    Context
  5. 5z-ai logo
    glm-4.6
    ReasoningToolsJSON23.0 intel · $0.500/M
    205K
    Context
  6. 6z-ai logo
    glm-5v-turbo
    ReasoningToolsJSON+134.5 intel · $1.20/M
    203K
    Context
  7. 7z-ai logo
    glm-5-turbo
    ReasoningToolsJSON38.1 intel · $1.20/M
    203K
    Context
  8. 8z-ai logo
    glm-4.7-flash
    ReasoningToolsJSON22.9 intel · $0.060/M
    203K
    Context

Frequently asked

Which Z.ai model has the largest context window?

GLM 5.2 has the largest context window of any Z.ai model, at 1.0M tokens. GLM 5.1 (205K) and GLM 5 (205K) round out the top three.

What's a good alternative to GLM 5.2?

GLM 5.1 (205K) is the closest alternative on this metric, followed by GLM 5 (205K). See the full ranking above for the tradeoffs.

How many Z.ai models are there?

modelgrep tracks 12 Z.ai models with live benchmarks, speed, latency and per-provider pricing, led on intelligence by GLM 5.2. 8 of them qualify for this ranking.

More Z.ai rankings

All rankings