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.
$0.05 vs $0.30 / 1M
$0.10 vs $0.90 / 1M
—
256K vs 131K tokens
Capability Benchmarks & Third-Party Evaluations
Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.
| Metric | Codestral 2508 | Gemma 3 4B |
|---|---|---|
| Reasoning | — | — |
| Input Modalities | text, file | text, image |
| Tools & JSON | Tools | — |
| Prompt Caching | $0.03/1M | $0.05/1M |
| Open-Weight | Open | Proprietary |
Compare independent Intelligence Index, Engineering/Coding scores, tokens/sec throughput, and TTFT latency for Codestral 2508 and Gemma 3 4B.
Blind pairwise human preference Elo ratings across Overall, Coding, Hard Prompts, and Instruction Following.
Measures autonomous GitHub repository issue resolution rates in sandboxed software engineering evaluations.
Monthly refreshed objective tests spanning Math, Coding, Reasoning, Data Analysis, and Language.
Evaluates practical diff editing pass rates and API cost per benchmark run across Python, C++, Go, Java, JS, and Rust.
Side-by-side specification matrix
USD ·| Metric | Compare | ||
|---|---|---|---|
| Input / 1M | $0.30 | $0.05 | Gemma 3 4B -83% |
| Output / 1M | $0.90 | $0.10 | Gemma 3 4B -89% |
| 5m Cache Write / 1M | $0.30 | $0.05 | Gemma 3 4B -83% |
| 1h Cache Write / 1M | — | — | — |
| Cache Read | $0.03 | $0.05 | Codestral 2508 -40% |
| Web Search / Call | — | — | — |
| Context | 256K (256,000) | 131K (131,072) | Codestral 2508 2× |
| Max Output | 205K (204,800) | 16K (16,384) | Codestral 2508 13× |
| AA Intelligence(Artificial Analysis) | — | — | — |
| AA Engineering | — | — | — |
| Capabilities | text, file | text, image | Equal |
| Reasoning | Not listed | Not listed | Equal |
| Structured Outputs(JSON Schema) | Not listed | Not listed | Equal |
| Open-Weight | Open-Weight | Proprietary API | Codestral 2508 |
30-day production cost estimator
Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.
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
ComparisonsCodestral 2508 vs Gemini 3.5 Flash Lite
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Codestral 2508 vs DeepSeek Flash
In: $0.30 vs $0.30 · Out: $0.90 vs $1.20
Codestral 2508 vs Gemini 2.5 Flash
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Codestral 2508 vs Gemini Exp 1206
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Gemma 3 4B vs GPT-6.2 Astra
In: $0.05 vs $8.00 · Out: $0.10 vs $40.00
Gemma 3 4B vs GPT-6.2 Sol
In: $0.05 vs $2.00 · Out: $0.10 vs $10.00