- (必读)网站使用教程
- (必读)前言
- 批量请求示例
- 常见问题及解决办法
- 聊天模型
- 音乐生成
- Suno
- 接口介绍
- 场景一:续写音乐并获取完整音乐
- 场景二:Cover 音乐:音乐翻版\修改风格
- 场景三:Replace Section:替换片段
- 场景四:Persona:歌手风格
- 场景五:stems:声曲分离(仅限chirp_auk)
- 场景六:Timing:歌词、音频时间线(仅限chirp_auk)
- 场景七:wav:获取 wav 格式文件
- 场景八:mp4:生成 mp4 mv 视频(仅限chirp_auk)
- 聊天方式:生成歌曲POST
- 任务:生成歌曲POST
- 任务:生成歌词POST
- 上传音乐POST
- 歌曲拼接POST
- 查询:批量查询任务POST
- 获取 wav 格式文件GET
- 生成 mp4 mv 视频GET
- 声曲分离GET
- 查询:单个任务GET
- Timing:歌词、音频时间线GET
- Udio
- 绘画模型
- 音频模型
- 视频生成
- 查询令牌用量GET
- 查询令牌限额GET
任务:生成歌曲
POST
https://api.apicore.ai/suno/submit/music
一、灵感模式
gpt_description_prompt make_instrumental mv
prompt
title
tags
mv
task_id
continue_at
continue_clip_id
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer sk-xxxx
Body 参数application/json
make_instrumental
boolean
可选
gpt_description_prompt
string
可选
mv
enum<string>
模型版本
枚举值:
chirp-v3-0chirp-v3-5chirp-v4chirp-auk
示例值:
chirp-v3-0
prompt
string
歌词(定制模式专用)
title
string
歌名(定制模式专用)
tags
string
风格标签(定制模式专用)
task_id
string
任务ID
continue_at
number
歌曲续写时长
continue_clip_id
string
续写歌曲ID
notify_hook
string
回调地址
示例
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
}
示例代码
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://api.apicore.ai/suno/submit/music' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '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
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string
必需
data
string
必需
示例
{
"code": "success",
"message": "",
"data": "2a145658-3342-4228-b779-b8323a2b77df"
}