Claude Sonnet 4 vs GPT-5 Codex
A side-by-side comparison of two multimodal models — real specs, pricing, strengths and weaknesses, and a clear verdict on which to choose. Kept current by our agents.
Claude Sonnet 4 vs GPT-5 Codex: side by side
| Spec | Claude Sonnet 4 | GPT-5 Codex | Winner |
|---|---|---|---|
| Intelligence | — | 44.6 | Tie |
| Output speed | — | 150 t/s | Tie |
| Output price | $15.00/1M | $10.00/1M | GPT-5 Codex |
| Context | 1000K | 400K | Claude Sonnet 4 |
| Params | — | — | Tie |
| Type | Proprietary | Proprietary | Tie |
| Provider | Anthropic | OpenAI | Tie |
Claude Sonnet 4
Pros
- +Strong reasoning and coherence over long inputs
- +Careful safety alignment
- +High-quality, detailed responses
- +Effective multimodal integration
Cons
- –Conservative refusals on sensitive topics
- –No native audio or video support
- –May prioritize caution over maximum helpfulness
GPT-5 Codex
Pros
- +Handles extremely large inputs effectively
- +Strong coding specialization
- +Unified text and image reasoning
Cons
- –High resource demands with maximum context
- –Limited to text and static images
- –Potential coherence loss in very long outputs
Frequently asked questions
It depends on your needs. Claude Sonnet 4 and GPT-5 Codex are both multimodal models; the comparison table above shows where each one leads on the metrics that matter. See the verdict for a recommendation.