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 | |
|---|---|---|
| Vendor | moonshotai | x-ai |
| Quality Score | 100 | 100 |
| Benchmark Score | 74.1 | 56.5 |
| Input Price | $0.60/M | $1.25/M |
| Output Price | $3.50/M | $2.50/M |
| Context Window | 262,144 | 2,000,000 |
| Max Output | 235,929 | 1,800,000 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
| Benchmark Scores | ||
| ai_index | 69.2 | 61.0 |
| ai_index_agentic | 48.8 | - |
| ai_index_coding | 100.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?
| Task | MoonshotAI: Kimi K2.7 Code | SpaceXAI: 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 →