Skip to main content

Z.ai: GLM 5.1 Coding Benchmark

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...

Code Mode#34Recommended
Context202,752tokens
Inputmodality
Price$1.40/1M input

Try Z.ai: GLM 5.1 in Kilo Code

Experience this model with the most popular open source coding agent. Free to start, pay only for AI usage. Use in popular IDEs like VS Code, JetBrains, command line, or cloud agents.

3M+

Downloads

500+

models supported

Free

to Start

Access 500+ models including Z.ai: GLM 5.1 and many more in Kilo Code

Coding Performance

Coding benchmarks and performance metrics for development tasks

Kilo Bench

% Completion on Terminal Bench 2.0
49.4%
Cost per attempt (USD)
$23.98
Benchmark
Terminal Bench 2.0

Official Kilo eval results. Cost is averaged per complete benchmark attempt.

Real-World Usage

Real-world usage statistics from the Kilo Code community

Weekly Token Usage

Mode Rankings (Last Week)

Where this model ranks for each built-in mode

Code

Write, modify, and refactor code

#34

Ask

Get answers and explanations

#26

Debug

Diagnose and fix software issues

#29

Orchestrator

Coordinate tasks across multiple modes

#29

Real-world metrics from the Kilo Code Leaderboard

Pricing

Cost per 1 million tokens

Input Tokens
$1.40
per 1M tokens
Output Tokens
$4.40
per 1M tokens

Example Cost

Analyzing a 10,000 line codebase (≈40k input tokens, 10k output tokens) costs approximately $0.1000

Coding Capabilities

Features and parameters relevant to coding tasks

Coding Features

Function Calling
Can call external functions/APIs
Tool Choice
Control over function selection
Structured Outputs
JSON schema validation
Reasoning Tokens
Extended thinking for complex problems

Pricing details from OpenRouter

Technical Details

Architecture and implementation specifications

Specifications
Model ID
z-ai/glm-5.1
Created
April 7, 2026
Tokenizer
Other
Input Modalities
Text
Context Window
202,752 tokens
Input Price
$1.40 per 1M tokens
Output Price
$4.40 per 1M tokens
Cache Read Price
$0.26 per 1M tokens
Content Moderation
Disabled

Ready to try Z.ai: GLM 5.1?

Install Kilo Code and start using Z.ai: GLM 5.1 for your coding projects today. Choose from 500+ AI models with complete freedom.

  1. Install Kilo Code

    Get the extension from VS Code Marketplace, JetBrains Plugin Repository, or the CLI.

  2. Open the model selector

    Click the model name in the Kilo Code chat panel to open the selector.

  3. Choose your model

    Search or browse to find and select your preferred model.

  4. Start coding

    Use Code, Ask, Debug, or Plan mode — the model is ready immediately.