模型广场
企业
订阅
资源
控制台

openai/gpt-5.2-pro

OpenAI

OpenAI: gpt-5.2-pro

GPT-5.2 pro is available only in the Responses API to support multi-turn model interactions and other advanced API features before responding to API requests. Because GPT-5.2 pro is designed to solve difficult problems, some requests may take several minutes to complete.

模式image、text、file → text
输入价格
输出价格
上下文长度400K tokens
周消耗
上架时间2025-12-11T00:00:00Z

OpenAI

延迟
吞吐量
上传速率
上下文长度400K tokens
最大输出128K tokens
上传价格每百万
输出价格每百万
缓存读取每百万
缓存写入每百万

性能统计

平均TPS
平均延迟
平均成功率
TPS
TTFT
延迟
成功率

成功率

速度

代码示例

curl ${API_BASE_URL}/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.2-pro",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'

将 <YOUR_API_KEY> 替换为你在令牌管理页面生成的 API Key。

认证方式

所有请求必须携带 Authorization: Bearer <TOKEN> 请求头。

接口路径

POST
openai

支持的参数

参数类型默认值说明
boolean-Deprecated alias for reasoning.exclude. When true, reasoning tokens are returned in the response when supported by the model.
integer-This sets the upper limit for the number of tokens the model can generate in response. It won't produce more than this limit. The maximum value is the context length minus the prompt length.
map-Controls reasoning behavior for models that support thinking tokens, including whether reasoning is enabled, the reasoning effort, maximum reasoning tokens, and whether reasoning is excluded from the response.
map-Forces the model to produce specific output format. Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON. **Note**: when using JSON mode, you should also instruct the model to produce JSON yourself via a system or user message.
integer-If specified, the inferencing will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for some models.
boolean-If the model can return structured outputs using response\_format json\_schema.
string or object-Controls which (if any) tool is called by the model. 'none' means the model will not call any tool and instead generates a message. 'auto' means the model can pick between generating a message or calling one or more tools. 'required' means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
array-Tool calling parameter, following OpenAI's tool calling request shape. For non-OpenAI providers, it will be transformed accordingly. [Click here to learn more about tool calling](/docs/guides/features/tool-calling)

速率限制

分组RPMTPMRPD

RPM = 每分钟请求数,TPM = 每分钟 Token 数,RPD = 每天请求数。限制按令牌分组生效。

价格

分组计费类型价格摘要