Price Per TokenPrice Per Token
Google
Google
vs
OpenAI
OpenAI

Gemini 3.1 Pro Preview vs GPT-5

A detailed comparison of pricing, benchmarks, and capabilities

Best Coding Model Leaderboard Find the top LLM for coding by benchmarks and community votes

114 out of our 298 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Gemini 3.1 Pro Preview wins:

  • Larger context window

GPT-5 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports tool calls
Price Advantage
GPT-5
Benchmark Advantage
GPT-5
Context Window
Gemini 3.1 Pro Preview
Speed
GPT-5

Pricing Comparison

Price Comparison

MetricGemini 3.1 Pro PreviewGPT-5Winner
Input (per 1M tokens)$2.00$1.25 GPT-5
Output (per 1M tokens)$12.00$10.00 GPT-5
Cache Read (per 1M)$200000.00$125000.00 GPT-5
Cache Write (per 1M)$375000.00N/A Gemini 3.1 Pro Preview
Using a 3:1 input/output ratio, GPT-5 is 24% cheaper overall.

Gemini 3.1 Pro Preview Providers

Google AI Studio $2.00 (Cheapest)
Google $2.00 (Cheapest)

GPT-5 Providers

OpenAI $1.25 (Cheapest)
Azure $1.25 (Cheapest)

Benchmark Comparison

8
Benchmarks Compared
0
Gemini 3.1 Pro Preview Wins
0
GPT-5 Wins

Benchmark Scores

BenchmarkGemini 3.1 Pro PreviewGPT-5Winner
Intelligence Index
Overall intelligence score
-44.6-
Coding Index
Code generation & understanding
-36.0-
Math Index
Mathematical reasoning
-94.3-
MMLU Pro
Academic knowledge
-87.1-
GPQA
Graduate-level science
-85.4-
LiveCodeBench
Competitive programming
-84.6-
Aider
Real-world code editing
-88.0-
AIME
Competition math
-95.7-
GPT-5 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Other models

Context & Performance

Context Window

Gemini 3.1 Pro Preview
1,048,576
tokens
Max output: 65,536 tokens
GPT-5
400,000
tokens
Max output: 128,000 tokens
Gemini 3.1 Pro Preview has a 62% larger context window.

Speed Performance

MetricGemini 3.1 Pro PreviewGPT-5Winner
Tokens/secondN/A88.9 tok/s
Time to First TokenN/A100.04s

Capabilities

Feature Comparison

FeatureGemini 3.1 Pro PreviewGPT-5
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemini 3.1 Pro PreviewGPT-5
LicenseProprietaryProprietary
AuthorGoogleOpenAI
ReleasedFeb 2026Aug 2025

Gemini 3.1 Pro Preview Modalities

Input
audiofileimagetextvideo
Output
text

GPT-5 Modalities

Input
textimagefile
Output
text

Related Comparisons

Compare Gemini 3.1 Pro Preview with:

Compare GPT-5 with:

Frequently Asked Questions

GPT-5 has cheaper input pricing at $1.25/M tokens. GPT-5 has cheaper output pricing at $10.00/M tokens.
GPT-5 scores higher on coding benchmarks with a score of 36.0, compared to Gemini 3.1 Pro Preview's score of N/A.
Gemini 3.1 Pro Preview has a 1,048,576 token context window, while GPT-5 has a 400,000 token context window.
Gemini 3.1 Pro Preview supports vision. GPT-5 supports vision.