Anthropic: Claude Sonnet 5 vs MoonshotAI: Kimi K2.7 Code
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-09-29.
| Anthropic: Claude Sonnet 5 | MoonshotAI: Kimi K2.7 Code | |
|---|---|---|
| Vendor | anthropic | moonshotai |
| Quality Score | 100 | 100 |
| Benchmark Score | 63.9 | 40.9 |
| Input Price | $2.00/M | $0.66/M |
| Output Price | $10.00/M | $3.30/M |
| Context Window | 1,000,000 | 262,144 |
| Max Output | 128,000 | 235,929 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
| Benchmark Scores | ||
| ai_index | 63.0 | 42.6 |
The verdict
For a sample job of 1 million input tokens and 250,000 output tokens, Kimi K2.7 Code costs $1.48 and Claude Sonnet 5 costs $4.50, so Kimi K2.7 Code is about 3.0 times cheaper for the same work.
Claude Sonnet 5 reads up to 1,000,000 tokens at once, roughly 1,500 pages of text, against about 393 pages for Kimi K2.7 Code.
On our blended benchmark score Claude Sonnet 5 leads 63.9 to 40.9.
Across the 20 tasks where they differ, Claude Sonnet 5 scores higher on 16 (SQL Generation, Code Review, Code Refactoring and others), Kimi K2.7 Code on 4 (Code Completion, JSON Extraction, Bulk Data Labeling and others).
Pick Claude Sonnet 5 if you need long documents, benchmark performance or the stronger all-round task scores; pick Kimi K2.7 Code 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 | Anthropic: Claude Sonnet 5 | MoonshotAI: Kimi K2.7 Code |
|---|---|---|
| SQL Generation | 140 | 136 |
| Code Review | 144 | 134 |
| Code Completion | 118 | 129 |
| Code Refactoring | 146 | 134 |
| Bug Fixing | 148 | 138 |
| Unit Test Generation | 131 | 126 |
| Code Documentation | 135 | 129 |
| Regex Writing | 123 | 123 |
| CI/CD Pipelines | 127 | 122 |
| Frontend Component Design | 129 | 127 |
| Data Analysis | 133 | 130 |
| CSV / Spreadsheet Cleanup | 135 | 129 |
| ETL Scripting | 136 | 128 |
| JSON Extraction | 121 | 131 |
| Bulk Data Labeling | 118 | 128 |
| OCR / Document Parsing | 134 | 130 |
| Table Extraction from PDFs | 134 | 130 |
| Long-Document Summarization | 146 | 136 |
| Short-Form Summarization | 116 | 125 |
| Blog Post Writing | 128 | 124 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →