Skip to main content
BenchLM
Data

Gemini 3.1 Pro vs GPT-5.1-Codex

Updated October 20, 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, 64.72 versus 50.37. Their conditional score ranges overlap. These ranges do not establish rank confidence. 3 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

64.72/100

Estimated · Public rank #38

Conditional range 55.0–74.5

Model B
OpenAI logo

OpenAI

50.37/100

Estimated · Public rank #91

Conditional range 36.0–64.7

Shared results
3
Gemini 3.1 Pro only
28
GPT-5.1-Codex only
1
Like-for-like categories
0 / 8
Estimated: Gemini 3.1 Pro and GPT-5.1-Codex. 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.

  • 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
  • Chat turn cost

    1K fresh input + 500 output tokens

    GPT-5.1-Codex

    GPT-5.1-Codex has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

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

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

    GPT-5.1-Codex

    GPT-5.1-Codex has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

    Confidence: listed-rates
Show secondary and unsupported calls
  • Repository review cost

    50K fresh input + 3K output tokens

    GPT-5.1-Codex

    GPT-5.1-Codex has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

    Confidence: listed-rates
  • Coding work

    Code generation, repair, and software-engineering tasks

    Not enough matched evidence

    GPT-5.1-Codex is scored on Estimated evidence for coding, so the reading is directional rather than like-for-like.

    Confidence: limited
  • Agentic work

    Tool use, computer use, and multi-step task completion

    Not enough matched evidence

    GPT-5.1-Codex is not ranked on the public lane for agentic, so no winner is named for agentic.

    Confidence: limited

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.

39.2Gemini 3.1 Pro33.7GPT-5.1-Codex

Directional only · 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

What is actually comparable

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

2 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, 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

Directional only
Gemini 3.1 Pro
39.2
Supported · #68/152
GPT-5.1-Codex
33.7
Estimated · #83/152
Basis
BenchAlign v5.8 lane · 6 vs 2 public rows
Reading
Directional only

Knowledge

Directional only
Gemini 3.1 Pro
67.7
Supported · #26/187
GPT-5.1-Codex
52.0
Estimated · #74/187
Basis
BenchAlign v5.8 lane · 6 vs 0 public rows
Reading
Directional only

Agentic

Not comparable
Gemini 3.1 Pro
38.4
Supported · #73/131
GPT-5.1-Codex
Not ranked
Basis
BenchAlign v5.8 lane · 7 vs 2 public rows
Reading
Not comparable

Reasoning

Not comparable
Gemini 3.1 Pro
58.2
Unranked · 2 rankable rows
GPT-5.1-Codex
72.6
Unranked · 2 rankable rows
Basis
Provisional lane · 2 vs 0 weighted rows
Reading
Not comparable

Multimodal

Not comparable
Gemini 3.1 Pro
80.1
#17/55
GPT-5.1-Codex
71.3
Unranked · 1 rankable row
Basis
Provisional lane · 2 vs 0 weighted rows
Reading
Not comparable

Multilingual

Not comparable
Gemini 3.1 Pro
Not ranked
GPT-5.1-Codex
Not ranked
Basis
Provisional lane · 0 vs 0 weighted rows
Reading
Not comparable

Instruction following

Not comparable
Gemini 3.1 Pro
Not ranked
GPT-5.1-Codex
85.6
#49/149
Basis
Provisional lane · 0 vs 0 weighted rows
Reading
Not comparable

Math

Not comparable
Gemini 3.1 Pro
65.0
Unranked · 2 rankable rows
GPT-5.1-Codex
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, 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
GPT-5.1-Codex
$0.00625
Fits in one request

GPT-5.1-Codex has the lower modeled cost

Costs use the listed standard API rates.

Repository review

50K fresh input + 3K output tokens

Gemini 3.1 Pro
$0.136
Fits in one request
GPT-5.1-Codex
$0.0925
Fits in one request

GPT-5.1-Codex has the lower modeled cost

Costs use the listed standard API rates.

Cache-heavy agent loop

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

Gemini 3.1 Pro
$0.2
Fits in one request
GPT-5.1-Codex
$0.15
Fits in one request

GPT-5.1-Codex has the lower modeled cost

Costs use the listed standard API rates.

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

Specification differences

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

Reasoning profile

Gemini 3.1 Pro

Reasoning

GPT-5.1-Codex

Reasoning

Weight access

Gemini 3.1 Pro

Proprietary

GPT-5.1-Codex

Proprietary

License

Gemini 3.1 Pro

Proprietary

GPT-5.1-Codex

Proprietary

Release date

Gemini 3.1 Pro

2026-02-19

GPT-5.1-Codex

2025-11-13

If you already use one of these models

Deployment change
The models list different providers, so authentication, endpoint behavior, limits, and feature support may change.
Quality signal
Gemini 3.1 Pro has the higher public point estimate, 64.72 versus 50.37. Their conditional score ranges overlap. These ranges do not establish rank confidence.
Workload cost
Repository review: $0.136 vs $0.0925. Cache-heavy agent loop: $0.2 vs $0.15.
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 GPT-5.1-Codex?

Gemini 3.1 Pro has the higher public point estimate, 64.72 versus 50.37. Their conditional score ranges 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 GPT-5.1-Codex?

Gemini 3.1 Pro scores higher for coding on the public lane, 39.2 to 33.7. GPT-5.1-Codex is scored on Estimated evidence for coding, so the reading is directional rather than like-for-like. BenchLM does not name a winner for coding from a directional reading; read the shared benchmark rows directly and test the models on the same task set.

Which is better for agentic tasks, Gemini 3.1 Pro or GPT-5.1-Codex?

GPT-5.1-Codex is not ranked on the public lane for agentic tasks, so no winner is named for agentic tasks.

Which costs less, Gemini 3.1 Pro or GPT-5.1-Codex?

For the stated presets, chat costs $0.008 on Gemini 3.1 Pro and $0.00625 on GPT-5.1-Codex; repository review costs $0.136 and $0.0925; the cache-heavy agent loop costs $0.2 and $0.15. Costs use the listed standard API rates.

Which has the larger context window, Gemini 3.1 Pro or GPT-5.1-Codex?

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

Benchmark evidence

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

Browse raw public benchmark evidence32 rows

Agentic

  • Claw-Eval

    Gemini 3.1 Pro57.8%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • DeepSearchQA

    Gemini 3.1 Pro69.7%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • τ²-bench results

    Gemini 3.1 Pro95.6%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • Gemini 3.1 Pro56.87%
    GPT-5.1-Codex49.68%

    Gemini 3.1 Pro leads this result

  • ResearchClawBench

    Gemini 3.1 Pro13.3%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • Terminal-Bench 2.1 (Vals)

    Gemini 3.1 Pro70.8%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • MazeBench

    Gemini 3.1 Pro1%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • JobBench

    Gemini 3.1 Pro—
    GPT-5.1-Codex26.2%
    Source

    Not directly comparable

Coding

  • LiveCodeBench Pro

    Gemini 3.1 Pro82.9%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • React Native Evals

    Gemini 3.1 Pro78.9%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • Vibe Code Bench

    Shared source
    Gemini 3.1 Pro32.03%
    GPT-5.1-Codex13.12%

    Gemini 3.1 Pro leads this result

  • LiveCodeBench (Vals)

    Gemini 3.1 Pro88.5%
    Source
    GPT-5.1-Codex85.6%
    Source

    Gemini 3.1 Pro leads this result

  • SWE-bench (Vals)

    Gemini 3.1 Pro78.8%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • PostTrainBench v1.1

    Gemini 3.1 Pro22.0%
    Source
    GPT-5.1-Codex—

    Not directly comparable

Reasoning

  • ARC-AGI-2

    Gemini 3.1 Pro77.1%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • ARC-AGI-3

    Gemini 3.1 Pro0.4%
    Source
    GPT-5.1-Codex—

    Not directly comparable

Multimodal

  • ParseBench

    Gemini 3.1 Pro69.14%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • MMMU-Pro

    Gemini 3.1 Pro83.9%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • CharXiv

    Gemini 3.1 Pro80.2%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • ERQA

    Gemini 3.1 Pro69.4%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • SimpleVQA

    Gemini 3.1 Pro72.4%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • ScreenSpot Pro

    Gemini 3.1 Pro84.4%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • ZeroBench

    Gemini 3.1 Pro29.0%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • MedXpertQA (MM)

    Gemini 3.1 Pro81.3%
    Source
    GPT-5.1-Codex—

    Not directly comparable

Knowledge

  • GPQA-D

    Gemini 3.1 Pro94.3%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • HLE w/o tools

    Gemini 3.1 Pro45.4%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • HealthBench Hard

    Gemini 3.1 Pro20.6%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • MedXpertQA (Text)

    Gemini 3.1 Pro71.5%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • GPQA Diamond (Vals)

    Gemini 3.1 Pro95.5%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • MMLU-Pro (Vals)

    Gemini 3.1 Pro91.0%
    Source
    GPT-5.1-Codex—

    Not directly comparable

Math

  • FrontierMath v2 (Tiers 1-3)

    Gemini 3.1 Pro59.649%
    Source
    GPT-5.1-Codex—

    Not directly comparable

  • FrontierMath v2 (Tier 4)

    Gemini 3.1 Pro26.829%
    Source
    GPT-5.1-Codex—

    Not directly comparable

32 public results · 3 shared

Watch Gemini 3.1 Pro vs GPT-5.1-Codex

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

Read a sample issue

Join 5,600+ readers.

Last updated October 20, 2026