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.
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
| Specification | ||
|---|---|---|
| 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 window | 262K tokens | 2M tokens |
| Epoch Capabilities Index | 151.1 | 152.3 |
| GPQA | 87.3% | 89.3% |
| Release date | Jun 12, 2026 | Feb 17, 2026 |
| Open weights | Yes | No |
| Capabilities | tools, reasoning, json, vision | tools, 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.
| Workload | Difference | ||
|---|---|---|---|
| Default workload2,000 input and 500 output tokens a request, 10,000 requests a day, 40% cached | $987.60 | $873.00 | Grok 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.00 | Kimi 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.50 | Grok 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.
| Benchmark | ||
|---|---|---|
| Epoch Capabilities IndexECI | 151.1 | 152.3 |
| FrontierMath Tiers 1-3% solved | 56.88 | 47.28 |
| FrontierMath Tier 4% solved | 12.2 | 17.07 |
| SimpleQA Verified% correct | 36.5 | 30.2 |
| GPQA Diamond% accuracy | 87.33 | 89.35 |
Go further
Full pages: Kimi K2.7 Code and Grok 4.20. Or use the interactive comparison to pick any models.