ModelInfo
简体中文
全部模型

GPT-5.2-Codex

我们最智能的编码模型,针对长周期智能体编码任务优化。

OpenAIgpt-5.2-codex报告数据错误

规格

上下文
400K
最大输出
128K
输入价
$1.75/ 百万 Token
输出价
$14/ 百万 Token
发布日期
—

上下文

上下文
400K
最大输入
272K
最大输出
128K

价格 · USD / 百万 Token

输入
$1.75
输出
$14
缓存读取
$0.175
缓存写入
—

输入输出

输入
文本图像
输出
文本

API

接口类型
responses

思考

支持思考
支持
思考等级
lowmediumhighxhigh

源信息

状态
已下线
发布日期
—
知识截止
2025-08-31

能力

已确认
toolsstructured_outputstreamingcaching
来源 · 官方文档核验 2026-10-11

调用方式

1 个 Provider

openaimodel = gpt-5.2-codexreasoning = reasoning.effort

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

JSON

标准格式
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"
  }
}

官方来源

2