Skip to content

GPT-5-Codex vs Phi-4

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

SpecGPT-5-CodexPhi-4
ProviderAzureAzure
Input / 1M tokens$1.25$0.13
Output / 1M tokens$10.00$0.50
Context window400K128K
Parameters
Open weightsNoYes
ReleasedSep 2025Dec 2024

FAQ

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