MistralvsGoogle·Updated Nov 2026
Codestral 2508 logovsGemma 3 4B logo

Codestral 2508 vs Gemma 3 4B

Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.

Switch Comparison Matchup411 · Updated Nov 2026
Cheaper Input
Gemma 3 4B logoGemma 3 4B-83%

$0.05 vs $0.30 / 1M

Cheaper Output
Gemma 3 4B logoGemma 3 4B-89%

$0.10 vs $0.90 / 1M

AA Intelligence / AA Engineering
—

—

Context Window
Codestral 2508 logoCodestral 25082×

256K vs 131K tokens

Capability Benchmarks & Third-Party Evaluations

Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.

AA Intelligence · Engineering · Arena · SWE-bench
Artificial Analysis Benchmarks
AA Intelligence
Codestral 2508 logoCodestral 2508Pending
Gemma 3 4B logoGemma 3 4BPending
AA Engineering
Codestral 2508 logoCodestral 2508Pending
Gemma 3 4B logoGemma 3 4BPending
Core Capability Profile
MetricCodestral 2508Gemma 3 4B
Reasoning——
Input Modalitiestext, filetext, image
Tools & JSONTools—
Prompt Caching$0.03/1M$0.05/1M
Open-WeightOpenProprietary

Side-by-side specification matrix

USD ·
MetricCodestral 2508 logoCodestral 2508Gemma 3 4B logoGemma 3 4BCompare
Input / 1M$0.30$0.05Gemma 3 4B -83%
Output / 1M$0.90$0.10Gemma 3 4B -89%
5m Cache Write / 1M$0.30$0.05Gemma 3 4B -83%
1h Cache Write / 1M———
Cache Read$0.03$0.05Codestral 2508 -40%
Web Search / Call———
Context256K (256,000)131K (131,072)Codestral 2508 2×
Max Output205K (204,800)16K (16,384)Codestral 2508 13×
AA Intelligence(Artificial Analysis)———
AA Engineering———
Capabilitiestext, filetext, imageEqual
ReasoningNot listedNot listedEqual
Structured Outputs(JSON Schema)Not listedNot listedEqual
Open-WeightOpen-WeightProprietary APICodestral 2508

30-day production cost estimator

Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.

LLM API Monthly Cost Calculator
2,000
2,500
500
50%
0
60,000 · 150.0M · 30.0M
Est. 30-Day Spend
Estimated monthly savings with Gemma 3 4B $41.25/mo ($495.00)
-80%
Codestral 2508 logoCodestral 2508
$51.75/mo
In: $22.50
Cache: $2.25
Out: $27.00
Search: N/A
Gemma 3 4B logoGemma 3 4BBest Value
$10.50/mo
In: $3.75
Cache: $3.75
Out: $3.00
Search: N/A

Frequently Asked Questions

Is Codestral 2508 or Gemma 3 4B cheaper per API token?

Gemma 3 4B is 83% cheaper on input tokens ($0.05 vs $0.30 per 1M). For output tokens, Gemma 3 4B costs 89% less ($0.10 vs $0.90 per 1M).

How do Codestral 2508 and Gemma 3 4B prompt caching discounts compare?

Codestral 2508 offers 40% cheaper cache reads at $0.03/1M compared to $0.05/1M for Gemma 3 4B. Codestral 2508 5m write: $0.30/1M; Gemma 3 4B 5m write: $0.05/1M.

Which model has a larger context window: Codestral 2508 or Gemma 3 4B?

Codestral 2508 provides a 2× larger context window (256K vs 131K tokens). For single-turn output generation, Codestral 2508 caps at 205K tokens and Gemma 3 4B caps at 16K tokens.

How do Codestral 2508 and Gemma 3 4B compare on benchmarks and capabilities?

Gemma 3 4B adds native vision/image input support, and Codestral 2508 releases open weights for self-hosting or dedicated inference.

Related Head-to-Head Matchups

Comparisons