Kimi K2.7 Code vs GLM 5.1

API pricing, monthly cost and benchmark scores for Kimi K2.7 Code (Moonshot) and GLM 5.1 (Z.AI), side by side.

Prices checked Nov 29, 2026

The short answer

Kimi K2.7 Code is the cheaper of the two on the default workload (2,000 input and 500 output tokens a request, 10,000 requests a day, 40% cached): $988 a month against $1,226 for GLM 5.1, 19% less. Kimi K2.7 Code (151.1) and GLM 5.1 (150.7) are within half a point on the Epoch Capabilities Index, so there is no meaningful intelligence gap.

Kimi K2.7 Code has the larger context window, 262,000 tokens against 205,000. Across the 5 benchmarks both have results for, Kimi K2.7 Code leads on 3 and GLM 5.1 on 2.

Side by side

SpecificationMoonshot Kimi K2.7 CodeZ.AI GLM 5.1
Input price per 1M tokens$0.950$1.40
Cached input per 1M tokens$0.190$0.260
Output price per 1M tokens$4.00$4.40
Context window262K tokens205K tokens
Epoch Capabilities Index151.1150.7
GPQA87.3%90.1%
Release dateJun 12, 2026Apr 7, 2026
Open weightsYesYes
Capabilitiestools, reasoning, json, visiontools, reasoning, json

Monthly cost for three workloads

Each row prices 30 days of traffic at standard rates. Cached input is billed at the cached rate for the share shown.

WorkloadMoonshot Kimi K2.7 CodeZ.AI GLM 5.1Difference
Default workload2,000 input and 500 output tokens a request, 10,000 requests a day, 40% cached$987.60$1,226.40Kimi K2.7 Code is 19% cheaper
Input-heavy10,000 input and 300 output tokens a request, 10,000 requests a day, 40% cached$2,298.00$3,228.00Kimi K2.7 Code is 29% cheaper
Output-heavy500 input and 2,000 output tokens a request, 10,000 requests a day, 0% cached$2,542.50$2,850.00Kimi K2.7 Code is 11% cheaper

Benchmark by benchmark

Only benchmarks where both models have a score. Scores are as published on each benchmark; higher is better unless the benchmark page says otherwise.

BenchmarkMoonshot Kimi K2.7 CodeZ.AI GLM 5.1
Epoch Capabilities IndexECI151.1150.7
FrontierMath Tiers 1-3% solved56.8838.78
APEX-Agents% pass@137.640.9
SimpleQA Verified% correct36.534
GPQA Diamond% accuracy87.3390.14

Go further

Frequently asked questions

Is Kimi K2.7 Code cheaper than GLM 5.1?
Kimi K2.7 Code is cheaper. On the default workload it costs $988 a month against $1,226 for GLM 5.1, which is 19% less. Per 1M tokens, Kimi K2.7 Code charges $0.950 for input and $4.00 for output; GLM 5.1 charges $1.40 and $4.40.
Which scores higher, Kimi K2.7 Code or GLM 5.1?
Kimi K2.7 Code has the higher Epoch Capabilities Index score: 151.1 for Kimi K2.7 Code and 150.7 for GLM 5.1. Their confidence intervals overlap, so the difference may be noise.
Which has the larger context window?
Kimi K2.7 Code accepts more: 262,000 tokens against 205,000. The window is a limit, not a price; you pay for the tokens you send.
How do cached input and batch pricing compare?
Cached input costs $0.190 per 1M tokens on Kimi K2.7 Code and $0.260 on GLM 5.1. Neither lists a batch rate.