openai logo
openai

OpenAI: GPT-5.2-Codex

来源介绍(英文)

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....

模型概览

模型规格

上下文
400,000 tokens
最大输出
128,000 tokens
架构
text+image->text
分词器
GPT
知识截止时间
暂未提供
内容审核
OPENROUTER

完整价格

同步自 OpenRouter。Token 价格均按每百万 Token 展示。

输入
$1.75
每百万 Token
输出
$14
每百万 Token
缓存读取
$0.175
每百万 Token
API

模型配置

推理能力

是否必须推理
默认参数
medium
能力与模态
xhigh, high, medium, low
API

快速调用

在本地设置 OPENROUTER_API_KEY。Python 需安装 requests;JavaScript 在 Node.js 中运行。密钥应保存在服务端。

API 文档

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-5.2-codex","messages":[{"role":"user","content":"Hello!"}]}'
能力与模态

输入输出

输入
textimage
输出
text
推理能力

· xhigh · high · medium · low

API

支持的 API 参数

include_reasoningmax_completion_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetools
可用提供方

1 提供方

核验日期: 2026年9月7日

在 OpenRouter 查看实时 Provider

Provider 可用性、延迟、吞吐量和路由会持续变化,请前往来源页面查看实时运行数据。

OpenRouter

Azure

暂未提供
上下文
400K
最大输出
128K
输入
$1.75
输出
$14
缓存读取
$0.175
缓存写入
暂未提供
openai

4 个模型

全部模型
openai logoopenai

OpenAI: GPT-6 Luna Pro

GPT-6 Luna Pro is the same underlying model as GPT-6 Luna, served with reasoning.mode set to pro for higher-quality responses on complex tasks. Learn more in OpenAI's docs: https://developers.openai.com/api/docs/guides/reasoning#reasoning-mode

上下文
1.1M
输入
file · image · text
输出
text
输入: $0.1输出: $0.5每百万 Token
查看模型详情
openai logoopenai

OpenAI: GPT-6 Luna Pro (batch)

GPT-6 Luna Pro is the same underlying model as GPT-6 Luna, served with reasoning.mode set to pro for higher-quality responses on complex tasks. Learn more in OpenAI's docs: https://developers.openai.com/api/docs/guides/reasoning#reasoning-mode

上下文
1.1M
输入
file · image · text
输出
text
输入: $0.05输出: $0.25每百万 Token
查看模型详情
openai logoopenai

OpenAI: GPT-6 Luna

GPT-6 Luna is the fast, cost-efficient model in OpenAI's GPT-6 series, positioned below GPT-6 Sol. It is suited for high-volume and latency-sensitive workloads such as chat, classification, and lightweight agentic...

上下文
1.1M
输入
file · image · text
输出
text
输入: $0.1输出: $0.5每百万 Token
查看模型详情
openai logoopenai

OpenAI: GPT-6 Luna (batch)

GPT-6 Luna is the fast, cost-efficient model in OpenAI's GPT-6 series, positioned below GPT-6 Sol. It is suited for high-volume and latency-sensitive workloads such as chat, classification, and lightweight agentic...

上下文
1.1M
输入
file · image · text
输出
text
输入: $0.05输出: $0.25每百万 Token
查看模型详情