OpenAI 的 GPT-6.2 Astra 和 GPT-6.2 Sol 现已在 AI Gateway 上线。
- GPT-6.2 Astra:适用于复杂的多步骤项目,在现有代码库中实施和测试改动、遵循文档模板以及计算机使用方面均有改进
- GPT-6.2 Sol:适用于日常编码、写作和 agent 工作流,包括根据书面需求说明构建交互式 Web 应用
使用 openai/gpt-6.2-astra 或 openai/gpt-6.2-sol 作为模型 ID。API 示例中,请将 AI_GATEWAY_API_KEY 设置为你的 AI Gateway API key。
import { streamText } from 'ai';
const result = streamText({ model: 'openai/gpt-6.2-sol', prompt: 'Draft a one-page project brief from these meeting notes.',});
两个模型也都支持 Responses API。
为了在更高的每 token 价格下获得更低延迟,两个模型均支持 fast mode 和 OpenAI 的 Ultrafast 服务层级。要请求 Ultrafast,请在 AI SDK 中将 providerOptions.openai.serviceTier 设为 'ultrafast',或在 Chat Completions 和 Responses 请求中将 service_tier 设为 'ultrafast'。
GPT-6.2 Astra 的 Ultrafast 输出 token 价格比 GPT-6 Astra 低 60%。
要在 Codex、Cursor 等编码 agent 中使用这些模型,请安装最新的 Vercel CLI 并运行 setup:
npx vercel ai-gateway setup
然后在 agent 中选择 openai/gpt-6.2-astra 或 openai/gpt-6.2-sol。详情参见 coding agents 指南。
在 playground 中试用 GPT-6.2 Astra 或 GPT-6.2 Sol。