Kimi K2.7 Code vs Grok 4.20

API pricing, monthly cost and benchmark scores for Kimi K2.7 Code (Moonshot) and Grok 4.20 (xAI), side by side.

Prices checked Nov 29, 2026

The short answer

Grok 4.20 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): $873 a month against $988 for Kimi K2.7 Code, 12% less. The order changes with the shape of the traffic: input-heavy requests are cheaper on Kimi K2.7 Code.

Grok 4.20 scores higher on the Epoch Capabilities Index, 152.3 against 151.1 for Kimi K2.7 Code, but the confidence intervals overlap, so the gap may not be real. Grok 4.20 has the larger context window, 2,000,000 tokens against 262,000. Across the 5 benchmarks both have results for, Kimi K2.7 Code leads on 2 and Grok 4.20 on 3.

Side by side

SpecificationMoonshot Kimi K2.7 CodexAI Grok 4.20
Input price per 1M tokens$0.950$1.25
Cached input per 1M tokens$0.190$0.200
Output price per 1M tokens$4.00$2.50
Context window262K tokens2M tokens
Epoch Capabilities Index151.1152.3
GPQA87.3%89.3%
Release dateJun 12, 2026Feb 17, 2026
Open weightsYesNo
Capabilitiestools, reasoning, json, visiontools, reasoning, json, vision, pdf

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 CodexAI Grok 4.20Difference
Default workload2,000 input and 500 output tokens a request, 10,000 requests a day, 40% cached$987.60$873.00Grok 4.20 is 12% cheaper
Input-heavy10,000 input and 300 output tokens a request, 10,000 requests a day, 40% cached$2,298.00$2,715.00Kimi K2.7 Code is 15% cheaper
Output-heavy500 input and 2,000 output tokens a request, 10,000 requests a day, 0% cached$2,542.50$1,687.50Grok 4.20 is 34% 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 CodexAI Grok 4.20
Epoch Capabilities IndexECI151.1152.3
FrontierMath Tiers 1-3% solved56.8847.28
FrontierMath Tier 4% solved12.217.07
SimpleQA Verified% correct36.530.2
GPQA Diamond% accuracy87.3389.35

Go further

Frequently asked questions

Is Kimi K2.7 Code cheaper than Grok 4.20?
Grok 4.20 is cheaper. On the default workload it costs $873 a month against $988 for Kimi K2.7 Code, which is 12% less. Per 1M tokens, Kimi K2.7 Code charges $0.950 for input and $4.00 for output; Grok 4.20 charges $1.25 and $2.50.
Which scores higher, Kimi K2.7 Code or Grok 4.20?
Grok 4.20 has the higher Epoch Capabilities Index score: 151.1 for Kimi K2.7 Code and 152.3 for Grok 4.20. Their confidence intervals overlap, so the difference may be noise.
Which has the larger context window?
Grok 4.20 accepts more: 2,000,000 tokens against 262,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.200 on Grok 4.20. Neither lists a batch rate.