GPT-5.2 Codex is OpenAI's language model with a 400K context window and up to 128K output tokens, available from 4 providers, starting at $1.75 / 1M input and $14.00 / 1M output. A GPT-5.2 variant optimized for agentic coding in Codex environments, supporting low through xhigh reasoning effort settings.
| Benchmarks | |
|---|---|
| Intelligence Index | #92 |
| GPQA | #44 |
| HLE | #63 |
| IFBench | #16 |
| Time to First Token | #580 |
| SciCode | #31 |
| LCR | #28 |
| TerminalBench Hard | #55 |
| TAU2 | #55 |
| Output TPS | #101 |
Capabilities
Input3/5
Text✓
Image✓
Audio·
Video·
PDF✓
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities7/13
Reasoning✓
Adaptive Reasoning·
Function Calling✓
Parallel Function Calling✓
Structured Outputs✓
Native JSON Schema✓
Web Search✓
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching✓
Assistant Prefill·
Pricing by Provider
US Dollar ($)
Per 1M tokens
| Provider | Standard | |||
|---|---|---|---|---|
| Input $ / 1M | Output $ / 1M | Cache Read $ / 1M | Web Search $ / request | |
| $1.93 | $15.40 | $0.193 | N/A | |
| $1.75 | $14.00 | $0.175 | N/A | |
| $1.75 | $14.00 | $0.175 | N/A | |
| $1.75 | $14.00 | $0.175 | $0.010 | |
| $1.75 | $14.00 | $0.175 | N/A | |
Cost Calculator
US Dollar ($)
Preset:
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| GPT-6.1 Sol | 1.1M | $2.00 | $10.00 | Available | |
| GPT-6 Sol | 1.1M | $2.00 | $10.00 | Available | |
| GPT-6 Luna | 1.1M | $0.100 | $0.500 | Available | |
| GPT-6 Astra | 1.1M | $10.00 | $50.00 | Available | |
| GPT-5.6 Sol | 1.1M | $4.00 | $20.00 | Available | |
| GPT-5.6 Terra | 1.1M | $2.00 | $12.00 | Available | |
| GPT-5.6 Luna | 1.1M | $0.200 | $1.20 | Available | |
| GPT-5.5 | 1.1M | $5.00 | $30.00 | Available | |
| GPT-5.4 Mini | 400K | $0.750 | $4.50 | Available | |
| GPT-5.4 Nano | 400K | $0.200 | $1.25 | Deprecating | |
| GPT-5.2 Codex | 400K | $1.75 | $14.00 | Current |