AI 接口文档
  1. 任务提交
AI 接口文档
  • 发出请求
  • 模型接口
    • 聊天(Chat)
      • 实时语音
      • 聊天对话(OpenAI格式)
      • 聊天对话(Claude格式)
      • 识别文件
      • 识别图片
      • 联网对话
      • gpts
    • 自动补全(Completions)
      • 内容补全接口
    • 文生图片(Images)
      • Midjourney
        • 补充 - 其他参数以及回调
        • InsightFace任务提交
          • 提交swap_face任务
        • 任务提交
          • 执行动作
          • 提交Blend任务
          • 提交Describe任务
          • 提交Imagine任务
          • 提交Modal
          • 提交Shorten任务
        • 任务查询
          • 查询所有任务
          • 根据ID列表查询任务
          • 分页查询任务
          • 查询任务队列
          • 取消任务
          • 指定ID获取任务
          • 获取任务图片的seed(需设置mj或niji的私信ID)
      • DALL·E 3
      • Stable-Diffusion
      • gpt-4o-image
      • gpt-image-1
    • 向量生成(Embeddings)
      • 创建嵌入
    • 音频(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
    • Suno 文生歌曲
      • 官方格式
        • 任务提交
          • 生成歌曲
            POST
          • 生成歌词
            POST
        • 任务查询
          • 查询单个任务
          • 批量获取任务
      • OpenAI 聊天格式
        POST
    • Flux 文生图
      • OpenAI 聊天格式
    • Luma 文生视频
      • OpenAI 聊天格式
  • 帮助中心
    • 常见问题及解决办法
  1. 任务提交

生成歌曲

POST
https://aigc.x-see.cn/suno/submit/music
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-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
}

请求参数

Header 参数
Authorization
string 
必需
默认值:
API KEY 令牌
Content-Type
string 
必需
默认值:
application/json
Body 参数application/json
prompt
string 
必需
歌词 (自定义模式专用)
mv
string 
可选
mv模型,chirp-v3-0、chirp-v3-5。不写默认 chirp-v3-0
title
string 
可选
标题(自定义模式专用)
tags
string 
可选
风格标签(自定义模式专用)
make_instrumental
string 
可选
是否生成纯音乐,true 为生成纯音乐
task_id
string 
可选
任务id,用于对之前的任务再操作
continue_at
string 
可选
float,歌曲延长时间,单位秒
continue_clip_id
string 
可选
歌曲id,需要续写哪首歌
gpt_description_prompt
string 
可选
灵感模式提示词(灵感模式专用)
notify_hook
string 
可选
回调地址: https://xxxxxxx
示例
{
  "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"
}

示例代码

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://aigc.x-see.cn/suno/submit/music' \
--header 'Authorization;' \
--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-v3-0",
    "title": "City Lights"
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
上一页
TTS文本转语音
下一页
生成歌词
Built with