MoonshotAI: Kimi K2.7 Code vs Mistral: Mistral Small 4
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-11-07.
| MoonshotAI: Kimi K2.7 Code | Mistral: Mistral Small 4 | |
|---|---|---|
| Vendor | moonshotai | mistralai |
| Quality Score | 100 | 100 |
| Benchmark Score | 74.1 | 6.1 |
| Input Price | $0.60/M | $0.15/M |
| Output Price | $3.50/M | $0.60/M |
| Context Window | 262,144 | 262,144 |
| Max Output | 235,929 | 209,715 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
| Benchmark Scores | ||
| ai_index | 69.2 | 7.7 |
| ai_index_agentic | 48.8 | - |
| ai_index_coding | 100.0 | - |
The verdict
For a sample job of 1 million input tokens and 250,000 output tokens, Mistral Small 4 costs $0.30 and Kimi K2.7 Code costs $1.48, so Mistral Small 4 is about 4.9 times cheaper for the same work.
Both read up to 262,144 tokens at once, roughly 393 pages of text.
On our blended benchmark score Kimi K2.7 Code leads 74.1 to 6.1.
Across the 20 tasks where they differ, Kimi K2.7 Code scores higher on 20 (SQL Generation, Code Review, Code Completion and others).
Kimi K2.7 Code was released in June 2026 and Mistral Small 4 in March 2026.
Pick Kimi K2.7 Code if you need benchmark performance or the stronger all-round task scores; pick Mistral Small 4 if you need lower cost.
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 | Mistral: Mistral Small 4 |
|---|---|---|
| SQL Generation | 163 | 132 |
| Code Review | 155 | 127 |
| Code Completion | 129 | 129 |
| Code Refactoring | 151 | 129 |
| Bug Fixing | 165 | 131 |
| Unit Test Generation | 147 | 122 |
| Code Documentation | 135 | 127 |
| Regex Writing | 133 | 120 |
| CI/CD Pipelines | 138 | 118 |
| Frontend Component Design | 142 | 122 |
| Data Analysis | 162 | 125 |
| CSV / Spreadsheet Cleanup | 147 | 128 |
| ETL Scripting | 144 | 123 |
| JSON Extraction | 147 | 131 |
| Bulk Data Labeling | 134 | 129 |
| OCR / Document Parsing | 142 | 128 |
| Table Extraction from PDFs | 142 | 128 |
| Long-Document Summarization | 147 | 130 |
| Short-Form Summarization | 130 | 124 |
| Blog Post Writing | 134 | 120 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →