Gemma 4 31B
- Input
- $0.14/M tok
- Output
- $0.40/M tok
- Blended
- $0.205/M tok · 3:1
- Speed
- 35tok/s
- Context
- 256Ktokens
Open weights; no paid Google API tier, price is the Artificial Analysis third-party host price.
Rankings
Coding
Mixed#44 / 103rank by quality39.6±6.5quality / 1003/7 benchmarks measuredWriting & chat
Mixed#39 / 146rank by quality63.5±3.6quality / 1005/5 benchmarks measuredVision
Verified#34 / 82rank by quality57.5±8.2quality / 1001/6 benchmarks measuredHard reasoning
Mixed#47 / 182rank by quality59.6±4.5quality / 1003/4 benchmarks measuredAgents
Verified#88 / 173rank by quality30.4±4.2quality / 1004/7 benchmarks measured
Self-hostingEstimated
How we estimate →What it would cost to run these open weights yourself on rented GPUs, compared with the API price above.
- Hardware
- 1× B200 180GB
- FP8 weights
- Throughput
- ~5,049 tok/s
- many requests batched
- Price
- $0.16–1.41 /M tok
- busy → light use
- On your own machine
- RTX 5090 32GB (int4, ~82 tok/s single-stream)
- single consumer GPU or Mac
Assumptions (5)
- FP8 weights (30.7B params) + 25% KV-cache headroom ≈ 38 GB
- 1× B200 180GB at $5.98–$14.24/GPU-hour on-demand (2026-09-24)
- ~5,049 output tok/s aggregate at batch 144 (bandwidth-bound)
- Blended 3:1 input:output; prefill ~34,629 tok/s
- Low = 75% utilization at the low GPU price; high = 20% at the high price
Benchmark scores
~ italic, dashed = no published score yet, estimated from related benchmarks.
Coding
SWE-bench VerifiedEstimated
~#9 of 14 (estimated)~75.5%
- #1Claude Opus 596.0%
- #2Claude Sonnet 585.2%
- #8Muse Glimmer76.0%
- ~#9Gemma 4 31BEstimated75.5%
- #9Xing4.0-29B-A4B75.0%
No published score — estimated from related benchmarks
SWE-bench Pro (Public)Estimated
~#14 of 19 (estimated)~54.8%
- #1Claude Opus 5.589.9%
- #2Claude Sonnet 5.581.3%
- #13Hy357.9%
- ~#14Gemma 4 31BEstimated54.8%
- #14Inkling54.3%
No published score — estimated from related benchmarks
DeepSWE v1.1Estimated
~#27 of 31 (estimated)~51.1%
- #1DeepSeek V4.1 Flash74.2%
- #2Grok 4.772.6%
- #26Nex-N2.5-Pro55.8%
- ~#27Gemma 4 31BEstimated51.1%
- #27Qwen3.8 Max (0902)51.0%
No published score — estimated from related benchmarks
Terminal-Bench 4.0Verified
#49 of 830.0%
- #1Claude Sonnet 5.563.6%
- #2Claude Opus 5.559.6%
- #49Devstral Small 20.0%
- #49Gemma 4 31B0.0%
- #49gpt-oss-120b0.0%
artificialanalysis.ai · 2026-09-24
LiveCodeBenchLab-reported
#6 of 1980.0%
- #1Qwen3.8-Omni-Flash92.6%
- #2Qwen3.8 Flash-Next91.9%
- #5gpt-oss-120b87.8%
- #6Gemma 4 31B80.0%
- #7gpt-oss-20b77.7%
huggingface.co · 2026-04-02
SciCodeVerified
#40 of 9545.5%
- #1Claude Opus 5.566.9%
- #2Claude Fable 5.163.1%
- #40Apodex 1.145.5%
- #40Gemma 4 31B45.5%
- #42Ring-2.6-1T45.0%
artificialanalysis.ai · 2026-09-24
AA Coding Agent IndexEstimated
~last of 15 (estimated)below measured range (<41.1)
No published score — estimated from related benchmarks
Writing & chat
IFBenchVerified
#18 of 12575.6%
- #1MiniMax-M382.9%
- #2Qwen3.8 2.4T A95B82.8%
- #17Qwen3.5 122B A10B75.7%
- #18Gemma 4 31B75.6%
- #19GPT-5.3 Codex75.4%
artificialanalysis.ai · 2026-09-24
LMArena Text, Non-English (Elo)Few votesVerified
#24 of 531437 Elo
- #1Claude Opus 5.51501
- #2Claude Fable 5.1Few votes1496
- #23GPT-5.4 mini1439
- #24Gemma 4 31BFew votes1437
- #25GPT-6 Luna1436
lmarena.ai · 2026-09-24
#23 of 251368 Elo
eqbench.com · 2026-09-24
Vision
CharXiv ReasoningEstimated
~#7 of 9 (estimated)~78.0%
- #1Gemini 3.8 Flash86.2%
- #2Kimi K384.8%
- #6Inkling78.1%
- ~#7Gemma 4 31BEstimated78.0%
- #7Claude Sonnet 577.0%
No published score — estimated from related benchmarks
OmniDocBench v1.5Estimated
~#5 of 8 (estimated)~83.9%
- #1MiniMax-M391.6%
- #2Kimi K391.1%
- #4Gemini 3.1 Pro85.3%
- ~#5Gemma 4 31BEstimated83.9%
- #5Claude Haiku 4.579.6%
No published score — estimated from related benchmarks
GDP.pdf (AA)Estimated
~#28 of 43 (estimated)~12.2%
- #1GPT-6 Astra31.0%
- #2Muse Spark 1.326.6%
- #26Qwen3.7 Plus12.2%
- ~#28Gemma 4 31BEstimated12.2%
- #28Muse Glimmer10.0%
No published score — estimated from related benchmarks
ChartographyEstimated
~#15 of 23 (estimated)~18.5%
- #1GPT-6 Astra71.0%
- #2Claude Opus 5.566.3%
- #14Grok 4.620.5%
- ~#15Gemma 4 31BEstimated18.5%
- #15Muse Glimmer17.2%
No published score — estimated from related benchmarks
Hard reasoning
Humanity's Last ExamVerified
#52 of 17823.6%
- #1Claude Opus 5.561.4%
- #2Claude Fable 5.159.1%
- #51Ling 3.0 Flash23.7%
- #52Gemma 4 31B23.6%
- #53K2 Horizon MoVA 36B A4B23.4%
artificialanalysis.ai · 2026-09-24
AA Intelligence IndexEstimated
~#37 of 75 (estimated)~24.6
- #1Claude Opus 5.557.6
- #2Claude Sonnet 5.556.0
- #36Inkling25.0
- ~#37Gemma 4 31BEstimated24.6
- #37Ling-3.0-flash-VL24.6
No published score — estimated from related benchmarks
Agents
τ²-bench (Telecom)Verified
#44 of 11559.9%
- #1Step 3.7 Flash98.5%
- #2Gemini 3.1 Pro95.6%
- #43gpt-oss-20b60.2%
- #44Gemma 4 31B59.9%
- #45Claude Haiku 4.554.7%
artificialanalysis.ai · 2026-09-24
OSWorld-VerifiedEstimated
~#10 of 12 (estimated)~66.6%
- #1Kimi K384.8%
- #2Qwen3.8 27B84.3%
- #9Nex-N2.5-Mini71.2%
- ~#10Gemma 4 31BEstimated66.6%
- #10Muse Glimmer65.9%
No published score — estimated from related benchmarks
OSWorld 2.0Estimated
~last of 5 (estimated)below measured range (<47.5%)
No published score — estimated from related benchmarks
BrowseCompEstimated
~#15 of 18 (estimated)~60.4%
- #1Atria Dawn Preview92.5%
- #2GPT-6 Astra91.5%
- #14Inkling77.1%
- ~#15Gemma 4 31BEstimated60.4%
- #15Mistral Medium 3.548.6%
No published score — estimated from related benchmarks
GDPval-AA (Elo)Verified
#57 of 86606 Elo
- #1Claude Opus 5.51846
- #2Claude Fable 5.11735
- #56Nemotron 3.5 Lightning624
- #57Gemma 4 31B606
- #58gpt-oss-120b596
artificialanalysis.ai · 2026-09-24