Export the musical notes of a clip as MIDI instrument data
Endpoint
POST /api/v1/music/midi
Synchronous. Returns MIDI data directly in the response.Analyzes a music clip and returns instrument note data in a structured format compatible with MIDI. Useful for music production workflows, score notation, or interactive music tools.
Request body
Field
Type
Required
Description
clip_id
string
Yes
Clip ID to analyze. Obtain from Upload Audio (data.clipId) or a completed generation task (results[].id).
stem_clip_id
string
No
Optional stem clip ID (from Stem Separation) for more accurate instrument isolation.