Enter opens the highlighted result. Esc closes.

Codestral 2508 vs Gemma 3 4B

Updated October 21, 2026. 0 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Codestral 2508Mistral AI
Coding
No data
Overall
No data
Output $/M
$0.90
Gemma 3 4BGoogle
Coding
No data
Overall
4.8
Output $/M
$0.075
vs $0.90 vs $0.075 per 1M output tokens. Gemma 3 4B is 12.0x cheaper.

Decision reading

Neither model has a coding score yet, so the two cannot be ranked on coding.

Codestral 2508 has the edge where the context window is larger, 256K against 131K tokens.

Shared results
0
Codestral 2508 only
7
Gemma 3 4B only
39
Like-for-like categories
0 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Codestral 2508 not benchmarked, Gemma 3 4B not benchmarked.
Widest category
No category has a result for both models.
Widest single gap
No benchmark has a result for both models.
Output price
Codestral 2508 $0.90 against Gemma 3 4B $0.075 per million output tokens, 12.0x apart.
Context window
Codestral 2508 takes 256K tokens, Gemma 3 4B 131K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

CodingDirectional onlySix of these boards feed the Vibe Coding Index6 boards, none shared
Coding benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
AA Coding IndexNot measured2.7Only Gemma 3 4B measured
LiveCodeBench (Artificial Analysis run)Not measured11.2%Only Gemma 3 4B measured
Terminal-Bench Hard (Artificial Analysis run)Not measured0.8%Only Gemma 3 4B measured
ALE-Bench137.8Not measuredOnly Codestral 2508 measured
LMArena Text: codingNot measured1230Only Gemma 3 4B measured
LMArena Text: software and ITNot measured1269Only Gemma 3 4B measured
Neither model has a result on the other 32 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Intelligence benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
AA Intelligence IndexNot measured4.8Only Gemma 3 4B measured
Epoch Capabilities IndexNot measured115.9Only Gemma 3 4B measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Agentic work benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
τ²-Bench TelecomNot measured5.0%Only Gemma 3 4B measured
Neither model has a result on the other 38 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Reasoning benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
GPQA Diamond (Artificial Analysis run)Not measured29.1%Only Gemma 3 4B measured
Humanity's Last Exam (Artificial Analysis run)Not measured5.3%Only Gemma 3 4B measured
GPQA Diamond (Epoch AI run)Not measured23.2%Only Gemma 3 4B measured
LMArena Text: hard promptsNot measured1253Only Gemma 3 4B measured
LMArena Text: expertNot measured1223Only Gemma 3 4B measured
LMArena Text: hard prompts in EnglishNot measured1253Only Gemma 3 4B measured
Neither model has a result on the other 15 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
Math benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
AA Math IndexNot measured12.7Only Gemma 3 4B measured
AIME 2025 (Artificial Analysis run)Not measured12.7%Only Gemma 3 4B measured
OTIS Mock AIMENot measured7.5%Only Gemma 3 4B measured
LMArena Text: mathNot measured1239Only Gemma 3 4B measured
LMArena Text: mathematical workNot measured1256Only Gemma 3 4B measured
Neither model has a result on the other 8 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
Knowledge benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
MMLU Pro (Artificial Analysis run)Not measured41.7%Only Gemma 3 4B measured
LMArena Text: scienceNot measured1306Only Gemma 3 4B measured
LMArena Text: medicine and healthcareNot measured1342Only Gemma 3 4B measured
LMArena Text: legal and governmentNot measured1327Only Gemma 3 4B measured
LMArena Text: business and financeNot measured1311Only Gemma 3 4B measured
Neither model has a result on the other 12 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
Design Arena: websites1013Not measuredOnly Codestral 2508 measured
Design Arena: UI components1017Not measuredOnly Codestral 2508 measured
Design Arena: game dev968Not measuredOnly Codestral 2508 measured
Design Arena: data viz1017Not measuredOnly Codestral 2508 measured
Design Arena: 3D1020Not measuredOnly Codestral 2508 measured
Design Arena: all code categories1007Not measuredOnly Codestral 2508 measured
Neither model has a result on the other 3 boards here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
General benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
IFBenchNot measured28.3%Only Gemma 3 4B measured
Long context reasoning (AA-LCR)Not measured6.7%Only Gemma 3 4B measured
DTBenchNot measured50.9%Only Gemma 3 4B measured
LMCANot measured2.8%Only Gemma 3 4B measured
LMArena TextNot measured1291Only Gemma 3 4B measured
LMArena Text: instruction followingNot measured1239Only Gemma 3 4B measured
LMArena Text: creative writingNot measured1270Only Gemma 3 4B measured
LMArena Text: EnglishNot measured1300Only Gemma 3 4B measured
LMArena Text: non-EnglishNot measured1273Only Gemma 3 4B measured
LMArena Text: GermanNot measured1281Only Gemma 3 4B measured
LMArena Text: RussianNot measured1294Only Gemma 3 4B measured
LMArena Text: multi-turnNot measured1255Only Gemma 3 4B measured
LMArena Text: longer queriesNot measured1273Only Gemma 3 4B measured
LMArena Text: writing and languageNot measured1288Only Gemma 3 4B measured
LMArena Text: entertainment and mediaNot measured1233Only Gemma 3 4B measured
Neither model has a result on the other 31 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Codestral 2508 and Gemma 3 4B
BenchmarkCodestral 2508Gemma 3 4BLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Codestral 2508$0.0008Fits in one request
Gemma 3 4B$0.0001Fits in one request

Gemma 3 4B costs less

Repository review

50K input + 3K output tokens

Codestral 2508$0.018Fits in one request
Gemma 3 4B$0.0025Fits in one request

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Codestral 2508$0.069Fits in one request
Gemma 3 4B$0.0097Exceeds the context window

Gemma 3 4B costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Codestral 2508 and Gemma 3 4B
SpecificationMistral Codestral 2508Google Gemma 3 4B
MakerMistral AIGoogle
WeightsNo public weights listedOpen weights
ReleasedAugust 1, 2025March 13, 2025
Context window256K131K
Input $/Mtok$0.30$0.045
Output $/Mtok$0.90$0.075
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Codestral 2508 better than Gemma 3 4B for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Codestral 2508 has the edge where the context window is larger, 256K against 131K tokens.

Which is cheaper, Codestral 2508 or Gemma 3 4B?

Codestral 2508 costs $0.30 per million input tokens and $0.90 per million output tokens; Gemma 3 4B costs $0.045 and $0.075. Cost per solved task is known for neither of them.

Which has the bigger context window, Codestral 2508 or Gemma 3 4B?

Codestral 2508, with 256K tokens against 131K.

How many benchmarks is the Codestral 2508 vs Gemma 3 4B comparison based on?

0 benchmarks have a result for both models as of October 21, 2026. Codestral 2508's coding index rests on 0 independent benchmarks and Gemma 3 4B's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next