OpenAI: GPT-5.2 Codex
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
最大输出
128K
输入
$1.75/M
输出
$14.00/M
PROVIDER · SELL PRICE
公开卖价
输入 /M
$1.75/M
输出 /M
$14.00/M
媒体 /秒
—
图像
—
不展示上游成本。客户账只看卖价。
ROUTING RECEIPT
可解释路径(示意)
openai/gpt-5.2-codex
→ published sell_price
→ attempt 1 provider whitelist
→ customer ledger one charge
真实 attempt 在登录后的用户台查看;此处不伪造 Playground 对话。
PLAYGROUND
试用 OpenAI: GPT-5.2 Codex
对话不会被保存——离开或刷新页面后即清空。
代码示例(固定)
curl http://localhost:8080/v1/chat/completions \
-H "Authorization: Bearer sk-...xxxx" \
-H "Content-Type: application/json" \
-d '{"model":"openai/gpt-5.2-codex","messages":[{"role":"user","content":"hello"}]}'常见问题
在 TokenHub 上使用 OpenAI: GPT-5.2 Codex 需要多少钱?
公开卖价:输入 $1.75/M,输出 $14.00/M。以价目页实时数字为准。
OpenAI: GPT-5.2 Codex 的上下文窗口是多少?
上下文 512K,最大输出 128K。
如何调用 OpenAI: GPT-5.2 Codex?
注册拿 Key,把 base URL 换成品牌 API 域名,model 字段填 openai/gpt-5.2-codex。
支持哪些能力?
温度 · caps.top_p · caps.stop · 函数 · JSON · 推理