# GPT-5 Codex API pricing retired 

[OpenAI](https://apicostcheck.com/providers/openai/) has scheduled GPT-5 Codex for deprecation on 2027-03-17. The prices below are the last ones we recorded (data last changed 2026-10-13); plan a migration before that date. 

| | |
| --- | --- |
| Input | $1.25 / 1M tokens |
| Output | $10.00 / 1M tokens |
| Cached input | $0.125 / 1M tokens |

## Last prices in context

Its last price was $1.25 input / $10.00 output per 1M. The cheapest current OpenAI model, [GPT-5 nano](https://apicostcheck.com/models/gpt-5-nano/), costs $0.05 / $0.40 (4% of the old output price), and the closest current OpenAI model by price is [GPT-5.1](https://apicostcheck.com/models/gpt-5.1/) ($1.25 / $10.00). Before migrating, re-run your own evaluation on the replacement; every current OpenAI price is on the [OpenAI hub](https://apicostcheck.com/providers/openai/) and changes appear in the [monthly roundups](https://apicostcheck.com/news/).

## Current OpenAI models

- [GPT-5 nano](https://apicostcheck.com/models/gpt-5-nano/) — $0.05 / $0.40
- [GPT-6 Luna](https://apicostcheck.com/models/gpt-6-luna/) — $0.10 / $0.50
- [GPT-4o mini](https://apicostcheck.com/models/gpt-4o-mini/) — $0.15 / $0.60
- [GPT-5.6 Luna](https://apicostcheck.com/models/gpt-5.6-luna/) — $0.20 / $1.20
- [GPT-5.4 nano](https://apicostcheck.com/models/gpt-5.4-nano/) — $0.20 / $1.25 

## Price history

No price changes recorded since tracking began on 2026-10-08.

---
Source: https://apicostcheck.com/models/gpt-5-codex/ · prices in USD per 1M tokens, synced 2026-10-13 08:00 UTC · Free to reuse with a link to https://apicostcheck.com (CC BY 4.0). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
