大模型超级市场 · 存档文档,接口地址仅作示例
大模型超级市场-使用指南
返回主页← 主页Back to home← Home
  1. 对话接口
  • 快速开始
  • 文本生成
    • 对话接口
      • messages(Claude格式)
        POST
      • Responses API(OpenAI格式)
        POST
      • systemone
        POST
    • tools工具箱
      • 模板调用
      • 知识库增强-模板调用
  • 图片生成
    • 生成图片
    • 编辑图片
  • 视频理解
    • 视频理解
  • 视频生成
    • seedance官方协议
      • 素材管理
        • 快速开始
        • 创建素材资产组合
        • 创建素材资产
        • 查询素材资产组合 列表
        • 查询素材资产列表
        • 查询素材资产信息
        • 查询素材资产组合信息
        • 更新素材资产组合信息
        • 更新素材资产信息
        • 删除素材资产
        • 删除素材资产组
        • 拉起真人认证 H5
        • 获取真人 Asset Group ID
      • 创建视频生成任务
      • 查询视频生成任务
      • 查询视频生成任务列表
      • 取消或删除视频生成任务
    • 生视频统一协议
      • seedance
        • seedance素材管理
          • 快速开始
          • 创建素材库
          • 在素材库中创建素材
          • 更新素材库
          • 更新素材
          • 删除素材库
          • 删除素材
          • 查询素材库列表
          • 查询素材库信息
          • 查询素材列表
          • 查询素材信息
          • 查询真人素材库信息
          • 拉起真人认证 H5
        • 创建视频生成(seedance)
      • 创建视频生成
      • 创建视频生成(vidu)
      • 创建视频生成(kling)
      • 查询视频生成状态
  • 音频处理
    • 语音识别(ASR)
    • 语音合成(TTS)
    • 语音合成(TTS)异步
    • 查询音频生成状态
  • 文档智能
    • 帮助文档
      • 服务介绍
      • 响应格式完整说明
      • 错误码说明
    • 文档上传
    • 创建文档处理任务
    • 查询处理任务结果
  • AI翻译
    • 产品介绍
      • 文本翻译介绍
      • 图片翻译介绍
      • 文档翻译介绍
      • 错误码说明
    • 文本翻译
    • 图片翻译
    • 文档翻译-创建任务(异步)
    • 文档翻译-获取结果
  • 记忆库
    • 产品介绍
    • 添加记忆
    • 获取记忆结果
    • 检索记忆
    • 获取记忆列表
    • 删除全部记忆
    • 删除单条记忆
  • AI安全
    • 文本风险检测
    • 图片风险检测
    • 音频风险检测
    • 视频风险检测
    • 查询视频风险检测任务结果
  • 文档解析
    • 文档上传
    • 获取内容
  • 向量化
    • 向量生成
    • 语义相似度计算
  • 更多说明
    • 更优雅地使用本文档
    • 错误码
    • 速率限制
    • 前缀缓存
    • 智能调度
    • 模型发现
      • 第三方工具配置
        • CC Switch + Claude Code 快速配置
        • CC Switch + Codex快速配置
    • 数据模型
      • 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": "openai/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 'https://api.example.invalid/v1/responses' \
    --header 'Authorization: Bearer {{YOUR_API_KEY}}' \
    --header 'Content-Type: application/json' \
    --data '{
        "model": "openai/gpt-5.4",
        "input": "Tell me a three sentence bedtime story about a unicorn."
    }'

    返回响应

    🟢200成功
    application/json
    Bodyapplication/json

    示例
    {
      "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-24 03:15:50
    上一页
    messages(Claude格式)
    下一页
    systemone
    Built with