GPT-5 Codex vs Claude 4.5 Sonnet

Detailed comparison of capabilities, features, and performance.

Feature
GPT-5 Codex
Claude 4.5 Sonnet
Model Image
GPT-5 Codex
Claude 4.5 Sonnet
AI Lab
OpenAI
Anthropic
Context Size
400,000 tokens
1,000,000 tokens
Max Output Size
128,000 tokens
200,000 tokens
Frontier Model
Yes
Yes
Vision Support
Yes
Yes
Description
OpenAI's specialist coding model.
The latest Claude 4.5 Sonnet model from Anthropic with a 1M token context window.

Try both models in your workspace

Access both GPT-5 Codex and Claude 4.5 Sonnet in a single workspace without managing multiple API keys.

Create your workspace