上传音乐通过 url
方法: POST路径: /suno/uploads/audio-url
请求参数
Header 参数
text
Content-Type
string
可选
示例:
application/json
Accept
string
可选
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}Body 参数 application/json
text
url
string
上传的音乐
必需
示例
{
"url"
:
"http://cdnimg.example.com/ai/2024-06-18/d416d9c3c34eb22c7d8c094831d8dbd0.mp3"
}请求示例代码
Shell
bash
curl --location --request POST '/suno/uploads/audio-url' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "http://cdnimg.example.com/ai/2024-06-18/d416d9c3c34eb22c7d8c094831d8dbd0.mp3"
}'返回响应
🟢 200 成功
内容类型: application/json
响应结构
text
code
string
必需
message
string
必需
data
string
task_id
必需示例
json
{
"code": "success",
"message": "",
"data": "736a6f88-bd29-4b1e-b110-37132a5325ac"
}