OpenAI

OpenAI: GPT-5.2 Codex

Chat
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. The model supports building projects from scratch, feature development, debugging, large-scale refactoring, and code review. Compared to GPT-5.1-Codex, 5.2-Codex is more steerable, adheres closely to developer instructions, and produces cleaner, higher-quality code outputs. Reasoning effort can be adjusted with the reasoning.effort parameter.

上下文窗口
512K
最大输出 Token
128K
发布日期
2026-01-14
能力
视觉函数调用推理提示缓存网络搜索音频输入视频输入
可用供应商
AzureAzure
支持的协议
OpenAIopenai

供应商

AzureAzure
输入 Token
$1.75/M
输出 Token
$14/M
缓存读取
$0.18/M
网络搜索
$0.01/R
接入协议
OpenAIopenai/v1/chat/completions/v1/responses

代码示例

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.io/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-5.2-codex",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

常见问题

OpenAI: GPT-5.2 Codex 在 Ofox.ai 上的价格为输入 $1.75/M/百万 Token,输出 $14/M/百万 Token。按量计费,无月费。