好易智算-API文档
  1. sora2官方格式
好易智算-API文档
  • Chat(聊天)
    • Chat(聊天)
      POST
    • Chat(修改图片)
      POST
    • Chat(流式返回)
      POST
    • Chat(兼容Recraftv3)
      POST
  • 视频模型
    • 视频生成模型简介
    • 统一格式接口
      • sora2视频
        • chat(聊天格式兼容)
        • sora2文生视频
        • sora2图生视频
        • sora2故事板视频
        • 创建角色 Character
        • sora2 使用角色客串
        • sora2查询任务
    • sora2官方格式
      • 创建视频
        POST
      • 创建模型响应
        POST
      • 创建模型响应(调用联网)
        POST
      • 创建模型响应(流式返回)
        POST
      • remix 编辑视频
        POST
      • 查询视频进度
        GET
    • MiniMax-Hailuo-2.3-Fast
      • 获取视频链接
      • 视频任务状态查询
      • 视频生成任务
  • 音频模型
    • suno-actions
      • 批量获取任务
      • 生成歌曲(灵感模式)
      • 上传音乐通过url
    • suno_music
      • 补充
      • GoAmz 配置方式
      • 音乐版本以及生成参数介绍
      • 生成歌曲(自定义模式)
      • 生成歌曲(灵感模式)
      • 生成歌曲(续写模式)
      • 生成歌曲(歌手风格)
      • 生成歌曲(上传歌曲二次创作)
      • 生成歌曲(拼接歌曲)
      • 生成歌曲(曲声分离)
      • 生成歌词
      • 上传请求
      • 报告上传完毕
      • 查询上传处理状态
      • 初始化音频文件
      • Persona:创建歌手风格
      • tags: 拓展 style tags
      • 查询歌词
      • 查询歌曲
      • 批量获取任务
      • Timing:歌词、音频时间线
      • wav:获取 wav 格式文件
      • mp4:生成 mp4 mv 视频
      • 获取 midi
      • 上传音乐通过url
      • 生成歌曲 (v1 版本)
      • 拼接歌曲 (v1 版本)
      • 生成歌词 (v1 版本)
      • 声曲分离 (v1 版本)
      • 查询歌曲 (v1 版本)
      • 查询歌词 (v1 版本)
  • 绘图模型
    • 生图模型简介
    • doubao-seedream-4-5-251128
      • 即梦3 图生图
      • 即梦3 文生图
    • nano-banana-2
      • Dalle格式介绍
      • Nano-banana(Generations,推荐对接)
      • Nano-banana(Edits兼容)
      • Nano-banana 官方格式
      • qwen-image-edit-2509 (图生图)
      • 图像编辑(qwen-image-edit)
      • 所有图像编辑(异步)
      • 所有画图(异步)
      • 所有画图(异步)
    • kling-video-v2-6
      • 文生视频
      • 图生视频
      • 多图参考生图
      • 多图参考生视频
      • 视频延长
      • 对口型
      • 视频特效
      • 文生音效
      • 查询任务(免费)
      • Omni-Video
      • Omni-Video查询任务(免费)
      • Omni-Video 创建自定义主体
      • Omni-Video 查询自定义主体
      • Omni-Video 查询预设主体
      • 视频生音效
      • 扩图
      • 视频延长
  1. sora2官方格式

创建模型响应

开发中
POST
https://maas.haoee.com/v1/responses
所有对话模型,都可使用此接口, 修改 model 属性为模型名
给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成

请求参数

Header 参数

Body 参数application/json

示例
{
    "model": "gpt-4.1",
    "input": [
        {
            "role": "user",
            "content": "Write a one-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 --location --request POST 'https://maas.haoee.com/v1/responses' \
--header 'ModelName;' \
--header 'Authorization: {{KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gpt-4.1",
    "input": [
        {
            "role": "user",
            "content": "Write a one-sentence bedtime story about a unicorn."
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "id": "resp_67ccd2bed1ec8190b14f964abc0542670bb6a6b452d3795b",
    "object": "response",
    "created_at": 1741476542,
    "status": "completed",
    "error": null,
    "incomplete_details": null,
    "instructions": null,
    "max_output_tokens": null,
    "model": "gpt-4.1-2025-04-14",
    "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,
    "text": {
        "format": {
            "type": "text"
        }
    },
    "tool_choice": "auto",
    "tools": [],
    "top_p": 1,
    "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": {}
}
上一页
创建视频
下一页
创建模型响应(调用联网)
Built with