Long documents
Prompts that approach the documented context limit
Gemma 4 31B
Gemma 4 31B has the larger documented context window.
Updated November 13, 2026. Rank says Claude Sonnet 4.5 is ahead. Price, access, and your workload can each overturn that. Public scores include evidence status and uncertainty.
Claude Sonnet 4.5 has the higher public point estimate, 46.7 versus 28.81. Their conditional score ranges overlap. These ranges do not establish rank confidence. 2 results are shared. Category rows resting on Estimated evidence or different benchmark sets are marked directional and do not name a winner.
Claude Sonnet 4.5: $3 input / $15 output
Gemma 4 31B: No comparable API price
Claude Sonnet 4.5: 200K
Gemma 4 31B: 256K
Claude Sonnet 4.5: September 29, 2025
Gemma 4 31B: April 2, 2026
Recommendations appear only when a shared evidence basis or an explicit operating constraint supports the call. Secondary and unsupported use cases stay disclosed below the initial list.
Prompts that approach the documented context limit
Gemma 4 31B
Gemma 4 31B has the larger documented context window.
Code generation, repair, and software-engineering tasks
Not enough matched evidence
Claude Sonnet 4.5 is not ranked on the public lane for coding, so no winner is named for coding.
Tool use, computer use, and multi-step task completion
Not enough matched evidence
Gemma 4 31B is scored on Estimated evidence for agentic, so the reading is directional rather than like-for-like.
1K fresh input + 500 output tokens
Not enough matched evidence
A complete comparable API-rate estimate is not available for both models.
200K cached + 20K fresh input + 10K output tokens
Not enough matched evidence
The page does not recommend a cost winner because at least one model cannot fit the stated workload in one request. Claude Sonnet 4.5 does not fit this workload in one request. Claude Sonnet 4.5 has no published cached-input rate, so cached tokens use its listed input rate. Gemma 4 31B has no comparable published API token rate.
50K fresh input + 3K output tokens
Not enough matched evidence
A complete comparable API-rate estimate is not available for both models.
Choose a job from the LLM Selector's task catalog to see the category row it rests on, under the same basis rules as the table below. A directional row stays directional; choosing a job never creates a winner.
The same task catalog as the LLM Selector. Each job names the evidence surface it rests on; nothing here adds a new score.
Not comparable · BenchAlign v5.8
The coding row is not comparable on the public lane: at least one model is not measured or not ranked there.
Coding scores combine specific tasks and setups. Match the editor, harness, and effort to your workflow.
The LLM Selector reads what you need a model for and returns a shortlist, ranked in the same order the job pages publish.
We keep what you type here, drafts included, for 180 days, and after that only the job and requirements read from it. Nothing is tied to your IP address or account. Leave out names and other personal details. Privacy
Shared results can support a head-to-head reading. Results present for only one model describe coverage, not superiority.
1 category rests on Estimated evidence or different evidence sets. Those rows remain visible for coverage context but do not name a winner.
Only shared public evidence is shown. Sparse evidence stays a ruled list rather than being closed into a radar shape.
Too few matched category axes support a radar. The ruled list below shows only shared benchmark results; positions use each benchmark’s normalized display scale when available.
GPQAKnowledge
Normalized gap 0.9Each row shows the public-lane category score for both models: the BenchAlign v5.8 lane for agentic, coding, reasoning, multimodal, and knowledge, and the weighted public rows elsewhere, with the same rank each model page reports. A row is like-for-like only when both scores rest on Supported evidence or the same weighted set. Directional and not-comparable rows remain visible, but they never receive a winner.
| Category | Claude Sonnet 4.5 | Gemma 4 31B | Basis | Reading |
|---|---|---|---|---|
| Agentic | 35.5Supported · #80/135 | 12.5Estimated · #133/135 | Directional onlyBenchAlign v5.8 lane · 5 vs 3 public rows | Directional only |
| Coding | Not ranked | 28.8Supported · #107/162 | Not comparableBenchAlign v5.8 lane · 2 vs 3 public rows | Not comparable |
| Reasoning | Not ranked | 32.0Supported · #109/160 | Not comparableBenchAlign v5.8 lane · 1 vs 1 public rows | Not comparable |
| Multimodal | Not ranked | 47.3Supported · #60/67 | Not comparableBenchAlign v5.8 lane · 0 vs 2 public rows | Not comparable |
| Knowledge | Not ranked | 36.7Supported · #121/180 | Not comparableBenchAlign v5.8 lane · 1 vs 4 public rows | Not comparable |
| Multilingual | Not ranked | Not ranked | Not comparableProvisional lane · 0 vs 0 weighted rows | Not comparable |
| Instruction following | Not ranked | 92.9#16/157 | Not comparableProvisional lane · 0 vs 0 weighted rows | Not comparable |
| Math | 32.7Unranked · 2 rankable rows | Not ranked | Not comparableProvisional lane · 2 vs 0 weighted rows | Not comparable |
Ranks count the models scored in each category’s lane, so the agentic, coding, reasoning, multimodal, and knowledge denominators (BenchAlign v5.8) differ from the provisional-lane categories. Unranked scores sit on the provisional lane’s scale but never name a winner. Like-for-like rows within 0.5 points read as a practical tie.
Three fixed token mixes turn per-token rates into comparable decisions. Each scenario states context fit and whether cached input had to fall back to the published list-input rate.
1K fresh input + 500 output tokens
Gemma 4 31B has no comparable published API token rate.
50K fresh input + 3K output tokens
Gemma 4 31B has no comparable published API token rate.
200K cached + 20K fresh input + 10K output tokens
Claude Sonnet 4.5 does not fit this workload in one request. Claude Sonnet 4.5 has no published cached-input rate, so cached tokens use its listed input rate. Gemma 4 31B has no comparable published API token rate.
Overall score against output price per 1M tokens, one model per family. Pricing as of November 12, 2026.
Claude Sonnet 4.5
Gray dots are the other priced models. The dark step line is the efficiency frontier: for a model under it, another model costs no more and scores at least as high.
See Claude Sonnet 4.5 on the full price vs performance chartSourced differences are shown directly. Missing facts stay explicit instead of being inferred from a model name or family.
Maximum documented context; output-token limits may be lower.
Claude Sonnet 4.5
200K
Gemma 4 31B
Claude Sonnet 4.5
Not sourced
Gemma 4 31B
gemma-4-31b-it
Google Gemma Gemini API guideA missing cached-input rate falls back to the listed input rate only in the stated workload estimate.
Claude Sonnet 4.5
Not published
Gemma 4 31B
No comparable hosted API rate
Claude Sonnet 4.5
text, image
Anthropic Claude Sonnet 4.5 model pageGemma 4 31B
text, image
Google Gemma 4 model documentationClaude Sonnet 4.5
Gemma 4 31B
Claude Sonnet 4.5
Not sourced
Gemma 4 31B
Generally Available · Gemini API, Google AI Studio, open weights
Google Gemma Gemini API guideClaude Sonnet 4.5
Non-Reasoning
Gemma 4 31B
Reasoning
Claude Sonnet 4.5
Proprietary
Gemma 4 31B
Open Weight
Claude Sonnet 4.5
Proprietary
Gemma 4 31B
Open Weight
Claude Sonnet 4.5
2025-09-29
Gemma 4 31B
2026-04-02
Claude Sonnet 4.5 has the higher public point estimate, 46.7 versus 28.81. Their conditional score ranges overlap. These ranges do not establish rank confidence. The page therefore keeps the decision tied to the specific documented workload.
Claude Sonnet 4.5 is not ranked on the public lane for coding, so no winner is named for coding.
Claude Sonnet 4.5 scores higher for agentic tasks on the public lane, 35.5 to 12.5. Gemma 4 31B is scored on Estimated evidence for agentic tasks, so the reading is directional rather than like-for-like. BenchLM does not name a winner for agentic tasks from a directional reading; read the shared benchmark rows directly and test the models on the same task set.
Both models do not have comparable published API token rates, so this page does not name a universal price winner.
Gemma 4 31B has the larger documented context window: 256K, compared with 200K.
Estimates at 50,000 req/day · 1000 tokens/req average.
The full public result ledger is available for audit without forcing a wide desktop table onto a phone.
Terminal-Bench 2.0
Not directly comparable
OSWorld-Verified
Not directly comparable
VITA-Bench
Not directly comparable
Gert Labs
Shared sourceClaude Sonnet 4.5 leads this result
JobBench
Not directly comparable
b3 Agent Security
Not directly comparable
Cyber Misuse Refusal
Not directly comparable
SWE-bench Verified
Not directly comparable
Terminal-Bench 2.0
Not directly comparable
LiveCodeBench v6
Not directly comparable
SWE-Rebench
Not directly comparable
React Native Evals
Not directly comparable
GPQA
Gemma 4 31B leads this result
MMLU-Pro
Not directly comparable
HLE
Not directly comparable
HLE w/o tools
Not directly comparable
One weekly email when material rank, price, or benchmark evidence changes make this matchup worth revisiting.
Read a sample issueJoin 7,000+ subscribers.
Last updated November 13, 2026