1. 对话接口
doc.ai.360.com
  • 快速开始
  • 文本生成
    • 对话接口
      • chat/completions(OpenAI格式)
        POST
      • messages(Claude格式)
        POST
      • Responses API(OpenAI格式)
        POST
    • tools工具箱
      • 搜索增强
      • 模板调用
      • 技能分发
      • 网页分析
      • 知识库增强
      • 知识库增强-模板调用
  • 图片生成
    • 生成图片
      POST
  • 图片编辑
    • 图片编辑
      POST
  • 视频生成
    • 创建视频生成
      POST
    • 创建视频生成(vidu)
      POST
    • 创建视频生成(kling)
      POST
    • 查询视频生成状态
      GET
  • 音频生成
    • 音频生成
      POST
  • 知识库
    • 产品介绍
    • 创建知识库
      POST
    • 获取知识库列表
      GET
    • 指定知识库获取文档列表
      GET
    • 上传文档
      POST
    • 获取文档状态
      GET
    • 检索知识库
      POST
  • AI翻译
    • 产品介绍
      • 文本翻译介绍
      • 图片翻译介绍
      • 文档翻译介绍
      • 错误码说明
    • 文本翻译
      POST
    • 图片翻译
      POST
    • 文档翻译-创建任务(异步)
      POST
    • 文档翻译-获取结果
      GET
  • 记忆库
    • 产品介绍
    • 添加记忆
    • 获取记忆结果
    • 检索记忆
    • 获取记忆列表
    • 删除全部记忆
    • 删除单条记忆
  • web搜索
    • 360智搜-基础版(SR)
    • 360智搜-进阶版(PRO)
    • 360智搜-极致版(MAX)
    • 360智搜-新闻
    • 360智搜-精品内容库
    • 360智搜-文搜图
    • 360智搜-图搜图
    • 360智搜-AI搜索
  • AI安全
    • 文本风险检测
    • 图片风险检测
    • 音频风险检测
    • 视频风险检测
    • 查询视频风险检测任务结果
  • 文档解析
    • 文档上传
    • 获取内容
  • 其他
    • 向量
      • 向量生成
    • 模型
      • 模型列表
      • 模型详情
    • 语义相似度
      • 相似度计算
    • 第三方工具配置
      • Claude Code + cc-switch快速配置
  • 数据模型
    • Responses API
      • ResponseInputText
      • ResponseInputImage
      • ResponseInputFile
      • ResponseError
      • ResponseConversationParam
      • ResponseIncludable
      • ResponseInputMessageContentList
      • EasyInputMessage
      • ToolChoiceTypes
      • ToolChoiceOptions
      • ToolChoiceMcp
      • ToolChoiceFunction
      • ToolChoiceCustom
      • ToolChoiceApplyPatch
      • ToolChoiceAllowed
      • Message
      • FileCitation
      • ContainerFileCitation
      • URLCitation
      • ToolChoiceShell
      • FilePath
      • ResponseOutputText
      • ResponseOutputRefusal
      • ResponseOutputMessage
    • ErrorResponse
  1. 对话接口

Responses API(OpenAI格式)

开发中
POST
/v1/responses
OpenAI 最先进的模型响应生成接口。支持文本和图像输入,以及文本输出。通过将先前响应的输出作为输入,与模型建立具有状态的交互。利用内置的文件搜索、网络搜索、计算机操作等工具,扩展模型的功能。通过函数调用,允许模型访问外部系统和数据。

请求参数

Header 参数

Body 参数application/json必填

示例
{
    "model": "gpt-5.4",
    "input": "Tell me a three sentence bedtime story about a unicorn."
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://api.360.cn/v1/responses' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gpt-5.4",
    "input": "Tell me a three sentence bedtime story about a unicorn."
}'

返回响应

🟢200成功
application/json
Body

示例
{
  "id": "resp_67ccd2bed1ec8190b14f964abc0542670bb6a6b452d3795b",
  "object": "response",
  "created_at": 1741476542,
  "status": "completed",
  "completed_at": 1741476543,
  "error": null,
  "incomplete_details": null,
  "instructions": null,
  "max_output_tokens": null,
  "model": "gpt-5.4",
  "output": [
    {
      "type": "message",
      "id": "msg_67ccd2bf17f0819081ff3bb2cf6508e60bb6a6b452d3795b",
      "status": "completed",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "In a peaceful grove beneath a silver moon, a unicorn named Lumina discovered a hidden pool that reflected the stars. As she dipped her horn into the water, the pool began to shimmer, revealing a pathway to a magical realm of endless night skies. Filled with wonder, Lumina whispered a wish for all who dream to find their own hidden magic, and as she glanced back, her hoofprints sparkled like stardust.",
          "annotations": []
        }
      ]
    }
  ],
  "parallel_tool_calls": true,
  "previous_response_id": null,
  "reasoning": {
    "effort": null,
    "summary": null
  },
  "store": true,
  "temperature": 1.0,
  "text": {
    "format": {
      "type": "text"
    }
  },
  "tool_choice": "auto",
  "tools": [],
  "top_p": 1.0,
  "truncation": "disabled",
  "usage": {
    "input_tokens": 36,
    "input_tokens_details": {
      "cached_tokens": 0
    },
    "output_tokens": 87,
    "output_tokens_details": {
      "reasoning_tokens": 0
    },
    "total_tokens": 123
  },
  "user": null,
  "metadata": {}
}
修改于 2026-04-03 08:35:17
上一页
messages(Claude格式)
下一页
搜索增强
Built with