modelgrep

Best Z.ai Models for Coding

Quick answer · Updated June 2026

GLM 5 is the best Z.ai model for coding, with a 39.0 Artificial Analysis Coding Index across benchmarks like SWE-bench and SciCode. GLM 5 Turbo (36.8) and GLM 4.7 (36.3) round out the top three.

39.0Coding
40.6Intelligence
108 t/sSpeed
$0.600Input /M
203KContext

AI models ranked by the Artificial Analysis Coding Index, measuring real-world software engineering ability across benchmarks like SWE-bench, SciCode and terminal tasks. The best LLMs for code generation, debugging and agentic development.

  1. 1Z
    glm-5
    ReasoningToolsJSON40.6 intel · $0.600/M · 108 t/s
    39.0
    Coding
  2. 2Z
    glm-5-turbo
    ReasoningToolsJSON46.8 intel · $1.20/M · 29 t/s
    36.8
    Coding
  3. 3Z
    glm-4.7
    ReasoningToolsJSON42.1 intel · $0.400/M · 452 t/s
    36.3
    Coding
  4. 4Z
    glm-5.1
    ReasoningToolsJSON43.8 intel · $0.980/M · 84 t/s
    35.8
    Coding
  5. 5Z
    glm-4.6
    ReasoningToolsJSON30.2 intel · $0.430/M · 37 t/s
    30.2
    Coding
  6. 6Z
    glm-4.5
    ReasoningToolsJSON26.4 intel · $0.600/M · 42 t/s
    26.3
    Coding
  7. 7Z
    glm-4.7-flash
    ReasoningToolsJSON30.1 intel · $0.060/M · 35 t/s
    25.9
    Coding
  8. 8Z
    glm-4.5-air
    ReasoningToolsJSON23.2 intel · $0.125/M · 59 t/s
    23.8
    Coding
  9. 9Z
    glm-4.6v
    ReasoningToolsJSON+123.4 intel · $0.300/M · 60 t/s
    19.7
    Coding
  10. 10Z
    glm-4.5v
    ReasoningToolsJSON+115.1 intel · $0.600/M · 19 t/s
    10.9
    Coding

Frequently asked

What is the best Z.ai model for coding?

GLM 5 is the best Z.ai model for coding, with a 39.0 Artificial Analysis Coding Index across benchmarks like SWE-bench and SciCode. GLM 5 Turbo (36.8) and GLM 4.7 (36.3) round out the top three.

What's a good alternative to GLM 5?

GLM 5 Turbo (36.8) is the closest alternative on this metric, followed by GLM 4.7 (36.3). See the full ranking above for the tradeoffs.

How many Z.ai models are there?

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

More Z.ai rankings

All rankings