GLM 5.1 vs Kimi K2.7 Code

API pricing, context window and capabilities for GLM 5.1 and Kimi K2.7 Code, side by side. Prices are the cheapest serving route per 1M tokens, verified against LiteLLM and OpenRouter.

Verdict

computed from the published numbers

Kimi K2.7 Code wins on coding, on intelligence and on context window.

Price
Tied
Coding
Kimi K2.7 Code
Intelligence
Kimi K2.7 Code
Context window
Kimi K2.7 Code

Key takeaways

who wins on what, from the published numbers

GLM 5.1 wins

  • Cheaper output ($3.50 vs $4.00 /1M)
  • More serving providers (2 vs 1)
  • Supports prompt caching

Kimi K2.7 Code wins

  • Cheaper input ($1.05 vs $0.95 /1M)
  • Larger context window (203K vs 262K)
  • Higher max output (128K vs 262K)
Cheaper overall
GLM 5.1
$1.05 + $3.50 /1M
Larger context
Kimi K2.7 Code
262K
More providers
GLM 5.1
2 providers

Pricing & specs

cheapest serving route · per 1M tokens
GLM 5.1Kimi K2.7 Code
Input $/1M$1.05 $0.95 best
Output $/1M$3.50 best$4.00
Context window203K 262K best
Max output128K 262K best
Serving providers2 best1
Released2026-04-07 2026-06-13

Benchmarks

Artificial Analysis indices, side by side
GLM 5.1Kimi K2.7 Code
Intelligence40.2 42.0 best
Coding55.8 60.8 best
GPQA Diamond87% 90% best
Output speed91 t/s best45 t/s
Latency (TTFT)10.49s best39.31s

Cost calculator

choose a serving route for each side
Input tokens / month
Output tokens / month
GLM 5.1
via OpenRouter
$8.75
Kimi K2.7 Code
via Cloudflare
$8.75

Capabilities

feature support, side by side
FeatureGLM 5.1Kimi K2.7 Code
Vision
Tool use
Reasoning
Audio
Prompt caching
Structured output
Web search

Related comparisons

Frequently asked questions

Which is cheaper, GLM 5.1 or Kimi K2.7 Code?
Kimi K2.7 Code is cheaper for input ($1.05 vs $0.95 per 1M tokens). GLM 5.1 is cheaper for output ($3.50 vs $4.00 per 1M tokens).
What is the context window difference between GLM 5.1 and Kimi K2.7 Code?
GLM 5.1 has a 203K-token context window and Kimi K2.7 Code has 262K tokens, so Kimi K2.7 Code can take a larger prompt.
How do GLM 5.1 and Kimi K2.7 Code compare on benchmarks?
On the tracked Artificial Analysis indices, Kimi K2.7 Code leads on coding, and Kimi K2.7 Code leads on intelligence.
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI