Model Comparison

Comprehensive side-by-side analysis of model capabilities and performance

Google

Gemma 3 4B

Google

Gemma 3 4B is a multimodal language model developed by Google. The model shows competitive results across 26 benchmarks. It excels particularly in IFEval (90.2%), GSM8k (89.2%), DocVQA (75.8%). It supports a 262K token context window for handling large documents. The model is available through 1 API provider. As a multimodal model, it can process and understand text, images, and other input formats seamlessly. It's licensed for commercial use, making it suitable for enterprise applications. Released in 2025, it represents Google's latest advancement in AI technology.

xAI

Grok-4

xAI

Grok-4 is a multimodal language model developed by xAI. It achieves strong performance with an average score of 63.1% across 7 benchmarks. It excels particularly in AIME 2025 (91.7%), HMMT25 (90.0%), GPQA (87.5%). It supports a 264K token context window for handling large documents. The model is available through 2 API providers. As a multimodal model, it can process and understand text, images, and other input formats seamlessly. Released in 2025, it represents xAI's latest advancement in AI technology.

Google

Gemma 3 4B

Google

2025-03-12

xAI

Grok-4

xAI

2025-07-09

3 months newer

Pricing Comparison

Cost per million tokens (USD)

Google

Gemma 3 4B

$17.94 cheaper
Input:$0.02
Output:$0.04
xAI

Grok-4

Input:$3.00
Output:$15.00

Performance Metrics

Context window and performance specifications

Google

Gemma 3 4B

Max Context:262.1K
Parameters:4.0B
xAI

Grok-4

Larger context
Max Context:264.0K

Average performance across 2 common benchmarks

Google

Gemma 3 4B

Average Score:21.7%
xAI

Grok-4

+61.5%
Average Score:83.3%

Performance comparison across key benchmark categories

Google

Gemma 3 4B

code
61.5%
general
40.7%
xAI

Grok-4

code
+17.5%
79.0%
general
+28.7%
69.3%
Benchmark Scores - Detailed View
Side-by-side comparison of all benchmark scores
Knowledge Cutoff
Training data recency comparison

Gemma 3 4B

2024-08-01

Grok-4

2024-12-31

More recent knowledge cutoff means awareness of newer technologies and frameworks

Provider Availability & Performance

Available providers and their performance metrics

Google

Gemma 3 4B

1 providers

DeepInfra

Throughput: 33 tok/s
Latency: 0.2ms
xAI

Grok-4

2 providers

xAI

Throughput: 100 tok/s
Latency: 0.7ms

ZeroEval

Throughput: 100 tok/s
Latency: 0.7ms
Google

Gemma 3 4B

Avg Score:21.7%
Providers:1
xAI

Grok-4

+61.5%
Avg Score:83.3%
Providers:2