上传音乐
测试中
POST
{{BASE_URL}}/suno/uploads/audio-url
请求参数
Authorization
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Content-Type
string
可选
示例值:
application/json
Accept
string
可选
示例值:
application/json
Body 参数application/json
url
string
上传的音乐
示例
{
"url": "http://cdnimg.example.com/ai/2024-06-18/d416d9c3c34eb22c7d8c094831d8dbd0.mp3"
}
示例代码
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 '{{BASE_URL}}/suno/uploads/audio-url' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"url": "http://cdnimg.example.com/ai/2024-06-18/d416d9c3c34eb22c7d8c094831d8dbd0.mp3"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string
必需
data
string
task_id
示例
{
"code": "success",
"message": "",
"data": "736a6f88-bd29-4b1e-b110-37132a5325ac"
}
修改于 2025-03-28 12:56:11