OpenAI: gpt-5-codex

deprecatedproprietary

Status: Shut down

Intelligence
Reasoning
Speed
Context
400K
Max output
128K
Input price
$1.25/1M tokens
Output price
$10/1M tokens

Capabilities

Reasoning & Interaction
Reasoning
Tool Calling
Output Control
Structured Output
JSON Mode
Infrastructure
Streaming

Details

Model IDopenai/gpt-5-codex
Creator OpenAI
Familygpt-5
Licenseproprietary
Statusdeprecated
Typechat
Input modalitiestext
Output modalitiestext
Open weightNo
Parameters—
Architecture—
Context window400K tokens
Max input272K tokens
Max output128K tokens
Reasoning tokensYes
Knowledge cutoff
Release date—
Deprecation date
Sourceofficial

Pricing

Input
$1.25
Output
$10
Cache write
—
Cache read
—
Batch in
—
Batch out
—

Family Comparison: gpt-5

ModelContextMax outPricing
Azure OpenAI: gpt-5-nano——$0.05$0.4
OpenAI: gpt-5-nano-2025-08-07400K128K$0.05$0.4
OpenAI: gpt-5-nano400K128K$0.05$0.4
OpenRouter: openai/gpt-5-nano-2025-08-07——$0.05$0.4
OpenRouter: openai/gpt-5-nano——$0.05$0.4
Azure OpenAI: gpt-5-mini——$0.25$2
OpenAI: gpt-5-mini-2025-08-07400K128K$0.25$2
OpenAI: gpt-5-mini400K128K$0.25$2
OpenRouter: openai/gpt-5-mini-2025-08-07——$0.25$2
OpenRouter: openai/gpt-5-mini——$0.25$2
Azure OpenAI: gpt-5-chat——$1.25$10
Azure OpenAI: gpt-5-codex——$1.25$10
Azure OpenAI: gpt-5——$1.25$10
OpenAI: gpt-5-2025-08-07400K128K$1.25$10
OpenAI: gpt-5-chat-2025-08-07——$1.25$10
OpenAI: gpt-5-chat-latest128K16K$1.25$10
OpenAI: gpt-5-chat——$1.25$10
OpenAI: gpt-5-codex400K128K$1.25$10
OpenAI: gpt-5400K128K$1.25$10
OpenRouter: openai/gpt-5-2025-08-07——$1.25$10
OpenRouter: openai/gpt-5-chat-2025-08-07——$1.25$10
OpenRouter: openai/gpt-5-chat——$1.25$10
OpenRouter: openai/gpt-5-codex——$1.25$10
OpenRouter: openai/gpt-5——$1.25$10
OpenAI: gpt-5-image-mini——$2.5$2
OpenRouter: openai/gpt-5-image-mini——$2.5$2
OpenAI: gpt-5-image——$10$10
OpenRouter: openai/gpt-5-image——$10$10
Azure OpenAI: gpt-5-pro——$15$120
OpenAI: gpt-5-pro-2025-10-06400K272K$15$120
OpenAI: gpt-5-pro400K272K$15$120
OpenRouter: openai/gpt-5-pro-2025-10-06——$15$120
OpenRouter: openai/gpt-5-pro——$15$120

API

GET/v1/models/cloudflare-ai-gateway/openai/gpt-5-codex

OpenAI: gpt-5-codex

deprecated
openai/gpt-5-codex

Status: Shut down

Changes · 3 entries
openai/gpt-5-codexupdate1cd659eMar 24, 2026, 04:19 AM
modalitiesinput["text"]output["text"]
openai/gpt-5-codexupdate2b100acMar 23, 2026, 05:30 AM
model_typechat
openai/gpt-5-codexcreate7a4f1f6Mar 22, 2026, 05:43 AM