head-to-head

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)
Vendormoonshotaigoogle
Quality Score100100
Benchmark Score74.153.7
Input Price$0.60/MFree
Output Price$3.50/MFree
Context Window262,144262,144
Max Output235,92932,768
Tool Calling✓✓
Structured Output✓✓
Reasoning Mode✓✓
Vision✓✓
Audio--
Benchmark Scores
ai_index69.248.4
ai_index_agentic48.823.8
ai_index_coding100.071.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?

TaskMoonshotAI: Kimi K2.7 CodeGoogle: 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 →

Related comparisons

Anthropic: Claude Haiku Latest vs Google: Gemma 4 31B (free) Anthropic: Claude Opus 5 (batch) vs MoonshotAI: Kimi K2.7 Code Anthropic: Claude Sonnet 5 vs Google: Gemma 4 31B (free) Anthropic: Claude Sonnet 5 vs MoonshotAI: Kimi K2.7 Code Anthropic: Claude Sonnet Latest vs Google: Gemma 4 31B (free) ByteDance Seed: Seed-2.0-Code vs MoonshotAI: Kimi K2.7 Code ByteDance Seed: Seed 2.1 Turbo vs MoonshotAI: Kimi K2.7 Code DeepSeek: DeepSeek V4 Flash Vision Exp vs MoonshotAI: Kimi K2.7 Code

The Model Movers Report

One email every Friday, built from this site's own rankings: the current top five by benchmark score, every model released in the last seven days, and one note worked out from that week's numbers. You can unsubscribe from any issue with one click.