接口
请求参数
响应
示例
使用建议
为获得最佳效果,建议先执行 人声分离,并将返回的任务 ID 作为stem_clip_id 传入:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
将片段的乐器音符数据导出为 MIDI 格式
POST /api/v1/music/midi
{
"code": 0,
"message": "ok",
"request_id": "req-1710000000000",
"data": {
"state": "complete",
"instruments": {
"piano": [ ... ],
"bass": [ ... ]
}
}
}
| 字段 | 类型 | 说明 |
|---|---|---|
state | string | 处理状态 |
instruments | object | 乐器名称 → 音符数组的映射 |
curl -X POST https://api.example.com/api/v1/music/midi \
-H "Authorization: Bearer sk-mm-your-key" \
-H "Content-Type: application/json" \
-d '{
"clip_id": "abc123def456"
}'
stem_clip_id 传入:
# 第一步:人声分离
POST /api/v1/music/stem → stem.id = "stem-xyz"
# 第二步:带人声分离上下文的 MIDI 导出
POST /api/v1/music/midi { "clip_id": "abc123", "stem_clip_id": "stem-xyz" }