- 关于我们
- Open AI
- InsightFace任务提交
- 任务管理
- Midjourney接口
- 暂时未启用
- Generate
- SDXL & SD1.6
- styles
- images
- 视频生成
- 生成音乐POST
- 获取音乐GET
- 生成音乐POST
- 获取音乐GET
- flux-pro-1.1POST
- flux-proPOST
- flux-devPOST
- flux-查询GET
- Generate(文生图)POST
- Remix(混合图)POST
- Upscale(放大高清)POST
- Describe(描述)POST
- 图像生成POST
- 文生视频POST
- 图生视频POST
- 查询任务GET
- 获取视频GET
- 生成视频POST
- 图片描述POST
- 文生图POST
- 合成图POST
- 放大图片POST
- ideogram任务查询POST
- CogVideoX视频生成POST
- CogVideoX视频查询GET
- Mix上传视频并生成视频POST
- 查询视频任务GET
- Multi模板列表GET
- Mix官方模板列表GET
- Mix上传视频素材库GET
- Mix上传图片素材库GET
- 剩余积分查询GET
- Multi上传视频并生成视频POST
- Move上传视频并生成视频 POST
生成音乐
POST
/suno/v1/v3.0/music
请求参数
Authorization
Bearer Token
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
or
Header 参数
Content-Type
string
可选
示例值:
application/json
Accept
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
custom_mode
boolean
必需
input
object
必需
prompt
string
必需
title
string
必需
tags
string
必需
continue_at
integer
必需
continue_clip_id
string
必需
示例
{
"custom_mode": true,
"input": {
"prompt": "[Verse]\nTesla riding\nBatteries flying\nElon Musk\nHe's got the future on his mind\nSolar panels shining\nRockets reaching for the skies\nInnovation's flowing\nHe's the tech wizard of our times\n\n[Verse]\nNeuralink connecting minds\nAI running wild\nMars colonization\nHe's making it his style\nFrom PayPal he came and shook the world with his touch\nElon Musk\nThe eccentric genius\nHe's too much\n\n[Chorus]\nElon Musk\nHe's the man with electric dreams\nChanging the world with his technology schemes\nFrom PayPal to SpaceX\nHe's a force to be seen\nElectric cars and rockets\nHe's living the dream",
"title": "Electric Dreams",
"tags": "epic reggae",
"continue_at": 0,
"continue_clip_id": ""
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/suno/v1/v3.0/music' \
--header 'Content-Type: application/json' \
--data-raw '{
"custom_mode": true,
"input": {
"prompt": "[Verse]\nTesla riding\nBatteries flying\nElon Musk\nHe'\''s got the future on his mind\nSolar panels shining\nRockets reaching for the skies\nInnovation'\''s flowing\nHe'\''s the tech wizard of our times\n\n[Verse]\nNeuralink connecting minds\nAI running wild\nMars colonization\nHe'\''s making it his style\nFrom PayPal he came and shook the world with his touch\nElon Musk\nThe eccentric genius\nHe'\''s too much\n\n[Chorus]\nElon Musk\nHe'\''s the man with electric dreams\nChanging the world with his technology schemes\nFrom PayPal to SpaceX\nHe'\''s a force to be seen\nElectric cars and rockets\nHe'\''s living the dream",
"title": "Electric Dreams",
"tags": "epic reggae",
"continue_at": 0,
"continue_clip_id": ""
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
task_id
string
必需
message
string
必需
示例
{
"code": 200,
"data": {
"task_id": "56ea8da3-8507-4118-9f1e-111111111111"
},
"message": "success"
}