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 | GPT-5.2-Codex | Gemini 3.1 Pro Preview |
|---|---|---|
| Context window | β | 1M tokens |
| Input / 1M | β | $2.00 |
| Output / 1M | β | $12.00 |
| Blended (4:1) | β | $2.70 |
| Status | Retired | Preview |
| Released | December 18, 2025 | February 20, 2026 |
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 GPT-5.2-Codex relative to Gemini 3.1 Pro Preview. Reading the results
| Benchmark | GPT-5.2-Codex | Gemini 3.1 Pro Preview | Gap |
|---|---|---|---|
| APEX-SWERepository Engineering Β· Pass@1 | 30.8Thinking High Β· tools | 33.9Thinking High Β· tools | β3.1 pts#51 vs #45 of 61 |
| SWE-Bench Pro - CommercialRepository Engineering Β· Resolve Rate | 27.7Unspecified Reasoning Β· tools | 32.2β Thinking Β· tools | β4.5 pts#6 vs #5 of 14 |
| SWE-Bench Pro - PublicRepository Engineering Β· Accuracy | 41.0Unspecified Reasoning Β· tools | 54.2β Thinking High Β· tools | β13.2 pts#60 vs #38 of 66 |
| SWE-bench VerifiedRepository Engineering Β· Accuracy | 72.8Unspecified Reasoning Β· tools | 80.6β Thinking High Β· tools | β7.8 pts#49 vs #12 of 108 |
| Terminal Bench HardAgentic Development Β· Accuracy | 37.1Extra-High Β· tools | 53.8β Thinking Β· tools | β16.7 pts#43 vs #8 of 157 |
| Vibe Code Bench v1.1Code Generation & Editing Β· Pass rate (%) | 37.9Thinking High Β· tools | 32.0Thinking High Β· tools | +5.9 pts#73 vs #77 of 121 |
| CritPtScientific Reasoning Β· Score | 8.7Extra-High Β· no tools | 17.7β Thinking Β· no tools | 0.49Γ#60 vs #34 of 134 |
| MMMU-ProVisual Understanding Β· Accuracy | 76.3Extra-High Β· no tools | 82.4β Thinking Β· no tools | β6.1 pts#58 vs #19 of 136 |
| LiveBenchCross-capability Suites Β· Accuracy | 74.0Normal Β· no tools | 77.0β Thinking High Β· no tools | β3.0 pts#39 vs #24 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.
GPT-5.2-Codex: Listed text rates; pricing tier not confirmed.
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
| Price / 1M tokens | GPT-5.2-Codex | Gemini 3.1 Pro Preview | 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 | GPT-5.2-Codex | Gemini 3.1 Pro Preview |
|---|---|---|
| Agents' Last Exam v1.0 | Not reported | $14.2116 / task Average Β· Pass rate: 16.4 Unspecified Reasoning (With Tools) Β· pass-rate |
| AIME 2026 | Not reported | |
| AutomationBench | Not reported | $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 |
| DeepSWE | Not reported | |
| IOI (Vals v2) | Not reported | |
| LiveBench 2.0 | Not reported | $0.6982 / task Average Β· Overall score (equal-weight mean of 7 suite scores, 0-100): 54.9 Thinking High (With Tools) |
| MysteryMechanism | Not reported | |
| Tax Agent Bench | Not reported | $0.3016 / task Average Β· Accuracy (%, rubric Γ citation quality): 9.3 Thinking High (With Tools) |
| Vals Index v2.1 | Not reported | |
| Vibe Code Bench 1-100 | Not reported |
| Attribute | GPT-5.2-Codex | Gemini 3.1 Pro Preview |
|---|---|---|
| Availability | Retired | Preview |
| Provider | OpenAI | Google Deep Mind |
| Model type | Coding model | Multimodal model |
| First release | December 18, 2025 | February 20, 2026 |
| Context window | β | 1M tokens |
| Max output | β | 64K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Reasoning, Coding | Reasoning, Multilingual |
| Knowledge cutoff | β | 2025-01 |
| Input modalities | Text, Image | Text, Image, Audio, Video |
| 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 GPT-5.2-Codex vs Gemini 3.1 Pro Preview.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.