The Open-Source AI Stack
RSS
All models

Models · Compare

Gemma 4 31B vs Claude Opus 4.7

Rows highlighted in warm gray are where the models differ. Numbers carry their as-of date and primary source.

Specs

Field A: Gemma 4 31B B: Claude Opus 4.7
Released 2026-04-022026-04-16
Developer Google DeepMindAnthropic
Openness Open weightsProprietary
License Apache-2.0Proprietary
OSI-approved yesno
Data released nono
Training code nono
Architecture denseunknown
Total params 31B
Active params
Experts
Context window 262K1.0M
Attention unknownunknown
Position enc. unknownunknown
Pretraining tokens
Post-training sft, rlhfrlhf, constitutional
Training hardware
$/M input $0.00$5.00
$/M output $0.00$25.00
Output tok/sec 35.548.6

Benchmarks

Missing scores render as not reported; never inferred. Bold highlights the leader per benchmark.

General reasoning

GPQA-Diamond 85.7 2026-05-21 91.4 2026-05-21

Context · A

Flagship of the Gemma 4 open-weights family, released April 2 2026 under Apache 2.0 alongside a 26B MoE (activates 3.8B per token), an E4B effective-4B edge model, and an E2B. Built off Gemini 3 with native vision and audio, 140-plus language support, and up to 256K context. Google reported the 31B as the #3 open model on Arena AI's text leaderboard at launch.

Context · B

First Claude with high-resolution image input, accepting up to 2576 pixels on the long edge (about 3.75 megapixels, more than triple prior Claudes). Released April 16 2026 at unchanged Opus 4.6 pricing of $5 / $25 per Mtok with the 1M context standard. Adds a new xhigh effort level for finer reasoning-versus-latency control.

Gemma 4 31B detail → · Claude Opus 4.7 detail →