OpenAIReleased on Jan 14, 2026

GPT-5.2 Codex: API Pricing, Context Window & Benchmarks

GPT-5.2 Codex is a language model from OpenAI, released in January 2026, with multimodal input, a 400K-token context window, and pricing from $1.75/M input and $14.00/M output.

GPT-5.2 Codex is a version of GPT-5.2 optimized for agentic coding tasks in Codex or similar environments. It features higher reasoning capabilities and is available in the Responses API. The underlying model snapshot is regularly updated.

Input
TextImage
Output
Text

GPT-5.2 Codex benchmarks

Rankings

Quality Tracker

GPT-5.2 Codex Performance Across Datasets

Scores sourced from the model's scorecard, paper, or official blog posts

LLM Stats Logollm-stats.com - Sat Jul 18 2026
Notice missing or incorrect data?

GPT-5.2 Codex pricing

Providers

GPT-5.2 Codex starts at $1.75 per million input tokens and $14.00 per million output tokens via OpenAI.

ProviderInput $/MOutput $/MWorkload 1M + 100KContext in / outTTFT p50 / p95 sOutput avg / p5 c/sSuccess 7dModalities in / out
OpenAI logoOpenAI
$1.75$14.00$3.15400.0K/128.0K
1.44/3.60
317/80
100.00%(15)
/

Workload cost uses 1M input tokens plus 100K output tokens at published list prices without assuming a cache hit. Cached input is the discounted price for prompt tokens served from a provider cache. TTFT is time to first token. Output is characters per second; p5 is the sustained floor exceeded by 95% of observed requests. Success is calculated from completed versus failed requests over the trailing seven days.

GPT-5.2 Codex context window

Input and output token limits for GPT-5.2 Codex, plus how it ranks on long-context understanding.

InputOutput
400Ktokens
128Ktokens
602 pages of text
400K
8K128K1M

GPT-5.2 Codex API

POST/v1/chat/completions

Run a request to see the response

Use it in your code

Billed at $1.75 input / $14.00 output per 1M tokens through the LLM Stats gateway.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://gateway.llm-stats.com/v1"
)

response = client.chat.completions.create(
    model="gpt-5.2-codex",
    messages=[
        {"role": "user", "content": "What is machine learning?"}
    ]
)

print(response.choices[0].message.content)

Need an API key? Create one above in the playground, or read the API documentation.

GPT-5.2 Codex latency

GPT-5.2 Codex time to first token, sustained output throughput, and failed-request rate from live API traffic over the trailing 7 days.

Provider operational metrics

Time to first token, output throughput, and failed-request rate from live API traffic

Loading chart...
Loading chart...
Loading chart...

GPT-5.2 Codex examples

Recent arena outputs from GPT-5.2 Codex, picked from the highest-ranked matchups.

GPT-5.2 Codex license

GPT-5.2 Codex is a proprietary model available under its provider's product and API terms.

License
Proprietary
Hosted access

Proprietary license - usage restrictions apply

GPT-5.2 Codex resources

Official sources for GPT-5.2 Codex: api documentation.

GPT-5.2 Codex vs other models

The most-compared alternatives to GPT-5.2 Codex are Claude Opus 4.6, GPT-5.2, Qwen3 30B A3B. Open any pair side-by-side for benchmarks, pricing, context, and latency.

Models like GPT-5.2 Codex

Models ranked just above and below GPT-5.2 Codex by LLM Stats score.

 

Claude Opus 4.6

Score pending
 

GPT-5.2

Score pending
 

Qwen3 30B A3B

Score pending
 

Qwen3.7 Max

Score pending
 

GPT-5.3 Codex

Score pending
 

MiMo-V2.5

Score pending

FAQ

Common questions about GPT-5.2 Codex.

When was GPT-5.2 Codex released?

GPT-5.2 Codex was released on January 14, 2026 by OpenAI. This is the official GPT-5.2 Codex release date tracked on LLM Stats.

How much does GPT-5.2 Codex cost?

GPT-5.2 Codex costs $1.75 per million input tokens and $14.00 per million output tokens through the LLM Stats API, which works with any OpenAI-compatible SDK. Across tracked providers, the lowest price is $1.75 per million input tokens via OpenAI.

Is GPT-5.2 Codex available via API?

Yes. GPT-5.2 Codex is available through the LLM Stats API and works with any OpenAI-compatible SDK — point your client at the gateway base URL and pass the model name. It is served by 1 provider tracked on LLM Stats.

Who created GPT-5.2 Codex?

GPT-5.2 Codex was created by OpenAI.

What is the license for GPT-5.2 Codex?

GPT-5.2 Codex is released under the Proprietary license.

Is GPT-5.2 Codex multimodal?

Yes, GPT-5.2 Codex is multimodal and can accept both text and images as input.

What is GPT-5.2 Codex latency?

GPT-5.2 Codex p95 time to first token is 3.60 seconds via OpenAI over the trailing 7 days. Lower time to first token means the model begins responding sooner for chat, agents and API workloads.

Where can I use GPT-5.2 Codex?

GPT-5.2 Codex is available through 1 provider including OpenAI.

What models should I compare GPT-5.2 Codex against?

Common GPT-5.2 Codex comparisons include GPT-5.2 Codex vs Claude Opus 4.6, GPT-5.2 Codex vs GPT-5.2, GPT-5.2 Codex vs Qwen3 30B A3B. Compare them side by side for benchmark scores, pricing, context window, latency and API availability.