gpt-6.2-astra

别名GPT-6.2 Astra
由 OpenAI 提供文本

GPT-6.2 Astra 面向复杂开发、推理和专业工作。可以对照 Chat Completions 与 Responses 的用法,token 费率为官方价的 80%。

更新于:
输入文本和图像以模型支持为准
输出文本推理模型
返回方式同步或流式流式输出可选
价格优惠 20%官方价
gpt-6.2-astra对话示例
你

Review a TypeScript webhook handler for reliability risks and propose the highest-value fixes. Keep the answer practical for a gpt-6.2-astra integration.

gpt-6.2-astra 标志
gpt-6.2-astra

Verify signatures against the raw body, reject stale events, deduplicate by event ID, acknowledge quickly, and move slow work to a retried background queue. This example is tailored to the gpt-6.2-astra model page.

生成示例

请求与回复示例

01 · 代码审查gpt-6.2-astra
你

Review a TypeScript webhook handler for reliability risks and propose the highest-value fixes. Keep the answer practical for a gpt-6.2-astra integration.

gpt-6.2-astra 标志
gpt-6.2-astra

Verify signatures against the raw body, reject stale events, deduplicate by event ID, acknowledge quickly, and move slow work to a retried background queue. This example is tailored to the gpt-6.2-astra model page.

02 · 查询设计gpt-6.2-astra
你

Explain how to choose indexes for a job table filtered by owner, status, and creation time. Keep the answer practical for a gpt-6.2-astra integration.

gpt-6.2-astra 标志
gpt-6.2-astra

Begin from the most common filter order, use a composite index that supports the leading predicates, measure the actual query plan, and retain a simple retention strategy for old rows. This example is tailored to the gpt-6.2-astra model page.

03 · 产品简报gpt-6.2-astra
你

Summarize a product brief for a developer API in five concise bullets. Keep the answer practical for a gpt-6.2-astra integration.

gpt-6.2-astra 标志
gpt-6.2-astra

Cover the customer problem, primary workflow, integration surface, pricing or quota rule, and the measurable outcome that defines adoption. This example is tailored to the gpt-6.2-astra model page.

模型能力

gpt-6.2-astra 能做什么

适用任务

适合复杂开发、推理和专业工作。用自己的代表性任务比较效果。

Chat Completions

按文档传入 model、messages 和 stream。GPT-6.2 请求中省略 temperature、top_p 及对数概率控制字段。

Responses 请求

需要模型支持的工具或会话状态时使用 Responses。请按具体模型核对通用接口中的参数支持情况。

推理和缓存

GPT-6.2 要求启用推理。复用稳定的提示词前缀有助于命中缓存,具体缓存和计费规则请按模型确认。

计费

按 token 计费

支持的文本模型共用 API 密钥和账户余额。

GPT-6.2 Astra token 计费官方定价
计费项TTAPI / 1MOfficial / 1M
输入$6.4$8
缓存写入 · 30 分钟$8$10
缓存写入 · 12 小时$16$20
缓存输入$0.32$0.4
输出$32$40
API 请求

按操作查看请求

选择一个操作,查看对应接口和请求字段。

ChatGPT

Chat Completions

兼容聊天的文本请求。GPT-6.2 的工具调用需走 Responses,请省略不受支持的采样和对数概率字段。

POSThttps://api.ttapi.io/v1/chat/completions

请求头

Authorizationstring必填

使用 TTAPI API 密钥作为 Bearer token。

Content-Typestring必填

使用 application/json。

请求体

messagesobject[]必填

OpenAI 兼容格式的对话消息。例如 [{ role: "user", content: "Hello!" }]。

modelstring必填

使用 gpt-6.2-astra。

streamboolean选填

通过服务端发送事件逐步返回响应,默认 false。

查看当前渠道的接入文档
接入示例

查看选中渠道的代码示例

选择渠道和操作,再复制相应的接口地址、请求体或代码示例。

ChatGPT

Chat Completions 接入示例

POST https://api.ttapi.io/v1/chat/completions

curl --request POST \
  --url https://api.ttapi.io/v1/chat/completions \
  --header "Authorization: Bearer $TTAPI_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"model":"gpt-6.2-astra","messages":[{"role":"user","content":"Review this migration plan and identify three risks with an acceptance check for each."}],"stream":false}'