Z.ai: GLM 5

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With advanced agentic planning,...

#41 Code Mode$0.80/1M input tokensFree in Kilo

Totally Free. Only in Kilo

Use this model completely free in Kilo Code. No credits required. Get AI coding that actually works, from architecture and planning to coding, debugging and deployment.

Context Window
202,752 tokens
Max Output
131,072 tokens
Input Modalities
text

Try Z.ai: GLM 5 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.

1.5M+

Downloads

500+

models supported

Free

to Start

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

Benchmarking Z.ai: GLM 5

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

Architect

Plan and design before implementation

#39

Code

Write, modify, and refactor code

#41

Ask

Get answers and explanations

#52

Debug

Diagnose and fix software issues

#52

Orchestrator

Coordinate tasks across multiple modes

#40

Real-world metrics from the Kilo Code Leaderboard

Pricing

Cost per 1 million tokens

Input Tokens
$0.80
per 1M tokens
Output Tokens
$2.56
per 1M tokens

Example Cost

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

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

Model ID
z-ai/glm-5
Created
February 11, 2026
Tokenizer
Other
Input Modalities
text
Context Window
202,752 tokens
Max Completion Tokens
131,072 tokens
Input Price
$0.80 per 1M tokens
Output Price
$2.56 per 1M tokens
Cache Read Price
$0.00 per 1M tokens
Content Moderation
Disabled

Ready to try Z.ai: GLM 5?

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