- Organizations
- OpenAI
- GPT-5.2 Codex
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.
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
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.
| Provider | Input $/M | Output $/M | Workload 1M + 100K | Context in / out | TTFT p50 / p95 s | Output avg / p5 c/s | Success 7d | Modalities in / out |
|---|---|---|---|---|---|---|---|---|
| $1.75 | $14.00 | $3.15 | 400.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.
GPT-5.2 Codex API
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
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.
FAQ
Common questions about GPT-5.2 Codex.