OpenAI

GPT 5 Codex API pricing

Made by OpenAI

2 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is Azure at $1,612.50 a month; the dearest costs $1,773.90, 1.1× as much.

Input from
$1.25
Output from
$10.00
Context up to
272K tokens
Batch rates
None listed

Every route, cheapest first

Prices per 1M tokens. Month is the sample workload: 300,000 requests, 2,000 tokens in and 400 out per request, half the input cached. Cache writes are not counted.

ProviderInputOutputCache readCache writeBatch in / outContextMonth
AzureLiteLLM$1.25$10.00$0.125——272K$1,612.50
AzureLiteLLM$1.38$11.00$0.138———$1,773.90

Other GPT models