OpenAI

OpenAI: GPT-5.2 Codex

Chat85 折
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 最大輸出 token
發布日期: 2026-01-14
支援的協定:OpenAIopenai
可用供應商:AzureAzure
能力:視覺函式呼叫推理提示快取網路搜尋音訊輸入影片輸入

供应商

AzureAzure
85 折
輸入 Token
$1.49/M
$1.75/M
輸出 Token
$11.9/M
$14/M
快取讀取
$0.153/M
$0.18/M
網路搜尋
$0.01/R
接入协议
OpenAIopenai/v1/chat/completions/v1/responses

程式碼範例

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/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。按量計費,無月費。