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.

Microsoft

Phi 4

Microsoft

Phi 4 is a language model developed by Microsoft. It achieves strong performance with an average score of 66.0% across 13 benchmarks. It excels particularly in MMLU (84.8%), HumanEval+ (82.8%), HumanEval (82.6%). The model shows particular specialization in math tasks with an average performance of 80.5%. The model is available through 1 API provider. It's licensed for commercial use, making it suitable for enterprise applications. Released in 2024, it represents Microsoft's latest advancement in AI technology.

Microsoft

Phi 4

Microsoft

2024-12-12

Google

Gemma 3 4B

Google

2025-03-12

3 months newer

Pricing Comparison

Cost per million tokens (USD)

Google

Gemma 3 4B

$0.15 cheaper
Input:$0.02
Output:$0.04
Microsoft

Phi 4

Input:$0.07
Output:$0.14

Performance Metrics

Context window and performance specifications

Google

Gemma 3 4B

Larger context
Max Context:262.1K
Parameters:4.0B
Microsoft

Phi 4

Max Context:32.0K
Parameters:14.7B

Average performance across 6 common benchmarks

Google

Gemma 3 4B

Average Score:52.6%
Microsoft

Phi 4

+6.7%
Average Score:59.2%

Performance comparison across key benchmark categories

Google

Gemma 3 4B

math
64.5%
code
61.5%
general
40.7%
Microsoft

Phi 4

math
+16.0%
80.5%
code
+14.6%
76.1%
general
+19.5%
60.2%
Benchmark Scores - Detailed View
Side-by-side comparison of all benchmark scores
Knowledge Cutoff
Training data recency comparison

Phi 4

2024-06-01

Gemma 3 4B

2024-08-01

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
Microsoft

Phi 4

1 providers

DeepInfra

Throughput: 33 tok/s
Latency: 0.2ms
Google

Gemma 3 4B

Avg Score:52.6%
Providers:1
Microsoft

Phi 4

+6.7%
Avg Score:59.2%
Providers:1