GPT-5.2-codex

GPT-5.2-codex is a other model from OpenAI with a context window of 272K tokens and max output of 128K tokens. Pricing starts at 1.75 per million input tokens and 14.00 per million output tokens (cheapest at Azure OpenAI).

Capabilities

Vision Function Calling Reasoning JSON Schema System Messages Web Search Prompt Caching Audio Input Audio Output

Specifications

Model Keygpt-5.2-codex
ProviderOpenAI
Provider IDopenai
ModeOther
Canonical Namegpt-5.2-codex
Context Window272K tokens
Max Output128K tokens

Pricing

TypePer 1K TokensPer 1M Tokens
Input Tokens0.00181.75
Output Tokens0.01414.00
Cache Read (Input)0.0001750.175

Benchmarks

Coding Index43.0
GPQA0.9
HLE0.3
IFBench0.8
Time to First Token27.15s
SciCode0.5
LCR0.8
TerminalBench Hard0.4
TAU20.9

Price Comparison by Provider

Compare prices for GPT-5.2-codex across different providers. The same model may be available through multiple providers at different price points.

Provider
Model Key
Input Price, $
Output Price, $
OpenRouteropenrouter/openai/gpt-5.2-codex1.7514.00
OpenAIgpt-5.2-codex1.7514.00
ChatGPTchatgpt/gpt-5.2-codexN/AN/A
Azure OpenAIazure/gpt-5.2-codex1.7514.00

All Variants

All available versions, regions, and API endpoints for GPT-5.2-codex.

Model Key
Provider
Mode
Input Price, $
Output Price, $
Context
Max Output
Vision
Functions
azure/gpt-5.2-codexAzure OpenAIOther1.7514.00272K128Kyesyes
chatgpt/gpt-5.2-codexChatGPTOtherN/AN/A128K128Kyesyes
gpt-5.2-codexOpenAIOther1.7514.00272K128Kyesyes
openrouter/openai/gpt-5.2-codexOpenRouterText1.7514.00272K128Knono