head-to-head

MoonshotAI: Kimi K2.7 Code vs SpaceXAI: Grok 4.20

Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-11-07.

MoonshotAI: Kimi K2.7 Code SpaceXAI: Grok 4.20
Vendormoonshotaix-ai
Quality Score100100
Benchmark Score74.156.5
Input Price$0.60/M$1.25/M
Output Price$3.50/M$2.50/M
Context Window262,1442,000,000
Max Output235,9291,800,000
Tool Calling✓✓
Structured Output✓✓
Reasoning Mode✓✓
Vision✓✓
Audio--
Benchmark Scores
ai_index69.261.0
ai_index_agentic48.8-
ai_index_coding100.0-
eqbench-45.7

The verdict

For a sample job of 1 million input tokens and 250,000 output tokens, Kimi K2.7 Code costs $1.48 and Grok 4.20 costs $1.88, so Kimi K2.7 Code is about 1.3 times cheaper for the same work.

Grok 4.20 reads up to 2,000,000 tokens at once, roughly 3,000 pages of text, against about 393 pages for Kimi K2.7 Code.

On our blended benchmark score Kimi K2.7 Code leads 74.1 to 56.5.

Across the 20 tasks where they differ, Kimi K2.7 Code scores higher on 17 (SQL Generation, Code Review, Code Completion and others), Grok 4.20 on 3 (Code Refactoring, Code Documentation, Long-Document Summarization).

Kimi K2.7 Code was released in June 2026 and Grok 4.20 in March 2026.

Pick Kimi K2.7 Code if you need lower cost, benchmark performance or the stronger all-round task scores; pick Grok 4.20 if you need long documents.

Costs use current list prices per million tokens; page counts assume about 0.75 words per token and 500 words per page.

Who wins by task?

TaskMoonshotAI: Kimi K2.7 CodeSpaceXAI: Grok 4.20
SQL Generation 163 144
Code Review 155 149
Code Completion 129 121
Code Refactoring 151 151
Bug Fixing 165 153
Unit Test Generation 147 134
Code Documentation 135 140
Regex Writing 133 127
CI/CD Pipelines 138 130
Frontend Component Design 142 131
Data Analysis 162 135
CSV / Spreadsheet Cleanup 147 138
ETL Scripting 144 141
JSON Extraction 147 123
Bulk Data Labeling 134 120
OCR / Document Parsing 142 135
Table Extraction from PDFs 142 135
Long-Document Summarization 147 153
Short-Form Summarization 130 119
Blog Post Writing 134 132

Scores reflect capability match + benchmark data + pricing for each task. Methodology →

Related comparisons

Anthropic: Claude Haiku Latest vs SpaceXAI: Grok 4.20 Anthropic: Claude Opus 5 (batch) vs MoonshotAI: Kimi K2.7 Code Anthropic: Claude Sonnet 5 vs MoonshotAI: Kimi K2.7 Code Anthropic: Claude Sonnet 5 vs SpaceXAI: Grok 4.20 Anthropic: Claude Sonnet Latest vs SpaceXAI: Grok 4.20 ByteDance Seed: Seed-2.0-Code vs MoonshotAI: Kimi K2.7 Code ByteDance Seed: Seed 2.1 Turbo vs MoonshotAI: Kimi K2.7 Code DeepSeek: DeepSeek V4 Flash Vision Exp vs MoonshotAI: Kimi K2.7 Code

The Model Movers Report

One email every Friday, built from this site's own rankings: the current top five by benchmark score, every model released in the last seven days, and one note worked out from that week's numbers. You can unsubscribe from any issue with one click.