Spiral gives your agent every tool with one account. Browse the tools →

Gemini 3.1 Pro Preview vs GPT-5.1-Codex-Max (Comparative Analysis)

Loading comparison form...
Comparative Analysis: Gemini 3.1 Pro Preview vs. GPT-5.1-Codex-Max
Want to try out these models side by side?Sign up for Spiral

Overview

GPT-5.1-Codex-Max was released 2 months before Gemini 3.1 Pro Preview.
Gemini 3.1 Pro PreviewGemini 3.1 Pro Preview
GPT-5.1-Codex-MaxGPT-5.1-Codex-Max
Model Provider
The organization behind this AI's development
Google logoGoogle
OpenAI logoOpenAI
Input Context Window
Maximum input tokens this model can process at once
1M
tokens
400K
tokens
Output Token Limit
Maximum output tokens this model can generate at once
65.5K
tokens
128K
tokens
Release Date
When this model first became publicly available
February 19th, 2026
December 4th, 2025

Capabilities & Features

Compare supported features, modalities, and advanced capabilities
Gemini 3.1 Pro Preview
GPT-5.1-Codex-Max
Input Types
Supported input formats
🎵Audio📁File🖼️Image📝Text🎬Video
📝Text🖼️Image
Reasoning Controls
Defaults and configurable reasoning effort
Always enabledEffort: High, Medium, LowDefault: Medium
Always enabledEffort: Extra High, High, Medium, LowDefault: Medium
Output Types
Supported output formats
📝Text
📝Text
Tokenizer
Text encoding system
GeminiGPT
Key Features
Advanced capabilities
✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation
✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation

Pricing

Gemini 3.1 Pro Preview is roughly 1.6x more expensive compared to GPT-5.1-Codex-Max for input tokens and roughly 1.2x more expensive for output tokens.
Gemini 3.1 Pro PreviewGemini 3.1 Pro Preview
GPT-5.1-Codex-MaxGPT-5.1-Codex-Max
Short Context Pricing
Base rates before a long-context threshold applies
Input Token Cost
Cost per million input tokens
$2.00
per million tokens
$1.25
per million tokens
Output Token Cost
Cost per million output tokens
$12.00
per million tokens
$10.00
per million tokens
Web Search Cost
Additional cost for each web search operation
$0.014
per search
Not specified
Cache Read Cost
Cost to reuse cached input tokens
$0.20
per million tokens
$0.13
per million tokens
Cache Write Cost
Cost to write input tokens to the cache
$0.38
per million tokens
Not specified
Reasoning Token Cost
Cost for internal reasoning tokens
$12.00
per million tokens
Not specified
Image Input Cost
Additional cost for each image input
$0.000002
per image
Not specified
Audio Input Cost
Additional cost for audio input
$0.000002
per unit
Not specified
Audio Cache Cost
Cost to reuse cached audio input tokens
$0.20
per million tokens
Not specified
Long Context Pricing
Rates for prompts with 200,000 or more tokens
Input Token Cost
Long-context input cost per million tokens
$4.00
per million tokens
Not specified
Output Token Cost
Long-context output cost per million tokens
$18.00
per million tokens
Not specified
Cache Read Cost
Long-context cache read cost per million tokens
$0.40
per million tokens
Not specified

Benchmarks

Compare relevant benchmarks between Gemini 3.1 Pro Preview and GPT-5.1-Codex-Max.
Gemini 3.1 Pro PreviewGemini 3.1 Pro Preview
GPT-5.1-Codex-MaxGPT-5.1-Codex-Max
Best Design Arena Score
Highest human-preference Elo score across design arenas
1,326 Elo
(#15 in Svg (67.9% win rate))
Benchmark not available.

At a Glance

Quick overview of what makes Gemini 3.1 Pro Preview and GPT-5.1-Codex-Max unique.
Google logoGemini 3.1 Pro Preview by Google understands both text and images, handles audio, analyzes video, can use external tools and APIs, offers advanced reasoning, generates structured data. It can handle standard conversations with its 1M token context window. Reasonably priced at $2.00/M input and $12.00/M output tokens. Released February 19th, 2026.
OpenAI logoGPT-5.1-Codex-Max by OpenAI understands both text and images, can use external tools and APIs, offers advanced reasoning, generates structured data. It can handle standard conversations with its 400K token context window. Reasonably priced at $1.25/M input and $10.00/M output tokens. Released December 4th, 2025.

Explore More Comparisons

Compare your models with top performers across different categories