Model Comparison

Gemma 4 31B vs Kimi K2.7 CodeWhich is better in 2026?

Comparing Gemma 4 31B and Kimi K2.7 Code across benchmarks, pricing, and capabilities.

Verdict: Gemma 4 31B vs Kimi K2.7 Code — which is better?

Gemma 4 31B (by Google) and Kimi K2.7 Code (by Moonshot AI) are two of the AI models people compare most. Here is how they stack up on benchmarks, price and capabilities, and which one to pick in 2026.

On price, Gemma 4 31B is roughly 7.4x cheaper per token on a blended 3:1 input/output basis, which adds up quickly at production volume.

Choose Gemma 4 31B if…

  • cost matters — it's about 7.4x cheaper per token

Choose Kimi K2.7 Code if…

  • you want the most recent training data — it shipped Jun 2026

Performance Benchmarks

Comparative analysis across standard metrics

No common benchmarks found

Gemma 4 31B and Kimi K2.7 Codedon't have any common benchmark datasets to compare. They may have been evaluated on different testing suites.

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

Gemma 4 31B costs less

For input processing, Gemma 4 31B ($0.13/1M tokens) is 5.7x cheaper than Kimi K2.7 Code ($0.74/1M tokens).

For output processing, Gemma 4 31B ($0.38/1M tokens) is 9.2x cheaper than Kimi K2.7 Code ($3.50/1M tokens).

In conclusion, Kimi K2.7 Code is more expensive than Gemma 4 31B.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Fri Jul 17 2026 • llm-stats.com
Google
Gemma 4 31B
Input tokens$0.13
Output tokens$0.38
Best providerDeepinfra
Moonshot AI
Kimi K2.7 Code
Input tokens$0.74
Output tokens$3.50
Best providerDeepinfra
Notice missing or incorrect data?Start an Issue

Model Size

Parameter count comparison

969.3B diff

Kimi K2.7 Code has 969.3B more parameters than Gemma 4 31B, making it 3157.3% larger.

Google
Gemma 4 31B
30.7Bparameters
Moonshot AI
Kimi K2.7 Code
1.0Tparameters
30.7B
Gemma 4 31B
1000.0B
Kimi K2.7 Code

Context Window

Maximum input and output token capacity

Both models have the same input context window of 262,144 tokens. Both models can generate responses up to 131,072 tokens.

Google
Gemma 4 31B
Input262,144 tokens
Output131,072 tokens
Moonshot AI
Kimi K2.7 Code
Input262,144 tokens
Output131,072 tokens
Fri Jul 17 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

Both Gemma 4 31B and Kimi K2.7 Code support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

Gemma 4 31B

Text
Images
Audio
Video

Kimi K2.7 Code

Text
Images
Audio
Video

License

Usage and distribution terms

Gemma 4 31B is licensed under Apache 2.0, while Kimi K2.7 Code uses Modified MIT License.

License differences may affect how you can use these models in commercial or open-source projects.

Gemma 4 31B

Apache 2.0

Open weights

Kimi K2.7 Code

Modified MIT License

Open weights

Release Timeline

When each model was launched

Gemma 4 31B was released on 2026-04-02, while Kimi K2.7 Code was released on 2026-06-12.

Kimi K2.7 Code is 2 months newer than Gemma 4 31B.

Gemma 4 31B

Apr 2, 2026

3 months ago

Kimi K2.7 Code

Jun 12, 2026

1 months ago

2mo newer

Knowledge Cutoff

When training data ends

Gemma 4 31B has a documented knowledge cutoff of 2025-01-01, while Kimi K2.7 Code's cutoff date is not specified.

We can confirm Gemma 4 31B's training data extends to 2025-01-01, but cannot make a direct comparison without Kimi K2.7 Code's cutoff date.

Gemma 4 31B

Jan 2025

Kimi K2.7 Code

Provider Availability

Gemma 4 31B is available from DeepInfra, FriendliAI, Novita, Together. Kimi K2.7 Code is available from DeepInfra, Fireworks, Moonshot AI, Novita, Together.

Gemma 4 31B

deepinfra logo
Deepinfra
Input Price:Input: $0.13/1MOutput Price:Output: $0.38/1M
friendli logo
FriendliAI
Input Price:Input: $0.14/1MOutput Price:Output: $0.40/1M
novita logo
Novita
Input Price:Input: $0.14/1MOutput Price:Output: $0.40/1M
together logo
Together
Input Price:Input: $0.39/1MOutput Price:Output: $0.97/1M

Kimi K2.7 Code

deepinfra logo
Deepinfra
Input Price:Input: $0.74/1MOutput Price:Output: $3.50/1M
fireworks logo
Fireworks
Input Price:Input: $0.95/1MOutput Price:Output: $4.00/1M
moonshot logo
Unknown Organization
Input Price:Input: $0.95/1MOutput Price:Output: $4.00/1M
novita logo
Novita
Input Price:Input: $0.95/1MOutput Price:Output: $4.00/1M
together logo
Together
Input Price:Input: $0.95/1MOutput Price:Output: $4.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Key Takeaways

Less expensive input tokens
Less expensive output tokens

No standout differentiators in the data we have for this pair.

Detailed Comparison

Interactive Arena

Judge for yourself.

Run your own prompts against Gemma 4 31B and Kimi K2.7 Code side-by-side, then vote on the output you prefer.

Gemma 4 31B
✓ Preferred
Kimi K2.7 Code
Open in Playground
AI Model Comparison Table
Feature
Google
Gemma 4 31B
Moonshot AI
Kimi K2.7 Code

FAQ

Common questions about Gemma 4 31B vs Kimi K2.7 Code.

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

Gemma 4 31B (Google) and Kimi K2.7 Code (Moonshot AI) each have strengths in different areas. Compare their benchmark scores, pricing, context windows, and capabilities above to determine which fits your needs.

How does Gemma 4 31B compare to Kimi K2.7 Code in benchmarks?

Gemma 4 31B scores AIME 2026: 89.2%, MMMLU: 88.4%, t2-bench: 86.4%, MathVision: 85.6%, MMLU-Pro: 85.2%. Kimi K2.7 Code scores MCP-Mark: 81.1%, MCP Atlas: 76.0%, LiveBench: 71.9%, Kimi Code Bench v2: 62.0%, Program Bench: 53.6%.

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

Gemma 4 31B is 5.7x cheaper for input tokens. Gemma 4 31B costs $0.13/M input and $0.38/M output via deepinfra. Kimi K2.7 Code costs $0.74/M input and $3.50/M output via deepinfra.

What are the context window sizes for Gemma 4 31B and Kimi K2.7 Code?

Gemma 4 31B supports 262K tokens and Kimi K2.7 Code supports 262K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between Gemma 4 31B and Kimi K2.7 Code?

Key differences include input pricing ($0.13 vs $0.74/M), licensing (Apache 2.0 vs Modified MIT License). See the full comparison above for benchmark-by-benchmark results.

Who makes Gemma 4 31B and Kimi K2.7 Code?

Gemma 4 31B is developed by Google and Kimi K2.7 Code is developed by Moonshot AI.