Claude Sonnet 4 (latest) vs GPT-5.2 Codex
GPT-5.2 Codex is cheaper on output tokens, while GPT-5.2 Codex offers a larger context window. Choose Claude Sonnet 4 (latest) or GPT-5.2 Codex based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | Claude Sonnet 4 (latest) | GPT-5.2 Codex |
|---|---|---|
| Provider | Cloudflare AI Gateway | Cloudflare AI Gateway |
| Input / 1M tokens | $3.00 | $1.75 |
| Output / 1M tokens | $15.00 | $14.00 |
| Context window | 200K | 400K |
| Parameters | — | — |
| Open weights | No | No |
| Released | May 2025 | Dec 2025 |
FAQ
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.