OpenAI

GPT-5-Codex

Generally availableProprietary400K contextReasoning

Summary

GPT-5-Codex is a proprietary language model from OpenAI, released on 15 Sept 2025. It accepts text, images and PDFs and generates text, with a 400K-token context window and up to 128K output tokens per response. As of 18 Nov 2026, the lowest listed API price is $1.25 per million input tokens and $10 per million output tokens (Azure AI Foundry), across 2 providers we track.

Coding-optimized GPT model for repository edits, reviews, and agentic software work

Last verified 18 Nov 2026. Every figure on this page links to its source.

Specifications

DeveloperOpenAI
Release date15 Sept 2025 [models.dev]
StatusGenerally available [models.dev]
WeightsProprietary (API only) [models.dev]
Context window400K (400,000 tokens) [models.dev]
Max output128K tokens [models.dev]
Knowledge cutoff30 Sept 2024 [models.dev]
InputText, images and PDFs [models.dev]
OutputText [models.dev]
Reasoning modeYes [models.dev]
Tool callingYes [models.dev]
Structured outputYes [models.dev]

GPT-5-Codex API pricing by provider

USD per million tokens. Sorted by input price.

ProviderInputOutputCached inputContextSource
Azure AI Foundry
gpt-5-codex
$1.25$10$0.13400Kmodels.dev, 18 Nov 2026
Vercel AI Gateway
openai/gpt-5-codex
$1.25$10$0.13400Kmodels.dev, 18 Nov 2026

Frequently asked questions

What is the context window of GPT-5-Codex?

GPT-5-Codex has a context window of 400,000 tokens (400K) and can generate up to 128,000 tokens in a single response, according to models.dev.

How much does the GPT-5-Codex API cost?

GPT-5-Codex is listed from $1.25 per million input tokens and $10 per million output tokens (Azure AI Foundry). Prices last verified 18 Nov 2026.

Is GPT-5-Codex open source?

No. GPT-5-Codex is a proprietary model; OpenAI has not released its weights. It is available through APIs including Azure AI Foundry, Vercel AI Gateway.

When was GPT-5-Codex released?

OpenAI released GPT-5-Codex on 15 Sept 2025, according to models.dev.

Which providers offer GPT-5-Codex?

We track GPT-5-Codex on 2 providers: Azure AI Foundry, Vercel AI Gateway.

Similar models from other labs

Comparable on output type, weights, release date, price and context window. Prices are the lowest listed, USD per million tokens.

ModelLabReleasedContextInput $/1MOutput $/1MWeights
Gemini 2.5 Computer Use Preview 10-2025Google DeepMind7 Oct 2025128K$1.25$10Closed
Sonar Pro SearchPerplexity30 Oct 2025200K$3$15–
Claude Haiku 4.5Anthropic15 Oct 2025200K$1$5Closed
Gemini 2.5 ProGoogle DeepMind17 Jun 20251M$1.25$10Closed
Relace SearchRelace8 Dec 2025256K$1$3Closed
Claude Opus 4.5Anthropic24 Nov 2025200K$5$25Closed

Change history

  • Input modalities changed from text, image to text, image, pdf
  • Structured output changed from none to yes
  • Azure AI Foundry price changed: input $1.25 → $1.25, output $10 → $10 per 1M tokens

Sources