Skip to main content

Z.ai Coding Models on Kilo Code

Updated May 2026 · 6 models tracked

Builder of GLM models for agentic coding and long-context work. Z.ai’s coding models on Kilo Code include GLM 4.6, GLM 4.7, GLM 4.7 Flash, and GLM 5. Use them across VS Code, JetBrains IDEs, Cursor, Windsurf, Trae, and the Kilo CLI — with pay-as-you-go pricing and no markup over the underlying provider rates.

Models6in catalog
Top Codingindex
Price$0.06–$1.40 / 1M ininput range
LicenseOpen + closedposture

Every Z.ai Coding Model in Kilo Code, Ranked

Sorted by coding-index where published. Click any model for the full review with benchmarks, real-world Kilo usage, and provider-specific pricing.

#1

Z.ai: GLM 4.6

Z.ai

Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex...

Coding index
Context
203K
Price (in / out per 1M)
$0.430 / $1.74
Speed
50 tok/s
View GLM 4.6 in Kilo
#2

Z.ai: GLM 4.7

Z.ai

GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while...

Coding index
Context
203K
Price (in / out per 1M)
$0.400 / $1.75
Speed
View GLM 4.7 in Kilo
#3

Z.ai: GLM 4.7 Flash

Z.ai

As a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency. It is further optimized for agentic coding use cases, strengthening coding capabilities, long-horizon task planning,...

Coding index
Context
203K
Price (in / out per 1M)
$0.060 / $0.400
Speed
View GLM 4.7 Flash in Kilo
#4

Z.ai: GLM 5

Z.ai

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

Coding index
Context
203K
Price (in / out per 1M)
$1.00 / $3.20
Speed
View GLM 5 in Kilo
#5

Z.ai: GLM 5.1

Z.ai

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

Coding index
Context
203K
Price (in / out per 1M)
$1.40 / $4.40
Speed
View GLM 5.1 in Kilo
#6

Z.ai: GLM 5.2 (new)

Z.ai

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...

Coding index
Context
1049K
Price (in / out per 1M)
$1.40 / $4.40
Speed
View GLM 5.2 (new) in Kilo

About Z.ai

Z.ai, formerly associated with the GLM and Zhipu ecosystem, focuses on bilingual reasoning models with strong tool-use and agentic coding behavior. Its GLM line tends to emphasize practical developer workflows: long context, low-latency variants, and open-weight options that compete with larger closed models on coding tasks.

Headquarters
Beijing, China
Founded
2019
License posture
Open + closed

Z.ai Pricing on Kilo Code

Pay-as-you-go, no markup over the underlying provider rates. Cheapest first.

ModelInput / 1MOutput / 1MContextCoding index
Z.ai: GLM 4.7 Flash$0.060$0.400203K
Z.ai: GLM 4.7$0.400$1.75203K
Z.ai: GLM 4.6$0.430$1.74203K
Z.ai: GLM 5$1.00$3.20203K
Z.ai: GLM 5.1$1.40$4.40203K
Z.ai: GLM 5.2 (new)$1.40$4.401049K

How to Use Z.ai Models in Kilo Code

Three ways: hosted in Kilo, locally on your hardware, or through your own provider keys.

1

Use Hosted in Kilo

The fastest path: install Kilo Code, sign in, pick z.ai from the model picker. No API keys, no markup. Works in VS Code, JetBrains, Cursor, Windsurf, Trae, and the Kilo CLI.

See live model leaderboard →
2

Bring Your Own Keys

Already have an account with Z.ai, OpenRouter, AWS Bedrock, Google Vertex, Together AI, or another compatible provider? Plug your key into Kilo Code and keep your existing billing relationship.

BYOK setup guide →
3

Run Locally

Download Z.ai open weights from Hugging Face and serve them with Ollama, LM Studio, vLLM, or SGLang. Connect Kilo Code to your local OpenAI-compatible endpoint and keep all prompts on hardware you control.

Local setup guide →

Compare Z.ai with Other Labs

See coding-model lineups from Z.ai’s closest competitors.

Why Choose Z.ai Models for Coding?

Frontier capability

Z.ai’s flagship is among the strongest coding models on the Kilo Code leaderboard, ranked by Code, Plan, Ask, Debug, and Review usage.

Works everywhere Kilo works

VS Code, Cursor, Windsurf, Trae, JetBrains IDEs (IntelliJ, PyCharm, WebStorm, GoLand, RubyMine, Android Studio), and the Kilo CLI / terminal.

No vendor lock-in

Switch between Z.ai and 500+ other models with one click. Pay only for what you use, at the underlying provider rate.

Z.ai Coding Models: FAQ

What is the best Z.ai model for coding?+

The newest GLM model with the highest coding index is usually the best Z.ai choice in Kilo Code. Use the lab table to compare GLM variants by coding score, context, and price.

Can I use Z.ai models in Kilo Code?+

Z.ai models work across VS Code, Cursor, Windsurf, Trae, JetBrains IDEs, and the Kilo CLI.

How much do Z.ai models cost on Kilo Code?+

Z.ai models in Kilo Code are billed at provider rates with no markup. Check the pricing table for the current input and output token rates for each GLM variant.

Are Z.ai models open source?+

Mixed. Z.ai publishes open-weight GLM models for self-hosting while also offering hosted API variants through providers such as OpenRouter.

What is the difference between Z.ai's flagship coding models?+

The largest GLM releases target deeper reasoning and agentic coding, while flash or lightweight variants prioritize lower latency and cheaper iteration loops.

Which IDEs and editors support Z.ai models through Kilo?+

Z.ai models work across VS Code, Cursor, Windsurf, Trae, JetBrains IDEs, and the Kilo CLI.

Use Z.ai Coding Models in Kilo Today

Install Kilo Code and get instant access to Z.ai: GLM 4.6 and 5 other Z.ai models, plus 500+ frontier and open-source options. Free to start, no credit card required.