跳转到主要内容
POST
/
suno
/
v2
/
upload
upload audio to suno
curl --request POST \
  --url https://api.mountsea.ai/suno/v2/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "audioUrl": "<string>"
}
'
{
  "taskId": "15c257ff-43f7-4678-bd41-202ad6b8488b"
}
通过提供音频的 URL 上传音频文件。Suno 将下载并处理该文件。上传的音频随后可在 Generate 端点中配合 upload_extendupload_cover 任务使用。
这是一个异步任务。响应包含一个 taskId — 使用获取任务状态轮询上传结果,结果将包含后续操作所需的 clip_id
audioUrl 必须是我们服务器可以下载的公开可访问 URL。支持的格式包括 MP3、WAV 和其他常见音频格式。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
audioUrl
string<uri>
必填

The audio url to upload, must be a url that we can download

响应

201 - application/json
taskId
string
必填

task id. Use this id to query task status.

示例:

"15c257ff-43f7-4678-bd41-202ad6b8488b"