openai/gpt-5.2-codexClosed APICode-specialist GPT for repository edits, reviews, and long-running software agents
Benchmark Pricing$0.14 / 1M in$1.14 / 1M out
Context: 400,000 tokens•Max Output: 128,000 tokens•Knowledge: 2025-08-31•Released: 2025-12-11
TECHNICAL SPECIFICATIONS
Context Window400,000400K tokens
Max Output128,000128K tokens
LicenseProprietaryCloud API only
Input Modalities
TextVisionPDF
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema
MODEL CONTEXT PROTOCOL (MCP) READINESS
✓ GPT-5.2 Codex natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.
MCP Context Window Recommendations
With a context capacity of 400,000 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.
STANDARDIZED BENCHMARKS & EVALS
SWE-Bench Proresolve rate
41.04API CALL INVOCATION EXAMPLE
// Example: Calling GPT-5.2 Codex via OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
const response = await client.chat.completions.create({
model: "openai/gpt-5.2-codex",
messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});
console.log(response.choices[0].message.content);PRICING BY PROVIDER
QiHanggpt-5.2-codex
$0.14 / $1.14
NanoGPTopenai/gpt-5.2-codex
$1.75 / $14.00$0.17 cache
Vivgridgpt-5.2-codex
$1.75 / $14.00$0.17 cache
LLM Gatewayazure/gpt-5.2-codex
$1.75 / $14.00$0.17 cache
Poeopenai/gpt-5.2-codex
$1.60 / $13.00$0.16 cache
AIHubMixgpt-5.2-codex
$1.75 / $14.00$0.17 cache
Abacusgpt-5.2-codex
$1.75 / $14.00$0.17 cache
Vercel AI Gatewayopenai/gpt-5.2-codex
$1.75 / $14.00$0.17 cache
OpenCodegpt-5.2-codex
$1.75 / $14.00$0.17 cache
Eden AIazure/gpt-5.2-codex
$1.75 / $14.00$0.17 cache
Ofoxopenai/gpt-5.2-codex
$1.75 / $14.00$0.18 cache
Azure Cognitive Servicesgpt-5.2-codex
$1.75 / $14.00$0.17 cache
Kilo Gatewayopenai/gpt-5.2-codex
$1.75 / $14.00$0.17 cache
ZenMuxopenai/gpt-5.2-codex
$1.75 / $14.00$0.17 cache
DevPass (LLM Gateway)gpt-5.2-codex
$1.75 / $14.00$0.17 cache
Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.
MODEL RESOURCES
More Models by OpenAI
Alternative and family models from the same lab
GPT-5.6 Sol
openai/gpt-5.6-sol•OpenAI
Frontier GPT-5.6 model for complex professional work, coding, and agentic workflows
128K out maxVisionPDFSWE-Bench Pro: 64.6 resolve rate
In: $4.00 • Out: $20.00
OpenAIGPT-5.4 Pro
openai/gpt-5.4-pro•OpenAI
More exact GPT-5.4 tier for demanding professional reasoning and agent tasks
128K out maxVisionGPQA Diamond: 94.4 accuracy
In: $30.00 • Out: $180.00
OpenAIGPT-5.6 Terra
openai/gpt-5.6-terra•OpenAI
Balanced GPT-5.6 model for capable, cost-efficient everyday work
128K out maxVisionPDFSWE-Bench Pro: 63.4 resolve rate
In: $2.00 • Out: $12.00
OpenAI