接口提示
gpt-6.1-terra 仅在 reasoning_effort 为 none 时支持 temperature 和 top_p
gpt-6.1-terra 的工具调用需要使用 Responses API
认证
authorization string 必需
所有 API 均使用 Bearer Token 鉴权
获取 API Key:
访问 API Key 管理页面 获取 API Key
用法:
将以下 Header 添加到请求中:
Authorization: Bearer YOUR_API_KEY
参数
model string 必需
请求使用的模型 ID
值: gpt-6.1-terra
messages array 必需
消息对象数组
role
string必需消息角色
可选值:
user,assistant,system,developer
content
string/array必需文本字符串或包含文本和图片内容部分的数组
max_tokens integer
生成的最大 token 数
范围: 1-128000
reasoning_effort string
控制生成响应时使用的推理量
可选值:none, low, medium, high, xhigh, max
默认值:medium
temperature number
采样温度
范围: 0.0-2.0
默认值: 1.0
top_p number
核采样参数
范围: 0.0-1.0
默认值: 1.0
stream boolean
增量流式响应
可选值: true, false
默认值: false
响应格式
id string
完成的唯一标识符
object string
对象类型, 始终为 chat.completion
created integer
创建时间的 Unix 时间戳
model string
用于完成的模型
choices array
完成选择数组
index
integer选择索引
message
object生成的消息
role
string消息角色(始终为
assistant)content
string生成的文本内容
finish_reason
string完成终止的原因
usage object
token 使用统计
prompt_tokens
integer提示词中的 token 数
completion_tokens
integer完成中的 token 数
total_tokens
integer使用的总 token 数