AiCostCompare

Gemma 3 4B

by Google · google/gemma-3-4b-it · #17 cheapest of 325 paid models

Prices updated Jul 22, 2026, 1:39 AM UTC · refreshed hourly

Gemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities,...

Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5GPT-5.6 Sol

Pricing

Input

$0.05

per 1M tokens

Output

$0.10

per 1M tokens

Blended (3:1)

$0.063

3 input : 1 output

Cache read

per 1M cached tokens

Cache write

per 1M tokens

Cache & batch economics

Effective prices for Gemma 3 4B (no cache-read rate published — hits billed as normal input).

Cache hit rateEffective blended $/1MExample request*vs no cache
0%$0.063$0.0052
50%$0.063$0.0052−0%
90%$0.063$0.0052−0%

*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates for this provider’s batch API. Confirm on the vendor’s pricing page.

What a request costs

WorkloadInput tokensOutput tokensCost / requestCost / 1K requests
Short chat message500300$5.50e-5$0.055
Document summary8,0001,000$0.0005$0.5
Codebase question (RAG)30,0002,000$0.0017$1.70
Long-context analysis150,0005,000$0.008$8.00

Performance

Intelligence Index

1.1

AA composite quality

Coding Index

2.7

Math Index

12.7

Agentic Index

Output speed

0 tok/s

median

Time to first token

0s

median

Time to first answer

0s

after reasoning tokens

Artificial Analysis benchmarks

BenchmarkScore
MMLU-Pro41.7%
GPQA Diamond29.1%
Humanity's Last Exam5.2%
LiveCodeBench11.2%
SciCode7.3%
MATH-50076.6%
AIME6.3%
AIME 202512.7%
IFBench28.3%
AA-LCR (Long Context Reasoning)5.7%
Terminal-Bench Hard0.8%
Terminal-Bench 2.10.4%
τ²-Bench (Telecom)5.0%
τ³-Bench Banking0.4%

Specs

Context window

131K

tokens

Max output

16K

tokens

Input modalities

text, image

Tokenizer

Gemini