SKUAI接口文档
  1. newApi格式
SKUAI接口文档
  • 使用须知
  • OpenAI 通用接口
    • 聊天
      • 1.聊天接口(OpenAI格式通用)
    • 图像
      • 1.创建图像
      • 2.创建图片编辑
  • 绘图模型
    • Midjourney
      • 1.文生图(Imagine)接口
      • 2.按钮点击(Action)接口
      • 3.图片融合(Blend)接口
      • 4.窗口执行(Modal)接口
      • 5.图生文(Describe)接口
      • 6.缩短提示词(Shorten)接口
      • 7.换脸(FaceSwap)接口
      • 8.上传(upload)接口
      • 9.查询接口
      • 10.批量查询接口
      • 11.获取种子(Seed)接口
      • 12.刷新链接(Refresh)接口
    • Flux
      • 官方格式
        • 1.生成图片
        • 2.查询任务
      • OpenAI格式
        • 1.创建图像
        • 2.创建图片编辑
    • Ideogram
      • 1.Generate(文生图)
      • 2.Edit(编辑)
      • 3.Remix(混合图)
      • 4.Upscale(放大高清)
      • 5.Describe(图生文)
  • 音乐模型
    • Suno
      • zeakAi格式
        • 1.生成歌词接口
        • 2.获取歌词接口
        • 3.生成音乐(灵感模式)
        • 4.生成音乐(专业模式)
        • 5.生成音乐(翻唱模式)
        • 6.局部编辑音乐
        • 7.上传音乐
        • 8.续写音乐
        • 9.裁剪音乐
        • 10.合并音乐
        • 11.查询音乐
      • newApi格式
        • 1.生成歌词接口
          POST
        • 2.生成音乐接口
          POST
        • 3.上传音乐接口
          POST
        • 4.歌曲拼接接口
          POST
        • 5.查询任务
          GET
  1. newApi格式

2.生成音乐接口

POST
/suno/submit/music
生成音乐接口,灵感模式、专业模式和续写音乐都可以通过该接口实现

请求参数

Header 参数
Authorization
string 
用户中心获取的密钥
可选
示例值:
{{YOUR_API_KEY}}
Body 参数application/json
gpt_description_prompt
string 
灵感模式提示词
必需
灵感模式专用
title
string 
标题
必需
专业模式专用
prompt
string 
歌词
必需
专业模式专用
mv
string 
版本号
必需
tags
string 
风格标签
必需
专业模式专用
negative_tags
string 
禁用的风格
必需
专业模式专用
make_instrumental
boolean 
是否纯音乐
必需
task_id
string 
任务ID
必需
用于对之前的任务再操作
continue_clip_id
string 
歌曲ID
必需
需要续写哪首歌
continue_at
integer 
歌曲延长时间
必需
单位秒
示例
1.灵感模式
{
    "gpt_description_prompt": "cat"
}

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-v4",
    "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",
    "negative_tags": "dance",
    "mv": "chirp-v3-5",
    "title": "City Lights",
    "task_id": "17350521802760039",
    "continue_clip_id": "ce2cfbce-9ea0-45b0-9386-020c0ff54a49",
    "continue_at": 80
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://openapi.sku.vip/suno/submit/music' \
--header 'Authorization: ed822e3a-ec11-48d5-9739-55f4b402e7b0' \
--header 'Content-Type: application/json' \
--data-raw '1.灵感模式
{
    "gpt_description_prompt": "cat"
}

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-v4",
    "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",
    "negative_tags": "dance",
    "mv": "chirp-v3-5",
    "title": "City Lights",
    "task_id": "17350521802760039",
    "continue_clip_id": "ce2cfbce-9ea0-45b0-9386-020c0ff54a49",
    "continue_at": 80
}'

返回响应

🟢200成功
application/json
Body
code
string 
状态
必需
message
string 
描述
必需
result
string 
任务id
必需
示例
{
    "code": "success",
    "message": "success",
    "data": "17350521802760039"
}
修改于 2025-03-09 12:25:55
上一页
1.生成歌词接口
下一页
3.上传音乐接口
Built with