Gemma 3 4B vs GPT-5 Codex
Google vs OpenAI — benchmarks, pricing, and capabilities side by side.
- •GPT-5 Codex has the higher intelligence index (87.1 vs 45.8)
- •Gemma 3 4B is cheaper ($0.04 vs $1.25 per 1M input)
- •GPT-5 Codex is faster
- •GPT-5 Codex has a larger context window (400K)
| Gemma 3 4B | GPT-5 Codex | |
|---|---|---|
| Intelligence index | 45.8 | 87.1 |
| Developer | OpenAI | |
| Type | Multimodal | Multimodal |
| Access | Open weights | API only |
| Context window | 131,072 tokens | 400,000 tokens |
| Input price | $0.04 / 1M | $1.25 / 1M |
| Output price | $0.08 / 1M | $10.00 / 1M |
| Speed | 33 tok/s | 180 tok/s |
| Released | March 13, 2025 | September 23, 2025 |
| Parameters | — | — |
| Input modalities | Text, Image | Text, Image |
| Output modalities | Text | Text |
Shared benchmarks
Gemma 3 4B
GPT-5 Codex
GPQA Diamond
30.8
83.7
LiveCodeBench
12.6
84
MMLU-Pro
43.6
86.5