Price Per TokenPrice Per Token
OpenAI
OpenAI
vs
OpenAI
OpenAI

GPT-4.1 vs GPT-5.2-Codex

A detailed comparison of pricing, benchmarks, and capabilities

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

Join the Price Per Token Community

Key Takeaways

GPT-4.1 wins:

  • Cheaper output tokens
  • Larger context window
  • Faster response time
  • Better at math

GPT-5.2-Codex wins:

  • Cheaper input tokens
  • Higher intelligence benchmark
  • Better at coding
  • Has reasoning mode
Price Advantage
GPT-4.1
Benchmark Advantage
GPT-5.2-Codex
Context Window
GPT-4.1
Speed
GPT-4.1

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

FeatureGPT-4.1GPT-5.2-Codex
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGPT-4.1GPT-5.2-Codex
LicenseProprietaryProprietary
AuthorOpenAIOpenAI
ReleasedApr 2025Jan 2026

GPT-4.1 Modalities

Input
imagetextfile
Output
text

GPT-5.2-Codex Modalities

Input
textimage
Output
text

Frequently Asked Questions

GPT-5.2-Codex has cheaper input pricing at $1.75/M tokens. GPT-4.1 has cheaper output pricing at $8.00/M tokens.
GPT-5.2-Codex scores higher on coding benchmarks with a score of 43.0, compared to GPT-4.1's score of 21.8.
GPT-4.1 has a 1,047,576 token context window, while GPT-5.2-Codex has a 400,000 token context window.
GPT-4.1 supports vision. GPT-5.2-Codex supports vision.