将片段的乐器音符数据导出为 MIDI 格式
POST /api/v1/music/midi
clip_id
data.clipId
results[].id
stem_clip_id
{ "code": 0, "message": "ok", "request_id": "req-1710000000000", "data": { "state": "complete", "instruments": { "piano": [ ... ], "bass": [ ... ] } } }
state
instruments
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" }'
# 第一步:人声分离 POST /api/v1/music/stem → stem.id = "stem-xyz" # 第二步:带人声分离上下文的 MIDI 导出 POST /api/v1/music/midi { "clip_id": "abc123", "stem_clip_id": "stem-xyz" }