Skip to content

GPT-5.4 vs GPT-5.2 Codex

GPT-5.2 Codex is cheaper on output tokens, while GPT-5.4 offers a larger context window. Choose GPT-5.4 or GPT-5.2 Codex based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecGPT-5.4GPT-5.2 Codex
ProviderCloudflare AI GatewayCloudflare AI Gateway
Input / 1M tokens$2.50$1.75
Output / 1M tokens$15.00$14.00
Context window1.1M400K
Parameters
Open weightsNoNo
ReleasedMar 2026Dec 2025

FAQ

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.