GLM 5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

by Z.ai

Overview

Quick stats across all benchmark runs.

Score

44%

3 benchmarks

Avg Latency

19.9s

20 requests

Pricing

Free in / Free out

per 1M tokens

Context

203K

tokens

Alternatives

Models with similar or better quality but different tradeoffs

No alternatives found

Run benchmarks on this model to discover alternatives

Benchmark Performance

How this model performs across different benchmarks

BenchmarkScoreRank
Explain Like I'm 5
100%
4 / 47
Categorization Bench
65%
9 / 54
Money Boy Cultural Literacy Test
21%
100 / 107

Score Over Time

Performance trends across all benchmark runs

Benchmark Activity

Number of benchmark runs over time

Get started with this model using OpenRouter

import { OpenRouter } from "@openrouter/sdk";

const openrouter = new OpenRouter({
  apiKey: "<OPENROUTER_API_KEY>"
});

const completion = await openrouter.chat.completions.create({
  model: "z-ai/glm-5.1",
  messages: [
    {
      role: "user",
      content: "Hello!"
    }
  ]
});

console.log(completion.choices[0].message.content);

Get your API key at openrouter.ai/keys

Other Models from Z.ai

Compare performance with other models from the same creator

ModelLatencyCost/1MScore
GLM 4.753.4s$1.0745%
GLM 4.7 Flash31.6s$0.2329%
GLM 4.5 Air30.1s$0.49
GLM 4.6V43.5s$0.60
GLM 4 32B 18.7s$0.10
GLM 4.5V51.3s$1.20
GLM 4.548.4s$1.40
GLM 4.636.3s$1.08
GLM 5V Turbo$2.60
GLM 5 Turbo9.2s$2.60
GLM 56.2s$1.26