ModelInfo
English
All models

GPT-5.2-Codex

Our most intelligent coding model optimized for long-horizon, agentic coding tasks.

OpenAIgpt-5.2-codexReport incorrect data

Specs

Context
400K
Max output
128K
Input price
$1.75/ 1M tokens
Output price
$14/ 1M tokens
Released
—

Context

Context window
400K
Max input
272K
Max output
128K

Pricing · USD / 1M tokens

Input
$1.75
Output
$14
Cache read
$0.175
Cache write
—

Modalities

Input
TextImage
Output
Text

API

API types
responses

Reasoning

Reasoning
Yes
Levels
lowmediumhighxhigh

Info

Status
Retired
Released
—
Knowledge cutoff
2025-08-31

Features

Confirmed
toolsstructured_outputstreamingcaching
Source · official docsVerified 2026-10-11

How to call

1 provider

openaimodel = gpt-5.2-codexreasoning = reasoning.effort

responses
POSThttps://api.openai.com/v1/responses

JSON

Standard format
gpt-5.2-codex.json
{
  "id": "gpt-5.2-codex",
  "object": "model",
  "created": null,
  "owned_by": "openai",
  "name": "GPT-5.2-Codex",
  "api": {
    "types": [
      "responses"
    ]
  },
  "limits": {
    "context": 400000,
    "input": 272000,
    "output": 128000
  },
  "modalities": {
    "input": [
      "text",
      "image"
    ],
    "output": [
      "text"
    ]
  },
  "reasoning": {
    "supported": true,
    "efforts": [
      "low",
      "medium",
      "high",
      "xhigh"
    ]
  },
  "pricing": {
    "currency": "USD",
    "unit": "1M_tokens",
    "input": 1.75,
    "output": 14,
    "cache_read": 0.175,
    "cache_write": null
  },
  "features": [
    "tools",
    "structured_output",
    "streaming",
    "caching"
  ],
  "info": {
    "status": "retired",
    "release_date": null,
    "knowledge_cutoff": "2025-08-31",
    "description": "Our most intelligent coding model optimized for long-horizon, agentic coding tasks.",
    "docs": "https://developers.openai.com/api/docs/models/gpt-5.2-codex",
    "verified_at": "2026-10-11"
  }
}

Official sources

2