OpenAI: GPT-5.2-Codex

Text input Image input Text output
Author's Description

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

Key Specifications
Cost
$$$$$
Context
400K
Released
Jan 14, 2026
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

Tools Tool Choice Include Reasoning Reasoning Seed Max Tokens Structured Outputs Response Format
Features

This model supports the following features:

Structured Outputs Reasoning Response Format Tools
Performance Summary

OpenAI's GPT-5.2-Codex, released on January 14, 2026, is a highly specialized AI model designed for advanced software engineering tasks. It performs among the fastest models, typically ranking in the top tier for speed (61st percentile across 8 benchmarks). The model offers competitive pricing, generally falling into the moderate range (24th percentile across 8 benchmarks). Notably, GPT-5.2-Codex demonstrates exceptional reliability, achieving a perfect 100% success rate across all evaluated benchmarks, indicating consistent and stable operation. The model exhibits strong performance across various benchmark categories. It achieved perfect accuracy in Hallucinations, General Knowledge, and Ethics, highlighting its robust factual grounding and ethical reasoning. Its core strength in coding is evident with a 94.0% accuracy, placing it in the 87th percentile. Furthermore, it excels in Instruction Following (89.0% accuracy, 95th percentile), Reasoning (96.0% accuracy, 83rd percentile), and Mathematics (95.0% accuracy, 87th percentile), showcasing its advanced problem-solving capabilities. While its Email Classification accuracy (98.0%) is solid, it ranks in the 56th percentile, suggesting some room for improvement compared to top performers in that specific task. Its key strengths lie in its high accuracy across complex cognitive tasks, particularly in coding, reasoning, and instruction adherence, coupled with its outstanding reliability. No significant weaknesses were identified beyond its relative ranking in email classification.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $1.75
Completion $14
Input Cache Read $0.175
Web Search $10000

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
OpenAI
OpenAI | openai/gpt-5.2-codex-20260114 400K $1.75 / 1M tokens $14 / 1M tokens
Azure
Azure | openai/gpt-5.2-codex-20260114 400K $1.75 / 1M tokens $14 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Strategy Free Executions Accuracy Cost Duration
Other Models by openai