LLM Reference

GPT-5.2 Codex

Released
2025-12-18
Last refreshed
2026-06-30
Status
Researched 62d ago
ProprietaryCommercial use: conditionalMultimodalCodingRAGAgentsLong contextVisionJSON / Tool use

GPT-5.2 Codex is worth evaluating for coding, rag, and agents when its provider route and context window match the workload.

Use it for

  • Teams evaluating coding, rag, and agents
  • Workloads that can use a 400k context window
  • Buyers comparing 2 tracked provider routes

Do not use it for

  • Workloads where another current model has stronger sourced task evidence
Specifications
Family
GPT-5
Released
2025-12-18
Context
400k
Max output
128,000
Architecture
Decoder Only
Knowledge cutoff
2025-08
Specialization
code
Openness
Proprietary
License
ProprietaryCommercial use: conditional
Weights
Not released
Code
Unknown
Created by

Cutting-edge research and development.

San Francisco, California, United States
Founded 2015
Website
Pricing
Output / 1M
$14.00
Input / 1M
$1.75

Cheapest of 2 routes · OpenAI API · cache read $0.175

About

GPT-5.2-Codex is OpenAI's agentic coding model built on GPT-5.2, released December 18, 2025. Optimized for long-horizon professional software engineering tasks including large refactors, multi-file changes, and codebase migrations. Features context compaction for handling tasks exceeding a single context window, enhanced vision for interpreting screenshots, diagrams, and UI, and strengthened safeguards for defensive cybersecurity workflows. Available to paid ChatGPT users and via the Responses API.

Top use-case fit: coding, agents, and build tasks

Coding

Q/$ D

2 relevant benchmarks in the decision map.

RAG

Included by capability and metadata signals in the decision map.

Agents

Q/$ D

1 relevant benchmark in the decision map.

Provider price ladder

Compare all 2

Compare API pricing across 2 providers for input and output tokens, batch, and cached reads when available.

ProviderInput / 1MOutput / 1MCacheRoute
OpenAI API$1.75$14.00read $0.175
Serverless
Vercel AI Gateway$1.75$14.00read $0.175
Serverless

Available via routers & gateways(15)

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt Caching

Benchmark peer barsfor Coding

Benchmark scores(3)

Scores are benchmark-specific and are direction-aware: the same numeric gap can mean very different outcomes across suites. Use the leaderboard context and this model's provider route to decide whether the winning margin is meaningful for your workload.
BenchmarkScoreVersionEvaluationSource
SWE-bench Verified72.8SWE-bench Verified; mini-SWE-agent v2.0.0; attempts=1; % resolvedObserved 2026-02-19Source
SWE-bench Pro56.4SWE-Bench Pro Public; OpenAI launch comparison; GPT-5.2-Codex xhighObserved 2025-12-18Source
Terminal-Bench 2.064.0Terminal-Bench 2.0; OpenAI launch comparison; GPT-5.2-Codex xhighObserved 2025-12-18Source

Migration checks

No linked migration route is available for this model yet.

Compare GPT-5.2 Codex with other models

Show all 22 popular comparisonssorted by 7-day search impressions