OpenAI

GPT-5-Codex Pricing

API pricing for GPT-5-Codex by OpenAI. Input tokens cost $1.25/1M, output tokens cost $10/1M with 400K context window.

Last updated:

ReasoningTools

Input Cost

$1.25

per 1M tokens

Output Cost

$10

per 1M tokens

Context Window

400K

tokens

Cost Calculator

Estimated Cost:

$0.00

Model Details

Provider OpenAI
Model ID gpt-5-codex
Context Window 400K tokens
Max Output 128000 tokens
Cache Read Cost $0.125/1M
Release Date 2025-09-15

Compare Alternatives

Model Input Output Context
GPT-5-Codex (this model) $1.25 $10 400K
Gemini 2.5 Pro Google $1.25 $10 1M
Gemini 2.5 Pro Preview 05-06 Google $1.25 $10 1M
Gemini 2.5 Pro Preview 06-05 Google $1.25 $10 1M
GPT-5 OpenAI $1.25 $10 400K
GPT-5 Chat (latest) OpenAI $1.25 $10 400K

Available from Resellers

GPT-5-Codex is also available through these resellers and gateways:

Reseller Model Input Output
AIHubMix GPT-5-Codex $1.25 $10
AIHubMix GPT-5.1 Codex $1.25 $10
AIHubMix GPT-5.1 Codex Mini $0.25 $2
AIHubMix GPT-5.1-Codex-Max $1.25 $10
Azure GPT-5-Codex $1.25 $10
Azure GPT-5.1 Codex $1.25 $10
Azure GPT-5.1 Codex Max $1.25 $10
Azure GPT-5.1 Codex Mini $0.25 $2
Azure Cognitive Services GPT-5-Codex $1.25 $10
Azure Cognitive Services GPT-5.1 Codex $1.25 $10
← Back to All Models