Across 9 comparable benchmarks, Gemini 3.1 Pro Preview has better reported results on 8 and worse on 1.
Moderate evidence9 of 9 shared results countedHow we compare
GPT-5.2-Codex is no longer available through its official API. API prices for this version are not shown.
Price basis: Listed rates vs listed rates. The price section below shows the applicable periods.
| Fact | Gemini 3.1 Pro Preview | GPT-5.2-Codex |
|---|---|---|
| Context window | 1M tokens | β |
| Input / 1M | $2.00 | β |
| Output / 1M | $12.00 | β |
| Blended (4:1) | $2.70 | β |
| Status | Preview | Retired |
| Released | February 20, 2026 | December 18, 2025 |
Blended is 4:1 input to output with 90% cache hits at listed rates β set your own mix.
Mean of 7 shared benchmarks grouped by capability on a 0β100 scale. How averages are built
Gemini 3.1 Pro Preview ahead on 5 of 6 counted
Gemini 3.1 Pro Preview ahead on 1 of 1 counted
No fixed-scale average β see the rows in Benchmark results
Gemini 3.1 Pro Preview ahead on 1 of 1 counted
No shared comparable results for Abstract reasoning, Mathematics, Computer & tool use, Research & search, Long context, Professional work & productivity, Cybersecurity.
Published scores, with matching modes where available. Gaps show Gemini 3.1 Pro Preview relative to GPT-5.2-Codex. Reading the results
| Benchmark | Gemini 3.1 Pro Preview | GPT-5.2-Codex | Gap |
|---|---|---|---|
| APEX-SWERepository Engineering Β· Pass@1 | 33.9Thinking High Β· tools | 30.8Thinking High Β· tools | +3.1 pts#45 vs #51 of 61 |
| SWE-Bench Pro - CommercialRepository Engineering Β· Resolve Rate | 32.2Thinking Β· tools | 27.7β Unspecified Reasoning Β· tools | +4.5 pts#5 vs #6 of 14 |
| SWE-Bench Pro - PublicRepository Engineering Β· Accuracy | 54.2Thinking High Β· tools | 41.0β Unspecified Reasoning Β· tools | +13.2 pts#38 vs #60 of 66 |
| SWE-bench VerifiedRepository Engineering Β· Accuracy | 80.6Thinking High Β· tools | 72.8β Unspecified Reasoning Β· tools | +7.8 pts#12 vs #49 of 108 |
| Terminal Bench HardAgentic Development Β· Accuracy | 53.8Thinking Β· tools | 37.1β Extra-High Β· tools | +16.7 pts#8 vs #43 of 157 |
| Vibe Code Bench v1.1Code Generation & Editing Β· Pass rate (%) | 32.0Thinking High Β· tools | 37.9Thinking High Β· tools | β5.9 pts#77 vs #73 of 121 |
| CritPtScientific Reasoning Β· Score | 17.7Thinking Β· no tools | 8.7β Extra-High Β· no tools | 2.03Γ#34 vs #60 of 134 |
| MMMU-ProVisual Understanding Β· Accuracy | 82.4Thinking Β· no tools | 76.3β Extra-High Β· no tools | +6.1 pts#19 vs #58 of 136 |
| LiveBenchCross-capability Suites Β· Accuracy | 77.0Thinking High Β· no tools | 74.0β Normal Β· no tools | +3.0 pts#24 vs #39 of 106 |
Repository Engineering Β· Pass@1
Repository Engineering Β· Resolve Rate
Repository Engineering Β· Accuracy
Repository Engineering Β· Accuracy
Agentic Development Β· Accuracy
Code Generation & Editing Β· Pass rate (%)
Scientific Reasoning Β· Score
Visual Understanding Β· Accuracy
Cross-capability Suites Β· Accuracy
A dash means no result is available.
Time-of-day providers use peak-hour rates; fixed-price providers use standard rates. Off-peak discounts remain in the published details.
Drag the handle above the bar for cache hits, the one below it for the input : output mix Β· 5% steps
Blended price = effective input rate at 90% cache hits Γ 80% + output rate Γ 20%
A blended cost needs a published input and output price on both sides, and one of these two does not have them yet.
Gemini 3.1 Pro Preview: Standard pricing. context_length <= 200K Google Gemini API official pricing (ai.google.dev/gemini-api/docs/pricing) verified 2026-10-21; paid tier; standard tier; prompts <= 200k tokens context_length > 200K Google Gemini API official pricing (ai.google.dev/gemini-api/docs/pricing) verified 2026-10-21; paid tier; standard tier; prompts > 200k tokens
GPT-5.2-Codex: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | Gemini 3.1 Pro Preview | GPT-5.2-Codex | Ratio |
|---|---|---|---|
| Input | $2.00 | β | β |
| Output | $12.00 | β | β |
| Cached input | $0.20 | β | β |
| Cache write | β | β | β |
| Blended | $2.70 | β | β |
Estimates use the selected token mix. Cache writes, tool fees and long-context surcharges are excluded.
Reported cost per task, paired with the score from the same run. Settings and sources may differ; costs do not affect the verdict.
| Benchmark | Gemini 3.1 Pro Preview | GPT-5.2-Codex |
|---|---|---|
| Agents' Last Exam v1.0 | $14.2116 / task Average Β· Pass rate: 16.4 Unspecified Reasoning (With Tools) Β· pass-rate | Not reported |
| AIME 2026 | Not reported | |
| AutomationBench | $0.30 / task Average Β· Pass Rate: 8.7 Thinking High (With Tools) Β· zapier-private-heldout $0.28 / task Average Β· Pass Rate: 4.6 Thinking Low (With Tools) Β· zapier-private-heldout $0.25 / task Average Β· Pass Rate: 7.0 Thinking Medium (With Tools) Β· zapier-private-heldout | Not reported |
| DeepSWE | Not reported | |
| IOI (Vals v2) | Not reported | |
| LiveBench 2.0 | $0.6982 / task Average Β· Overall score (equal-weight mean of 7 suite scores, 0-100): 54.9 Thinking High (With Tools) | Not reported |
| MysteryMechanism | Not reported | |
| Tax Agent Bench | $0.3016 / task Average Β· Accuracy (%, rubric Γ citation quality): 9.3 Thinking High (With Tools) | Not reported |
| Vals Index v2.1 | Not reported | |
| Vibe Code Bench 1-100 | Not reported |
| Attribute | Gemini 3.1 Pro Preview | GPT-5.2-Codex |
|---|---|---|
| Availability | Preview | Retired |
| Provider | Google Deep Mind | OpenAI |
| Model type | Multimodal model | Coding model |
| First release | February 20, 2026 | December 18, 2025 |
| Context window | 1M tokens | β |
| Max output | 64K tokens | β |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Reasoning, Multilingual | Reasoning, Coding |
| Knowledge cutoff | 2025-01 | β |
| Input modalities | Text, Image, Audio, Video | Text, Image |
| Output modalities | Text | Text |
| Weights | Closed / API only | Closed / API only |
| Commercial use | Proprietary | Proprietary |
These are reported-score comparisons, not controlled head-to-head tests.
What people found comparing these models, or using either one. Comments also appear on the models' own pages.
Sign in with Google to comment on Gemini 3.1 Pro Preview vs GPT-5.2-Codex.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.