The AI arena is free today

Open Superagent

Gemma 4 31B vs Grok 4.6

Comparing Gemma 4 31B and Grok 4.6 across benchmarks, pricing, and capabilities.

Google · xAI · Updated for 2026

Which is better?

Gemma 4 31B and Grok 4.6 trade strengths across price, capabilities, and technical limits. The better choice depends on the workload.

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

Grok 4.6 also accepts a larger context window (500,000 input tokens), making it the stronger choice for long documents and large codebases.

Based on current benchmark, pricing, and model metadata for 2026.

Choose Gemma 4 31B

  • cost matters — it's about 15.6x cheaper per token
  • you need open weights you can self-host or fine-tune

Choose Grok 4.6

  • you process long inputs — it offers a 500,000 token context window
  • you want the most recent training data — it shipped Aug 2026

At a glance

The differences that matter most.

Benchmark wins
Input price
$0.13 / M
$2.00 / M
Output price
$0.38 / M
$6.00 / M
Context window
262,144
500,000
Released
Apr 2026
Aug 2026
License
Apache 2.0
Proprietary

Performance Benchmarks

Comparative analysis across standard metrics

No common benchmarks found

Gemma 4 31B and Grok 4.6don't have any common benchmark datasets to compare. They may have been evaluated on different testing suites.

Arena Performance

Playground indexes and blind preference scores

Pricing Analysis

Price comparison per million tokens

Gemma 4 31B costs less

For input processing, Gemma 4 31B ($0.13/1M tokens) is 15.4x cheaper than Grok 4.6 ($2.00/1M tokens).

For output processing, Gemma 4 31B ($0.38/1M tokens) is 15.8x cheaper than Grok 4.6 ($6.00/1M tokens).

In conclusion, Grok 4.6 is more expensive than Gemma 4 31B.*

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

Lowest available price from all providers
Tue Aug 25 2026 • llm-stats.com
Google
Gemma 4 31B
Input tokens$0.13
Output tokens$0.38
Best providerDeepinfra
xAI
Grok 4.6
Input tokens$2.00
Output tokens$6.00
Best providerxAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

Grok 4.6 accepts 500,000 input tokens compared to Gemma 4 31B's 262,144 tokens. Only Gemma 4 31B specifies output context (131,072 tokens).

Google
Gemma 4 31B
Input262,144 tokens
Output131,072 tokens
xAI
Grok 4.6
Input500,000 tokens
Output- tokens
Tue Aug 25 2026 • llm-stats.com

Input Capabilities

Supported data types and modalities

Both Gemma 4 31B and Grok 4.6 support multimodal inputs.

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

Gemma 4 31B

Text
Images
Audio
Video

Grok 4.6

Text
Images
Audio
Video

License

Usage and distribution terms

Gemma 4 31B is licensed under Apache 2.0, while Grok 4.6 uses a proprietary 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

Grok 4.6

Proprietary

Closed source

Release Timeline

When each model was launched

Gemma 4 31B was released on 2026-04-02, while Grok 4.6 was released on 2026-08-12.

Grok 4.6 is 4 months newer than Gemma 4 31B.

Gemma 4 31B

Apr 2, 2026

4 months ago

Grok 4.6

Aug 12, 2026

1 weeks ago

4mo newer

Knowledge Cutoff

When training data ends

Gemma 4 31B has a knowledge cutoff of 2025-01-01, while Grok 4.6 has a cutoff of 2026-02-01.

Grok 4.6 has more recent training data (up to 2026-02-01), making it potentially better informed about events through that date compared to Gemma 4 31B (2025-01-01).

Gemma 4 31B

Jan 2025

Grok 4.6

Feb 2026

1.1 yr newer

Provider Availability

Gemma 4 31B is available from DeepInfra, FriendliAI, Novita, Together. Grok 4.6 is available from xAI.

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

Grok 4.6

xai logo
xAI
Input Price:Input: $2.00/1MOutput Price:Output: $6.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

Run your own prompts against Gemma 4 31B and Grok 4.6 side-by-side, then vote on the output you prefer.

Gemma 4 31B
✓ Preferred
Grok 4.6
Open in Playground

FAQ

Common questions about Gemma 4 31B vs Grok 4.6.

Which is better, Gemma 4 31B or Grok 4.6?

Gemma 4 31B (Google) and Grok 4.6 (xAI) 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 Grok 4.6 in benchmarks?

Gemma 4 31B scores AIME 2026: 89.2%, MMMLU: 88.4%, t2-bench: 86.4%, MathVision: 85.6%, MMLU-Pro: 85.2%. Grok 4.6 scores CursorBench v3.2: 69.9%, DeepSWE 1.1: 65.9%, FrontierCode: 61.3%, AA-Index: 61.0%, GDPval-AA: 58.4%.

Is Gemma 4 31B cheaper than Grok 4.6?

Gemma 4 31B is 15.4x cheaper for input tokens. Gemma 4 31B costs $0.13/M input and $0.38/M output via deepinfra. Grok 4.6 costs $2.00/M input and $6.00/M output via xai.

What are the context window sizes for Gemma 4 31B and Grok 4.6?

Gemma 4 31B supports 262K tokens and Grok 4.6 supports 500K 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 Grok 4.6?

Key differences include context window (262K vs 500K), input pricing ($0.13 vs $2.00/M), licensing (Apache 2.0 vs Proprietary). See the full comparison above for benchmark-by-benchmark results.

Who makes Gemma 4 31B and Grok 4.6?

Gemma 4 31B is developed by Google and Grok 4.6 is developed by xAI.