Skip to content
ModelCap

Head-to-head comparison

Gemma 4 31B vs Kimi K2.7 Code

Gemma 4 31B (Google) and Kimi K2.7 Code (Moonshot AI) compared on the ModelCap Index, API price, context window, provider availability, weight access and every public benchmark board they share. Figures are the same ones shown on the live rankings; nothing here is a hidden score.

Snapshot as of 17 August 2026

As of 17 August 2026, Kimi K2.7 Code holds the stronger ModelCap Index position (#26 vs #30); Gemma 4 31B is 10.3× cheaper per output token ($0.34/1M vs $3.50/1M); and Gemma 4 31B ships open weights.

Which should you choose?

Choose Gemma 4 31B if…

  • API cost matters — $0.34/1M output tokens against $3.50/1M, about 10.3× cheaper.
  • your workload is prompt-heavy — input tokens cost $0.10/1M against $0.71/1M.
  • you want to self-host: Gemma 4 31B ships open weights while Kimi K2.7 Code is restricted license.
  • you want provider choice — 16 listed API providers against 14.

Choose Kimi K2.7 Code if…

  • you want the stronger overall ModelCap Index position — #26 against #30 (63.2 vs 60.0 points).
  • LMArena Agent is your yardstick — 1.1% against -18.9%.
  • Artificial Analysis Intelligence Index is your yardstick — 43.0 against 29.7.
  • you want the more recently listed model — Kimi K2.7 Code was listed 12 June 2026, Gemma 4 31B 2 April 2026.

Gemma 4 31B vs Kimi K2.7 Code: specs, pricing and context

Specification comparison of Gemma 4 31B and Kimi K2.7 Code
FieldGemma 4 31BGoogleKimi K2.7 CodeMoonshot AI
ModelCap Index position#30#26
Index score60.063.2
EvidenceMeasuredMeasured
Input price / 1M tokens$0.10$0.71
Output price / 1M tokens$0.34$3.50
Context window262K tokens262K tokens
Max output tokens262K262K
API providers listed1614
Weight accessOpen weightsRestricted license
Input modalitiesImage, Text, VideoText, Image
First listed2 April 202612 June 2026
PublisherGoogleMoonshot AI

Evidence: 4 public benchmark observations across 4 boards · 2 public benchmark observations across 2 boards. Prices are the lowest listed API offer per million tokens observed on the OpenRouter catalogue.

Benchmark scores: Gemma 4 31B vs Kimi K2.7 Code

Public benchmark boards where Gemma 4 31B or Kimi K2.7 Code has a published result
BoardGemma 4 31BKimi K2.7 CodeLeads
Arena codingArena (LMArena)14991483–1514Only one result
LMArena AgentLMArena-18.9%-21.7%–-16.0%1.1%-1.1%–3.2%Kimi K2.7 Code
Artificial Analysis Intelligence IndexArtificial Analysis29.7intelligence-index43.0intelligence-indexKimi K2.7 Code

Scores are the sources' own published figures for each model's best evaluated configuration; ModelCap never re-runs a benchmark.

Want a different pairing? Open the interactive comparison tool to swap either model for any current ranked language model.

Gemma 4 31B vs Kimi K2.7 Code: common questions

Is Gemma 4 31B better than Kimi K2.7 Code?

Kimi K2.7 Code ranks higher on the ModelCap Index as of 17 August 2026: #26 against #30. That is a capability ranking built from public benchmark evidence with published uncertainty; whether it is "better" for you also depends on price, context and where you can run it.

Is Gemma 4 31B cheaper than Kimi K2.7 Code?

Gemma 4 31B is cheaper on output tokens: $0.34/1M against $3.50/1M. Input tokens are $0.10/1M for Gemma 4 31B and $0.71/1M for Kimi K2.7 Code. Prices are the lowest listed API offer ModelCap observed, in USD per million tokens.

Which has the bigger context window, Gemma 4 31B or Kimi K2.7 Code?

Both publish a 262K-token context window.

Which is better for coding, Gemma 4 31B or Kimi K2.7 Code?

The two models do not share a coding benchmark board on ModelCap yet, so no head-to-head coding score is published; the ModelCap Index position is the closest overall signal.

Are Gemma 4 31B and Kimi K2.7 Code open-weight models?

Gemma 4 31B: Open weights. Kimi K2.7 Code: Restricted license. Open weights mean the checkpoint can be downloaded and self-hosted under its licence; API-only models are available solely through hosted endpoints.

Where can I run Gemma 4 31B and Kimi K2.7 Code?

ModelCap currently lists 16 API providers for Gemma 4 31B and 14 for Kimi K2.7 Code, from the OpenRouter catalogue snapshot the site serves; each model page lists the providers and their prices.

How current is this Gemma 4 31B vs Kimi K2.7 Code comparison?

Every figure comes from the sealed ModelCap dataset published 17 August 2026; the page re-renders within a minute of each data refresh, and the ModelCap Index positions are the same ones shown on the live rankings.

Explore further