快速结论

  • 支持 Chat Completions 接入,便于快速迁移现有 SDK。
  • 支持流式输出与工具调用,适合 Agent 场景。
  • 建议先收敛 system/messages 参数,再进入生产环境。

关键参数

  • model | string | 必填 | gpt-6-astra | - | 模型标识,使用 ToAPIs 真值。
  • messages | object[] | 必填 | - | - | 按时间顺序组织的对话消息。
  • max_tokens | integer | 必填 | - | >=1 | 最大输出 token 数。
  • stream | boolean | 可选 | false | - | 是否启用流式返回。
  • tools | object[] | 可选 | - | - | 函数调用定义集合。

常见错误

  • 400 invalid_request_error: 触发=请求体字段缺失或类型错误。; 修复=校验 model/messages/max_tokens 参数。; 重试=修复参数后重试。
  • 401 authentication_error: 触发=API Key 缺失或无效。; 修复=检查 Authorization 头与密钥权限。; 重试=修复鉴权后重试。

gpt-6-astra

gpt-6-astra 由 OpenAI 提供,适用于通用对话、推理与工具调用工作流。该页面聚焦 ToAPIs 契约下的接入路径与生产参数实践。

模型类型:
价格: Input 400 积分/1M, Output 2,000 积分/1M
输入消息开始测试模型。

透明计价

gpt-6-astra 价格

Text usage is billed by actual token consumption. Final billing follows the current account quote.

充值积分
Input 400 积分/1M, Output 2,000 积分/1M

为什么选择 ToAPIs

Why call gpt-6-astra through ToAPIs?

Keep model access, API keys, billing, and usage management in one workflow.

通用对话与推理

支持多轮上下文理解与结构化输出。

流式响应

支持 SSE 增量输出,适合实时交互体验。

工具调用

可结合 tools 编排检索、执行与自动化流程。

Connect in three steps

Create a key, send a compatible chat request, and monitor usage.

  1. 1

    Step 1

    设置 Authorization: Bearer <YOUR_API_KEY>。

  2. 2

    Step 2

    调用聊天接口并传入 model、messages、max_tokens。

  3. 3

    Step 3

    按需开启 stream 或配置 tools。

When to use gpt-6-astra

Use case 1

需要代码助手、问答助手、流程自动化 Agent 时。

Use case 2

需要流式输出和函数调用能力时。

常见问题

gpt-6-astra FAQ

gpt-6-astra 适合哪些任务?

适合对话、推理、代码与工具调用等通用 AI 助手场景。

gpt-6-astra API

Start building with gpt-6-astra

Test a request here, then continue in the dashboard or API documentation.

Try gpt-6-astra with one ToAPIs key.

Use the same account and API surface across supported text models.

Sign up to get free credits