MoonshotAI: Kimi K2.7 Code vs Google: Gemma 4 31B (free)
Side-by-side comparison of specs, pricing, benchmark scores, and task rankings. Updated 2026-11-07.
| MoonshotAI: Kimi K2.7 Code | Google: Gemma 4 31B (free) | |
|---|---|---|
| Vendor | moonshotai | |
| Quality Score | 100 | 100 |
| Benchmark Score | 74.1 | 53.7 |
| Input Price | $0.60/M | Free |
| Output Price | $3.50/M | Free |
| Context Window | 262,144 | 262,144 |
| Max Output | 235,929 | 32,768 |
| Tool Calling | ✓ | ✓ |
| Structured Output | ✓ | ✓ |
| Reasoning Mode | ✓ | ✓ |
| Vision | ✓ | ✓ |
| Audio | - | - |
| Benchmark Scores | ||
| ai_index | 69.2 | 48.4 |
| ai_index_agentic | 48.8 | 23.8 |
| ai_index_coding | 100.0 | 71.7 |
| eqbench | - | 57.5 |
The verdict
For a sample job of 1 million input tokens and 250,000 output tokens, Gemma 4 31B (free) costs $0 and Kimi K2.7 Code costs $1.48, so Gemma 4 31B (free) is free for the same work.
Both read up to 262,144 tokens at once, roughly 393 pages of text.
Only Gemma 4 31B (free) offers video input.
On our blended benchmark score Kimi K2.7 Code leads 74.1 to 53.7.
Across the 20 tasks where they differ, Kimi K2.7 Code scores higher on 17 (SQL Generation, Code Review, Code Refactoring and others), Gemma 4 31B (free) on 3 (Code Completion, Code Documentation, Long-Document Summarization).
Kimi K2.7 Code was released in June 2026 and Gemma 4 31B (free) in April 2026.
Pick Kimi K2.7 Code if you need benchmark performance or the stronger all-round task scores; pick Gemma 4 31B (free) if you need lower cost or video input.
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 | Google: Gemma 4 31B (free) |
|---|---|---|
| SQL Generation | 163 | 156 |
| Code Review | 155 | 152 |
| Code Completion | 129 | 131 |
| Code Refactoring | 151 | 151 |
| Bug Fixing | 165 | 160 |
| Unit Test Generation | 147 | 143 |
| Code Documentation | 135 | 137 |
| Regex Writing | 133 | 131 |
| CI/CD Pipelines | 138 | 135 |
| Frontend Component Design | 142 | 138 |
| Data Analysis | 162 | 152 |
| CSV / Spreadsheet Cleanup | 147 | 145 |
| ETL Scripting | 144 | 143 |
| JSON Extraction | 147 | 143 |
| Bulk Data Labeling | 134 | 133 |
| OCR / Document Parsing | 142 | 140 |
| Table Extraction from PDFs | 142 | 140 |
| Long-Document Summarization | 147 | 149 |
| Short-Form Summarization | 130 | 129 |
| Blog Post Writing | 134 | 133 |
Scores reflect capability match + benchmark data + pricing for each task. Methodology →