GPT-5.2-Codex
Pricing & Specs

OpenAI · $1.75 input / $14 output per 1M tokens · 400K context window

No longer offered on OpenMark

$1.75
per 1M input tokens
$14
per 1M output tokens
400K
context window (tokens)

GPT-5.2-Codex is no longer offered on OpenMark (deprecated or superseded upstream). Its specs are kept here for reference — if you're still running it in production, it's worth benchmarking current alternatives: newer models are often cheaper AND better on the same task.

GPT-5.2-Codex API Pricing

TokensPrice
Input$1.75 / 1M tokens
Output$14 / 1M tokens
Cached input$0.175 / 1M tokens

Cached input tokens are billed when caching is enabled.

What that means in practice

1x One typical task (1K input + 500 output tokens): $0.0088
1K 1,000 runs of that task: $8.75
💡 Real cost depends on how verbose the model is on YOUR prompts — benchmark to measure actual tokens, not estimates.

GPT-5.2-Codex Specs

SpecValue
Context window400K tokens
Max input per request272K tokens
Max output tokens128K tokens
Input modalitiestext, image
Output modalitiestext
Knowledge cutoffAugust 31st 2025
Latency (measured by OpenMark)~914ms median response
Reasoning modelYes
Tool / function callingYes
JSON modeYes
StreamingYes
Prompt cachingYes
Batch APINo

Notes

Shut down July 23, 2026. Shutdown July 23, 2026.

FAQ

How much does GPT-5.2-Codex cost?

GPT-5.2-Codex costs $1.75 per 1M input tokens and $14 per 1M output tokens ($0.175 per 1M cached input tokens).

What is GPT-5.2-Codex's context window?

GPT-5.2-Codex has a 400K-token context window. Maximum output is 128K tokens.

Can I test GPT-5.2-Codex on my own task?

GPT-5.2-Codex is no longer offered on OpenMark, but you can benchmark its current alternatives from OpenAI and other providers on your own task — free tier available.

Still using GPT-5.2-Codex?

It's been superseded. Benchmark its current alternatives on your actual
workload — you'll likely find something cheaper AND better. Free tier available.

Test Current Alternatives — Free →