head-to-head

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

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

MoonshotAI: Kimi K2.7 Code xAI: Grok 4.20
Vendormoonshotaix-ai
Quality Score100100
Benchmark Score-74.7
Input Price$0.75/M$1.25/M
Output Price$3.50/M$2.50/M
Context Window262,1442,000,000
Max Output262,144-
Tool Calling
Structured Output
Reasoning Mode
Vision
Audio--
Benchmark Scores
ai_index-81.4
ai_index_agentic-88.9
ai_index_coding-69.6
eqbench-55.8

Who wins by task?

TaskMoonshotAI: Kimi K2.7 CodexAI: Grok 4.20
SQL Generation 130 171
Code Review 126 170
Code Completion 128 122
Code Refactoring 127 168
Bug Fixing 130 185
Unit Test Generation 121 154
Code Documentation 125 147
Regex Writing 119 137
CI/CD Pipelines 117 146
Frontend Component Design 122 146
Data Analysis 124 170
CSV / Spreadsheet Cleanup 128 153
ETL Scripting 122 157
JSON Extraction 131 136
Bulk Data Labeling 128 125
OCR / Document Parsing 128 145
Table Extraction from PDFs 128 145
Long-Document Summarization 129 166
Short-Form Summarization 123 124
Blog Post Writing 118 143

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

Related comparisons

MoonshotAI: Kimi K2.7 Code vs Qwen: Qwen3.7 Plus MoonshotAI: Kimi K2.7 Code vs MiniMax: MiniMax M3 MoonshotAI: Kimi K2.7 Code vs StepFun: Step 3.7 Flash MoonshotAI: Kimi K2.7 Code vs xAI: Grok Build 0.1 MoonshotAI: Kimi K2.7 Code vs Google: Gemini 3.5 Flash MoonshotAI: Kimi K2.7 Code vs Google: Gemini 3.1 Flash Lite MoonshotAI: Kimi K2.7 Code vs xAI: Grok 4.3 MoonshotAI: Kimi K2.7 Code vs Mistral: Mistral Medium 3.5