Kaiho's API文档
  1. 音乐生成
Kaiho's API文档
  • 网站必读指南
  • 文档使用方法
  • 聊天(Chat)
    • OpenAI 兼容格式
    • GPTs
    • 列出可用模型
      GET
    • Chat(通用)
      POST
    • Chat(图片分析)
      POST
    • Chat(视频分析)
      POST
    • Chat(函数调用)
      POST
    • Chat(o1系列模型)
      POST
    • Chat(gpt-4p-all(文件分析)
      POST
    • 聊天补全
      POST
    • Claude (OpenAI格式)-可PDF分析
      POST
    • Claude (原生格式)-可PDF分析
      POST
    • GPTS
      POST
    • 创建嵌入
      POST
    • o3-pro请求格式
      POST
  • 绘画模型
    • Gemini
      • nano banana
    • Midjourney
      • 快速开始
      • 生图速度切换
      • 信息获取
        • 根据ID列表查询任务
        • 指定ID获取任务详情
        • 获取图片ImageSeed
        • 获取上传图片Url
      • 任务执行
        • 提交Imagine任务
        • 提交Blend任务
        • 提交Describe任务
        • 提交Shorten任务
        • 提交Modal任务
        • 提交执行Action任务
        • 提交Edits任务
        • 提交Video任务
        • 提交SwapFace任务
    • 豆包(即梦、火山)
      • 即梦4.0绘图
  • 视频生成
    • 视频生成简介
    • Luma
      • 官方接口格式
        • Chat格式
    • Runway
      • 官方接口格式
        • 查询:单个视频任务
        • generate(图生视频)
      • 逆向格式
        • generate(文生视频)
        • generate(图生视频)
        • video2video(视频风格重绘)
    • 即梦
      • generate(图生视频)
    • Veo3
      • 逆向格式
        • 流式请求
        • 非流试请求
        • 带图片请求
    • Seedance
      • 创建任务
      • 获取任务
    • MiniMax
      • V2
        • 创建任务-海螺
    • Sora
      • Chat(聊天格式兼容)
    • kling
      • kling文生视频
    • OpenAi
      • 官方视频生成
  • 音频模型
    • 文本转语音TTs
      • 模型TTs-1
      • 模型ChatTTs
    • 语音转文字
      • 音频转文本
      • 创建翻译
  • 音乐生成
    • 续写音乐获取完整音乐
    • 场景二:Cover 音乐:音乐翻版\修改风格
    • 场景三:Replace Section:替换片段
    • 场景四:Persona:歌手风格
    • 场景五:stems:声曲分离(仅限chirp_auk)
    • 场景六:Timing:歌词、音频时间线(仅限chirp_auk)
    • 场景七:wav:获取 wav 格式文件
    • 场景八:mp4:生成 mp4 mv 视频(仅限chirp_auk)
    • 场景九:all-stems:全轨声曲分离
    • 任务:生成歌曲
      POST
    • 任务:生成歌词
      POST
    • 任务:上传音乐
      POST
    • 任务:歌曲拼接
      POST
    • 查询:批量查询任务
      POST
  • 测试接口
    • 视频分析
    • 视频异步接口
    • 视频查询
  1. 音乐生成

任务:生成歌曲

开发中
POST
https://ai.kaiho.cc/suno/submit/music
总三种创作方式
一、灵感模式
📌
只需提交以下参数:suno会自动生成歌名、歌词、风格、歌曲。
gpt_description_prompt make_instrumental mv
二、定制模式
💡
需要提交以下参数
prompt title tags mv
三、续写模式
💡
需要在定制模式基础上携带以下参数
task_id continue_at continue_clip_id
示例
1.
灵感模式
{
    "gpt_description_prompt": "欢快的磁性女声歌曲,中文,主题:难忘周末"
}
2.
定制模式
{
    "prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
    "tags": "emotional punk",
    "mv": "chirp-v3-0",
    "title": "City Lights"
}
3.
续写模式
{
    "prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
    "tags": "bass-driven atmospheric heavy metal",
    "mv": "chirp-v3-0",
    "title": "City Lights",
    "task_id": "736a6f88-bd29-4b1e-b110-37132a5325ac"
    "continue_clip_id": "ce2cfbce-9ea0-45b0-9386-020c0ff54a49",
    "continue_at": 80
}

请求参数

Authorization
Bearer Token
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
or
Header 参数

Body 参数application/json

示例
{
    "prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'm alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it's music to my ears\nThe hustle and the bustle\nWiping away my fears",
    "tags": "emotional punk",
    "mv": "chirp-v4",
    "title": "City Lights"
}

请求示例代码

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://ai.kaiho.cc/suno/submit/music' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prompt": "[Verse]\nWalking down the streets\nBeneath the city lights\nNeon signs flickering\nLighting up the night\nHeart beating faster\nLike a drum in my chest\nI'\''m alive in this moment\nFeeling so blessed\n\nStilettos on the pavement\nStepping with grace\nSurrounded by the people\nMoving at their own pace\nThe rhythm of the city\nIt pulses in my veins\nLost in the energy\nAs my worries drain\n\n[Verse 2]\nConcrete jungle shining\nWith its dazzling glow\nEvery corner hiding secrets that only locals know\nA symphony of chaos\nBut it'\''s music to my ears\nThe hustle and the bustle\nWiping away my fears",
    "tags": "emotional punk",
    "mv": "chirp-v4",
    "title": "City Lights"
}'

返回响应

🟢200成功
application/json
Body

示例
{}
修改于 2025-11-22 09:58:37
上一页
场景九:all-stems:全轨声曲分离
下一页
任务:生成歌词
Built with