Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation.…
Model details →Google: Gemini 3.1 Pro Preview vs OpenAI: GPT-5.1-Codex-Max
OpenAI: GPT-5.1-Codex-Max wins on 2 of 6 axes — pricing and capability skew in its favour for most workloads.
GPT-5.1-Codex-Max is OpenAI’s latest agentic coding model, designed for long-running, high-context software development tasks. It is based on an updated version of the 5.1 reasoning stack and trained on agentic...
Model details →Side-by-side comparison
| Capability | Google: Gemini 3.1 Pro Preview | OpenAI: GPT-5.1-Codex-Max | Winner |
|---|---|---|---|
| Context window Maximum number of input tokens the model can attend to in a single request. | 1.0M | 400K | 🏆 Google: Gemini 3.1 Pro Preview |
| Input price (per 1M) Cost per million input tokens billed by the provider. | $2.00 | $1.25 | 🏆 OpenAI: GPT-5.1-Codex-Max |
| Output price (per 1M) Cost per million output tokens billed by the provider. | $12.00 | $10.00 | 🏆 OpenAI: GPT-5.1-Codex-Max |
| Tool / function calling First-class support for emitting structured tool calls. | Yes | Yes | Tie |
| Vision input Accepts image inputs alongside text. | Yes | Yes | Tie |
| Reasoning mode Internal chain-of-thought / extended-thinking support. | Yes | Yes | Tie |
Frequently asked questions
Is Google: Gemini 3.1 Pro Preview better than OpenAI: GPT-5.1-Codex-Max?
OpenAI: GPT-5.1-Codex-Max wins on 2 of 6 axes — pricing and capability skew in its favour for most workloads.
What's the price difference between Google: Gemini 3.1 Pro Preview and OpenAI: GPT-5.1-Codex-Max?
Input: $2.00 vs $1.25 per 1M tokens. Output: $12.00 vs $10.00 per 1M tokens.
What context windows do Google: Gemini 3.1 Pro Preview and OpenAI: GPT-5.1-Codex-Max support?
Google: Gemini 3.1 Pro Preview supports up to 1.0M tokens. OpenAI: GPT-5.1-Codex-Max supports up to 400K tokens.
Do both Google: Gemini 3.1 Pro Preview and OpenAI: GPT-5.1-Codex-Max support tool calling?
Google: Gemini 3.1 Pro Preview: yes. OpenAI: GPT-5.1-Codex-Max: yes.