modelgrep

Open-Source Z.ai Models

Match · Updated July 2026

The best open-weight Z.ai model is GLM 5.2 (51.1 intelligence) — downloadable from Hugging Face and self-hostable. GLM 5.1 (40.2) and GLM 5 (39.5) round out the top three.

51.1Intelligence
$0.966Input /M
1.0MContext

The best open-source AI models — open-weight, downloadable from Hugging Face and self-hostable — ranked by intelligence. Open-source alternatives to proprietary frontier models.

  1. 1z-ai logo
    glm-5.2
    ReasoningToolsJSON51.1 intel · $0.966/M · 1.0M ctx
    51.1
    Intelligence
  2. 2z-ai logo
    glm-5.1
    ReasoningToolsJSON40.2 intel · $0.966/M · 205K ctx
    40.2
    Intelligence
  3. 3z-ai logo
    glm-5
    ReasoningToolsJSON39.5 intel · $0.950/M · 205K ctx
    39.5
    Intelligence
  4. 4z-ai logo
    glm-4.7
    ReasoningToolsJSON33.7 intel · $0.400/M · 205K ctx
    33.7
    Intelligence
  5. 5z-ai logo
    glm-4.6
    ReasoningToolsJSON23.0 intel · $0.500/M · 205K ctx
    23.0
    Intelligence
  6. 6z-ai logo
    glm-4.7-flash
    ReasoningToolsJSON22.9 intel · $0.060/M · 203K ctx
    22.9
    Intelligence
  7. 7z-ai logo
    glm-4.5
    ReasoningToolsJSON19.5 intel · $0.600/M · 131K ctx
    19.5
    Intelligence
  8. 8z-ai logo
    glm-4.5-air
    ReasoningTools16.5 intel · $0.130/M · 131K ctx
    16.5
    Intelligence
  9. 9z-ai logo
    glm-4.6v
    ReasoningToolsJSON+111.0 intel · $0.300/M · 131K ctx
    11.0
    Intelligence
  10. 10z-ai logo
    glm-4.5v
    ReasoningToolsJSON+17.0 intel · $0.600/M · 66K ctx
    7.0
    Intelligence

Frequently asked

What is the best open-source Z.ai model?

The best open-weight Z.ai model is GLM 5.2 (51.1 intelligence) — downloadable from Hugging Face and self-hostable. GLM 5.1 (40.2) and GLM 5 (39.5) round out the top three.

What's a good alternative to GLM 5.2?

GLM 5.1 (40.2) is the closest alternative on this metric, followed by GLM 5 (39.5). 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. 10 of them qualify for this ranking.

More Z.ai rankings

All rankings