Very long inputs
Choose Gemini 3.1 Pro
Gemini 3.1 Pro reads up to 1.05M tokens per request, against 400k for GPT-5.2-Codex.
Choose Gemini 3.1 Pro for very long inputs, agentic coding, tool use and support agents and the latest release; on the other points the two are level or the data is missing.
Each answer below comes straight from the published prices, specifications and independent benchmark results.
Choose Gemini 3.1 Pro
Gemini 3.1 Pro reads up to 1.05M tokens per request, against 400k for GPT-5.2-Codex.
Choose Gemini 3.1 Pro
Gemini 3.1 Pro scores 53.8% on Terminal-Bench Hard, against 37.1% for GPT-5.2-Codex.
Choose Gemini 3.1 Pro
Gemini 3.1 Pro scores 95.6% on τ²-Bench (agentic tool use), against 92.1% for GPT-5.2-Codex.
Either one
They are practically level on Long-context reasoning (AA-LCR) (82% and 82.3%).
Choose Gemini 3.1 Pro
Gemini 3.1 Pro is the newer release (February 2026, against Jan 14, 2026 for GPT-5.2-Codex).
| Gemini 3.1 Pro | GPT-5.2-Codex | |
|---|---|---|
| Provider | OpenAI | |
| Category | Language models | Language models |
| Status | Preview | Deprecated |
| Headline price | $4.50 / 1M tokens | No data |
| Input | $2.00 / 1M tokens | No data |
| Output | $12.00 / 1M tokens | No data |
| Cached input | $0.20 / 1M tokens | No data |
| Context window | 1.05M | 400k |
| Max output | 66k | 128k |
| Released | February 2026 | Jan 14, 2026 |
| Knowledge cutoff | No data | August 2025 |
| Licence | Proprietary | Proprietary |
| Capabilities | Vision, Reasoning, Tool calling, Structured output, Prompt caching, Batch API | Vision, Reasoning, Tool calling, Structured output, Batch API |
| API model id | gemini-3.1-pro-preview | gpt-5.2-codex |
Leader in bold.
| Benchmark | Gemini 3.1 Pro | GPT-5.2-Codex |
|---|---|---|
| Terminal-Bench Hard | 53.8% | 37.1% |
| GPQA Diamond | 94.1% | 89.9% |
| Humanity's Last Exam | 47% | 35.7% |
| IFBench (instruction following) | 77.1% | 77.6% |
| τ²-Bench (agentic tool use) | 95.6% | 92.1% |
| MMMU-Pro (visual reasoning) | 82.4% | 76.3% |
| Long-context reasoning (AA-LCR) | 82% | 82.3% |
| Intelligence Index | 29.7 | No data |
| SciCode | 58.7% | No data |
Independent evaluations by Artificial Analysis, run the same way for every model, at the reasoning setting shown. Percentages unless marked as an index.
Choose Gemini 3.1 Pro for very long inputs, agentic coding, tool use and support agents and the latest release; on the other points the two are level or the data is missing.
A price comparison is not possible: one of them has no comparable published price.
Gemini 3.1 Pro reads more per request: 1.05M tokens against 400k.
Gemini 3.1 Pro is made by Google and GPT-5.2-Codex by OpenAI. A price comparison is not possible: one of them has no comparable published price. Gemini 3.1 Pro reads more per request: 1.05M tokens against 400k. Gemini 3.1 Pro is the newer model (February 2026, against Jan 14, 2026). Only Gemini 3.1 Pro offers prompt caching.
Gemini 3.1 Pro scores 53.8% on Terminal-Bench Hard, against 37.1% for GPT-5.2-Codex.
Gemini 3.1 Pro was released on February 2026 and GPT-5.2-Codex on Jan 14, 2026.