Skip to main content

用途

用于以 Responses 风格发起生成请求,适合已经采用新接口结构的客户端。

请求

  • Method: POST
  • URL: https://alltoken.co/v1/responses
  • Auth: Authorization: Bearer YOUR_API_KEY
  • Content-Type: application/json

最小请求体

{
  "model": "gpt-4.1-mini",
  "input": "请概括 AllTokens 的核心价值。"
}

请求示例

curl https://alltoken.co/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-4.1-mini",
    "input": "请概括 AllTokens 的核心价值。"
  }'

常用字段

  • model: 目标模型名称
  • input: 输入内容
  • stream: 可选,是否流式返回

返回

成功时返回 Responses 风格结果。你可以从输出数组或文本聚合字段中读取最终内容。