cURL
curl --request POST \ --url https://api.mountsea.ai/eleven/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "audioUrl": "https://example.com/song.mp3", "extractCompositionPlan": false } '
{ "taskId": "<string>" }
上传音频用于 Inpainting 编辑(企业版)
song_id
taskId
songId
compositionPlan
上传音频
POST /eleven/upload
在作曲计划中引用
POST /eleven/music
compositionPlan.sections[].source_from
定义编辑范围
source_from.range
negative_ranges
extractCompositionPlan: true
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
音频文件 URL (http/https),支持格式: .mp3, .wav, .flac, .m4a, .aac, .ogg, .wma, .opus
AUDIO_EXTENSION_REGEX
"https://example.com/song.mp3"
是否提取并返回上传音频的作曲计划(composition_plan)。设为 true 时,响应中将包含解析出的段落结构信息,但会增加接口延迟
任务创建成功
任务 ID,用于后续查询结果