Scheduled for retirement on Mar 17, 2027. Still available at the prices below until then.

GPT 5 Codex

OpenAIReleased Sep 15, 2025KnowledgeSep 2024
Context
272K
Max output
128K
Serving providers
3
Cheapest input
$1.25 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower. An OpenRouter routed quote is the price of whichever upstream provider OpenRouter prefers today, so it moves day to day.

Benchmarks

independent evaluations · source: Artificial Analysis
Speed & latency
Output speed
188 t/s
tokens / second
Time to first token
12.87s
latency
Headline indices
Individual benchmarks · click a row for effort variants
BenchmarkBest scoreEffortCost / task
CritPt5%default—
GPQA Diamond84%default—
Humanity's Last Exam28%default—
IFBench74%default—
LiveCodeBench84%default—
Long-Context Reasoning72%default—
MMLU-ProFrozen Aug 18, 202686%default—
MMMU-Pro74%default—
Omniscience-7.5default—
Omniscience Accuracy0.4default—
Omniscience Non Hallucination0.2default—
SciCodeArtificial Analysis did not report this score in its latest run on Oct 14, 202641%——
TerminalBench Hard38%default—
τ²-bench87%default—
Artificial Analysis last published scores for this benchmark on Aug 18, 2026. Scores here are frozen at that date, and models released since are not on it.

Pricing by serving provider

standard tier · per 1M tokens · click a provider to expand

Input pricing runs from $1.25 to $1.38 per 1M tokens across 3 providers, so the dearest route costs 10% more than the cheapest for the same model.

Serving providerInput /1MOutput /1MEndpoints
OpenRouterRouted quote$1.25$10.001
Standardopenai/gpt-5-codex
ComponentUnitStandard
Text cached in/1M tok$0.125
Text input/1M tok$1.25
Text output/1M tok$10.00
VercelRouted quoteVercel reseller quote$1.25$10.001
Azure$1.38$11.001
OpenRouter (batch)$0.625$5.001

Price history

OpenRouter routed quote

OpenRouter's price is a routed quote. It moves with whichever upstream route OpenRouter prefers that day, so we do not track it as a price history.

Cost calculator

estimate your monthly spend on this model
$1,050
estimated / month

Model IDs

copy the exact identifier for your platform
openai/gpt-5-codex:batchopenai/gpt-5-codexopenai/gpt-5-codexazure/eu/gpt-5-codex

Frequently asked questions

GPT 5 Codex pricing, context and availability

Is GPT 5 Codex still available?

Yes. GPT 5 Codex is scheduled for retirement on 2027-03-17.

How much does GPT 5 Codex cost?

GPT 5 Codex costs $1.25 per 1M input tokens as an OpenRouter routed quote, and $10.00 per 1M output tokens as an OpenRouter routed quote. An OpenRouter routed quote is the price of whichever upstream provider OpenRouter prefers today, so it moves day to day. Across 3 serving providers, input prices range from $1.25 to $1.38 per 1M tokens.

What is the context window of GPT 5 Codex?

GPT 5 Codex accepts up to 272K tokens of context and can return up to 128K output tokens.

Which providers serve GPT 5 Codex?

GPT 5 Codex is available from 3 serving providers, each with its own pricing and model ID. OpenRouter is currently the cheapest, as a routed quote.

What can GPT 5 Codex do?

GPT 5 Codex supports tool use and reasoning.

Other OpenAI models

compare pricing across the OpenAI lineup
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Jul 30, 2026

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI