Price Per TokenPrice Per Token
Google
Google
vs
OpenAI
OpenAI

Gemini 3.1 Pro Preview Custom Tools vs GPT-5 Codex

A detailed comparison of pricing, benchmarks, and capabilities

115 out of our 496 tracked models have had a price change in March.

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

New

Stop Googling APIs — let your agent choose

Our upcoming API Finder MCP server helps AI agents discover and compare APIs for any task.

Key Takeaways

Gemini 3.1 Pro Preview Custom Tools wins:

  • Larger context window

GPT-5 Codex wins:

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

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

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

License & Release

PropertyGemini 3.1 Pro Preview Custom ToolsGPT-5 Codex
LicenseProprietaryProprietary
AuthorGoogleOpenAI
ReleasedFeb 2026Sep 2025

Gemini 3.1 Pro Preview Custom Tools Modalities

Input
textaudioimagevideofile
Output
text

GPT-5 Codex Modalities

Input
textimage
Output
text

Related Comparisons

Compare Gemini 3.1 Pro Preview Custom Tools with:

Compare GPT-5 Codex with:

Frequently Asked Questions

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