GLM 5.2 is the best Z.ai model for coding, with a 68.8 Artificial Analysis Coding Index across benchmarks like SWE-bench and SciCode. GLM 5.1 (55.8) and GLM 4.7 (45.3) round out the top three.
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 AI coding models for code generation, debugging and agentic development.
GLM 5.2 is the best Z.ai model for coding, with a 68.8 Artificial Analysis Coding Index across benchmarks like SWE-bench and SciCode. GLM 5.1 (55.8) and GLM 4.7 (45.3) round out the top three.
GLM 5.1 (55.8) is the closest alternative on this metric, followed by GLM 4.7 (45.3). See the full ranking above for the tradeoffs.
modelgrep tracks 12 Z.ai models with live benchmarks, speed, latency and per-provider pricing, led on intelligence by GLM 5.2. 3 of them qualify for this ranking.