GPT-5.2-Codex
Summary
GPT-5.2-Codex is a proprietary language model from OpenAI, released on 11 Dec 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.75 per million input tokens and $14 per million output tokens (Azure AI Foundry), across 3 providers we track.
Code-specialist GPT for repository edits, reviews, and long-running software agents
Last verified 18 Nov 2026. Every figure on this page links to its source.
Specifications
| Developer | OpenAI |
|---|---|
| Release date | 11 Dec 2025 [models.dev] |
| Status | Generally available [models.dev] |
| Weights | Proprietary (API only) [models.dev] |
| Context window | 400K (400,000 tokens) [models.dev] |
| Max output | 128K tokens [models.dev] |
| Knowledge cutoff | 31 Aug 2025 [models.dev] |
| Input | Text, images and PDFs [models.dev] |
| Output | Text [models.dev] |
| Reasoning mode | Yes [models.dev] |
| Tool calling | Yes [models.dev] |
| Structured output | Yes [models.dev] |
GPT-5.2-Codex API pricing by provider
USD per million tokens. Sorted by input price.
| Provider | Input | Output | Cached input | Context | Source |
|---|---|---|---|---|---|
| Azure AI Foundry gpt-5.2-codex | $1.75 | $14 | $0.17 | 400K | models.dev, 18 Nov 2026 |
| OpenRouter openai/gpt-5.2-codex | $1.75 | $14 | $0.17 | 400K | OpenRouter, 18 Nov 2026 |
| Vercel AI Gateway openai/gpt-5.2-codex | $1.75 | $14 | $0.17 | 400K | models.dev, 18 Nov 2026 |
Frequently asked questions
What is the context window of GPT-5.2-Codex?
GPT-5.2-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.2-Codex API cost?
GPT-5.2-Codex is listed from $1.75 per million input tokens and $14 per million output tokens (Azure AI Foundry). Prices last verified 18 Nov 2026.
Is GPT-5.2-Codex open source?
No. GPT-5.2-Codex is a proprietary model; OpenAI has not released its weights. It is available through APIs including Azure AI Foundry, OpenRouter, Vercel AI Gateway.
When was GPT-5.2-Codex released?
OpenAI released GPT-5.2-Codex on 11 Dec 2025, according to models.dev.
Which providers offer GPT-5.2-Codex?
We track GPT-5.2-Codex on 3 providers: Azure AI Foundry, OpenRouter, 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.
| Model | Lab | Released | Context | Input $/1M | Output $/1M | Weights |
|---|---|---|---|---|---|---|
| Sonar Pro Search | Perplexity | 30 Oct 2025 | 200K | $3 | $15 | – |
| Claude Opus 4.5 | Anthropic | 24 Nov 2025 | 200K | $5 | $25 | Closed |
| Claude Sonnet 4.6 | Anthropic | 17 Feb 2026 | 1M | $3 | $15 | Closed |
| Gemini 3.1 Pro Preview Custom Tools | Google DeepMind | 19 Feb 2026 | 1M | $2 | $12 | Closed |
| Gemini Pro Latest | Google DeepMind | 19 Feb 2026 | 1M | $2 | $12 | Closed |
| Relace Search | Relace | 8 Dec 2025 | 256K | $1 | $3 | Closed |
Change history
- Release date changed from 14 Jan 2026 to 11 Dec 2025
- Name changed from GPT-5.2 Codex to GPT-5.2-Codex
- Input modalities changed from text, image to text, image, pdf
- Release date changed from 11 Dec 2025 to 14 Jan 2026
- Release date changed from 14 Jan 2026 to 11 Dec 2025
- Input modalities changed from text, image, pdf to text, image
- Input modalities changed from text, image to text, image, pdf
- Release date changed from 11 Dec 2025 to 14 Jan 2026
- Input modalities changed from text, image, pdf to text, image
- Release date changed from 14 Jan 2026 to 11 Dec 2025
- Release date changed from 11 Dec 2025 to 14 Jan 2026
- Name changed from GPT-5.2-Codex to GPT-5.2 Codex
- Release date changed from 14 Jan 2026 to 11 Dec 2025
- Name changed from GPT-5.2 Codex to GPT-5.2-Codex
- Release date changed from 11 Dec 2025 to 14 Jan 2026
- Name changed from GPT-5.2-Codex to GPT-5.2 Codex
- Input modalities changed from text, image to text, image, pdf
- Name changed from GPT-5.2 Codex to GPT-5.2-Codex
- Input modalities changed from text, image, pdf to text, image
- Name changed from GPT-5.2-Codex to GPT-5.2 Codex
- Name changed from GPT-5.2 Codex to GPT-5.2-Codex
- Input modalities changed from text, image to text, image, pdf
- Input modalities changed from text, image, pdf to text, image
- Name changed from GPT-5.2-Codex to GPT-5.2 Codex
- Release date changed from 14 Jan 2026 to 11 Dec 2025