Skip to main content
BenchLM
Data

Gemini 3.1 Pro vs Gemma 4 31B

Updated November 13, 2026. Rank says Gemini 3.1 Pro is ahead. Price, access, and your workload can each overturn that. Public scores include evidence status and uncertainty.

Share or export
Share on XLinkedInAPI/MCP

Decision reading

Gemini 3.1 Pro has the higher public point estimate, 63.11 versus 28.81. Their conditional score ranges do not overlap. These ranges do not establish rank confidence. 5 results are shared. Category rows resting on Estimated evidence or different benchmark sets are marked directional and do not name a winner.

Model A
Google logo

Google

63.11/100

Estimated · Public rank #38

Conditional range 53.4–72.8

Model B
Google logo

Google

28.81/100

Estimated · Public rank #175

Conditional range 19.1–38.5

API price per 1M tokens

Gemini 3.1 Pro: $2 input / $12 output

Gemma 4 31B: No comparable API price

Context window

Gemini 3.1 Pro: 1M

Gemma 4 31B: 256K

Released

Gemini 3.1 Pro: February 19, 2026

Gemma 4 31B: April 2, 2026

Shared results
5
Gemini 3.1 Pro only
29
Gemma 4 31B only
8
Like-for-like categories
2 / 8
Estimated: Gemini 3.1 Pro and Gemma 4 31B. Conditional ranges do not establish rank confidence.How the comparison works

Which one for your work

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.

  • Coding work

    Code generation, repair, and software-engineering tasks

    Gemini 3.1 Pro

    Gemini 3.1 Pro has the higher public coding point estimate, 37.9 to 28.8, with Supported evidence for both models. The conditional ranges do not establish rank confidence.

    Confidence: limited
  • Long documents

    Prompts that approach the documented context limit

    Gemini 3.1 Pro

    Gemini 3.1 Pro has the larger documented context window.

    Confidence: documented
Show secondary and unsupported calls
  • Agentic work

    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.

    Confidence: limited
  • Chat turn cost

    1K fresh input + 500 output tokens

    Not enough matched evidence

    A complete comparable API-rate estimate is not available for both models.

    Confidence: listed-rates
  • Cache-heavy agent loop cost

    200K cached + 20K fresh input + 10K output tokens

    Not enough matched evidence

    A complete comparable API-rate estimate is not available for both models.

    Confidence: listed-rates
  • Repository review cost

    50K fresh input + 3K output tokens

    Not enough matched evidence

    A complete comparable API-rate estimate is not available for both models.

    Confidence: listed-rates

Which one for a specific job

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.

37.9Gemini 3.1 Pro28.8Gemma 4 31B

Like-for-like · BenchAlign v5.8

Gemini 3.1 Pro has the higher coding point estimate. Conditional score ranges do not establish rank confidence.

Coding scores combine specific tasks and setups. Match the editor, harness, and effort to your workflow.

Same basis rules as the category table below

Or describe your own job

The LLM Selector reads what you need a model for and returns a shortlist, ranked in the same order the job pages publish.

Describe the task and constraints. This selector recommends models; it cannot carry out the task or access your files and accounts.

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

What is actually comparable

Shared results can support a head-to-head reading. Results present for only one model describe coverage, not superiority.

4 categories rest on Estimated evidence or different evidence sets. Those rows remain visible for coverage context but do not name a winner.

Shape of the matched evidence

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.

Bars run 0–100 on each benchmark’s normalized display scale

Category results, on a stated basis

Each 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.

Coding

Like-for-like
Gemini 3.1 Pro
37.9
Supported · #76/162
Gemma 4 31B
28.8
Supported · #107/162
Basis
BenchAlign v5.8 lane · 9 vs 3 public rows
Reading
Gemini 3.1 Pro leads · intervals overlap

Knowledge

Like-for-like
Gemini 3.1 Pro
66.0
Supported · #24/180
Gemma 4 31B
36.7
Supported · #121/180
Basis
BenchAlign v5.8 lane · 6 vs 4 public rows
Reading
Gemini 3.1 Pro leads

Agentic

Directional only
Gemini 3.1 Pro
39.6
Supported · #72/135
Gemma 4 31B
12.5
Estimated · #133/135
Basis
BenchAlign v5.8 lane · 7 vs 3 public rows
Reading
Directional only

Reasoning

Directional only
Gemini 3.1 Pro
56.3
Estimated · #44/160
Gemma 4 31B
32.0
Supported · #109/160
Basis
BenchAlign v5.8 lane · 2 vs 1 public rows
Reading
Directional only

Multimodal

Directional only
Gemini 3.1 Pro
65.3
Estimated · #27/67
Gemma 4 31B
47.3
Supported · #60/67
Basis
BenchAlign v5.8 lane · 8 vs 2 public rows
Reading
Directional only

Instruction following

Directional only
Gemini 3.1 Pro
90.2
#27/157
Gemma 4 31B
92.9
#16/157
Basis
Provisional lane · 0 vs 0 weighted rows
Reading
Directional only

Multilingual

Not comparable
Gemini 3.1 Pro
Not ranked
Gemma 4 31B
Not ranked
Basis
Provisional lane · 0 vs 0 weighted rows
Reading
Not comparable

Math

Not comparable
Gemini 3.1 Pro
60.6
Unranked · 2 rankable rows
Gemma 4 31B
Not ranked
Basis
Provisional lane · 2 vs 0 weighted rows
Reading
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.

Supported evidence per lane · bars run 0–100Methodology

What each workload costs

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.

Chat turn

1K fresh input + 500 output tokens

Gemini 3.1 Pro
$0.008
Fits in one request
Gemma 4 31B
Self-hosted; infrastructure cost varies
Fits in one request

Gemma 4 31B has no comparable published API token rate.

Repository review

50K fresh input + 3K output tokens

Gemini 3.1 Pro
$0.136
Fits in one request
Gemma 4 31B
Self-hosted; infrastructure cost varies
Fits in one request

Gemma 4 31B has no comparable published API token rate.

Cache-heavy agent loop

200K cached + 20K fresh input + 10K output tokens

Gemini 3.1 Pro
$0.2
Fits in one request
Gemma 4 31B
Self-hosted; infrastructure cost varies
Fits in one request
Cached-input rate unavailable

Gemma 4 31B has no comparable published API token rate.

Cached input falls back to the list input rate only where a cached rate is unpublished

Price against score, among all priced models

Overall score against output price per 1M tokens, one model per family. Pricing as of November 12, 2026.

Gemini 3.1 Pro

20406080100$0.10$0.50$1$5$10$50$100Output price, $ per 1M tokens (log)Overall score
  • 10 cheaper models score at least as high as Gemini 3.1 Pro. The nearest is Gemini 4 Carbon (score 89.2, $10.00 per 1M output tokens).
  • Gemma 4 31B has no public API price, so it is not plotted.

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 Gemini 3.1 Pro on the full price vs performance chart

Specification differences

Sourced differences are shown directly. Missing facts stay explicit instead of being inferred from a model name or family.

Cached-input rate

A missing cached-input rate falls back to the listed input rate only in the stated workload estimate.

Gemini 3.1 Pro

$0.2 per 1M cached input tokens

Google Gemini API pricing

Gemma 4 31B

No comparable hosted API rate

Reasoning profile

Gemini 3.1 Pro

Reasoning

Gemma 4 31B

Reasoning

Weight access

Gemini 3.1 Pro

Proprietary

Gemma 4 31B

Open Weight

License

Gemini 3.1 Pro

Proprietary

Gemma 4 31B

Open Weight

Release date

Gemini 3.1 Pro

2026-02-19

Gemma 4 31B

2026-04-02

If you already use one of these models

Deployment change
Both entries list Google as the provider. Confirm endpoint, model ID, limits, and feature support before switching.
Quality signal
Gemini 3.1 Pro has the higher public point estimate, 63.11 versus 28.81. Their conditional score ranges do not overlap. These ranges do not establish rank confidence.
Workload cost
A complete comparable API-rate estimate is not available for both models.
Context tradeoff
Gemini 3.1 Pro has the larger documented window (1M).
Run the same representative tasks against both endpoints before changing production traffic.

Questions

Which is better, Gemini 3.1 Pro or Gemma 4 31B?

Gemini 3.1 Pro has the higher public point estimate, 63.11 versus 28.81. Their conditional score ranges do not overlap. These ranges do not establish rank confidence. The page therefore keeps the decision tied to the specific documented workload.

Which is better for coding, Gemini 3.1 Pro or Gemma 4 31B?

Gemini 3.1 Pro has the higher public coding point estimate, 37.9 to 28.8, with Supported evidence for both models. The conditional ranges do not establish rank confidence.

Which is better for agentic tasks, Gemini 3.1 Pro or Gemma 4 31B?

Gemini 3.1 Pro scores higher for agentic tasks on the public lane, 39.6 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.

Which costs less, Gemini 3.1 Pro or Gemma 4 31B?

Both models do not have comparable published API token rates, so this page does not name a universal price winner.

Which has the larger context window, Gemini 3.1 Pro or Gemma 4 31B?

Gemini 3.1 Pro has the larger documented context window: 1M, compared with 256K.

Self-host vs API cost

Estimates at 50,000 req/day · 1000 tokens/req average.

Gemini 3.1 Pro
API / mo$10,500
Self-host / moNot listed
Break-even—
Proprietary model — self-hosting not applicable.
Gemma 4 31B
API / mo (Novita AI)$405
Self-host / mo$298
Break-even37M/day
Model the full break-even

Benchmark evidence

The full public result ledger is available for audit without forcing a wide desktop table onto a phone.

Browse raw public benchmark evidence42 rows

Agentic

  • Claw-Eval

    Gemini 3.1 Pro57.8%
    Source
    Gemma 4 31B—

    Not directly comparable

  • DeepSearchQA

    Gemini 3.1 Pro69.7%
    Source
    Gemma 4 31B—

    Not directly comparable

  • τ²-bench results

    Gemini 3.1 Pro95.6%
    Source
    Gemma 4 31B—

    Not directly comparable

  • Gemini 3.1 Pro56.87%
    Gemma 4 31B35.26%

    Gemini 3.1 Pro leads this result

  • ResearchClawBench

    Gemini 3.1 Pro13.3%
    Source
    Gemma 4 31B—

    Not directly comparable

  • Terminal-Bench 2.1 (Vals)

    Gemini 3.1 Pro70.8%
    Source
    Gemma 4 31B—

    Not directly comparable

  • MazeBench

    Gemini 3.1 Pro1%
    Source
    Gemma 4 31B—

    Not directly comparable

  • b3 Agent Security

    Gemini 3.1 Pro—
    Gemma 4 31B83.0%
    Source

    Not directly comparable

  • Cyber Misuse Refusal

    Gemini 3.1 Pro—
    Gemma 4 31B84.0%
    Source

    Not directly comparable

Coding

  • ScarfBench

    Gemini 3.1 Pro37.6%
    Source
    Gemma 4 31B—

    Not directly comparable

  • LiveCodeBench Pro

    Gemini 3.1 Pro82.9%
    Source
    Gemma 4 31B—

    Not directly comparable

  • React Native Evals

    Shared source
    Gemini 3.1 Pro78.9%
    Gemma 4 31B75.2%

    Gemini 3.1 Pro leads this result

  • Vibe Code Bench

    Gemini 3.1 Pro32.03%
    Source
    Gemma 4 31B—

    Not directly comparable

  • LiveCodeBench (Vals)

    Gemini 3.1 Pro88.5%
    Source
    Gemma 4 31B—

    Not directly comparable

  • SWE-bench (Vals)

    Gemini 3.1 Pro78.8%
    Source
    Gemma 4 31B—

    Not directly comparable

  • PostTrainBench v1.1

    Gemini 3.1 Pro22.0%
    Source
    Gemma 4 31B—

    Not directly comparable

  • PostTrainBench

    Gemini 3.1 Pro18.1%
    Source
    Gemma 4 31B—

    Not directly comparable

  • PostTrainBench v1

    Gemini 3.1 Pro21.6%
    Source
    Gemma 4 31B—

    Not directly comparable

  • LiveCodeBench v6

    Gemini 3.1 Pro—
    Gemma 4 31B80.0%
    Source

    Not directly comparable

  • SWE-Rebench

    Gemini 3.1 Pro—
    Gemma 4 31B41.6%
    Source

    Not directly comparable

Reasoning

  • ARC-AGI-2

    Gemini 3.1 Pro77.1%
    Source
    Gemma 4 31B—

    Not directly comparable

  • ARC-AGI-3

    Gemini 3.1 Pro0.4%
    Source
    Gemma 4 31B—

    Not directly comparable

  • MRCRv2

    Gemini 3.1 Pro—
    Gemma 4 31B66.4%
    Source

    Not directly comparable

Multimodal

  • ParseBench-1

    Shared source
    Gemini 3.1 Pro67.32%
    Gemma 4 31B62.40%

    Gemini 3.1 Pro leads this result

  • MMMU-Pro

    Gemini 3.1 Pro83.9%
    Source
    Gemma 4 31B76.9%
    Source

    Gemini 3.1 Pro leads this result

  • CharXiv

    Gemini 3.1 Pro80.2%
    Source
    Gemma 4 31B—

    Not directly comparable

  • ERQA

    Gemini 3.1 Pro69.4%
    Source
    Gemma 4 31B—

    Not directly comparable

  • SimpleVQA

    Gemini 3.1 Pro72.4%
    Source
    Gemma 4 31B—

    Not directly comparable

  • ScreenSpot Pro

    Gemini 3.1 Pro84.4%
    Source
    Gemma 4 31B—

    Not directly comparable

  • ZeroBench

    Gemini 3.1 Pro29.0%
    Source
    Gemma 4 31B—

    Not directly comparable

  • MedXpertQA (MM)

    Gemini 3.1 Pro81.3%
    Source
    Gemma 4 31B—

    Not directly comparable

Knowledge

  • GPQA-D

    Gemini 3.1 Pro94.3%
    Source
    Gemma 4 31B—

    Not directly comparable

  • HLE w/o tools

    Gemini 3.1 Pro45.4%
    Source
    Gemma 4 31B19.5%
    Source

    Gemini 3.1 Pro leads this result

  • HealthBench Hard

    Gemini 3.1 Pro20.6%
    Source
    Gemma 4 31B—

    Not directly comparable

  • MedXpertQA (Text)

    Gemini 3.1 Pro71.5%
    Source
    Gemma 4 31B—

    Not directly comparable

  • GPQA Diamond (Vals)

    Gemini 3.1 Pro95.5%
    Source
    Gemma 4 31B—

    Not directly comparable

  • MMLU-Pro (Vals)

    Gemini 3.1 Pro91.0%
    Source
    Gemma 4 31B—

    Not directly comparable

  • GPQA

    Gemini 3.1 Pro—
    Gemma 4 31B84.3%
    Source

    Not directly comparable

  • MMLU-Pro

    Gemini 3.1 Pro—
    Gemma 4 31B85.2%
    Source

    Not directly comparable

  • HLE

    Gemini 3.1 Pro—
    Gemma 4 31B26.5%
    Source

    Not directly comparable

Math

  • FrontierMath v2 (Tiers 1-3)

    Gemini 3.1 Pro59.649%
    Source
    Gemma 4 31B—

    Not directly comparable

  • FrontierMath v2 (Tier 4)

    Gemini 3.1 Pro26.829%
    Source
    Gemma 4 31B—

    Not directly comparable

42 public results · 5 shared

Watch Gemini 3.1 Pro vs Gemma 4 31B

One weekly email when material rank, price, or benchmark evidence changes make this matchup worth revisiting.

Read a sample issue

Join 7,000+ subscribers.

Last updated November 13, 2026