/suno/act/midi/{clip_id} endpoint allows you to retrieve the MIDI file for a music clip. MIDI (Musical Instrument Digital Interface) files contain musical note data that can be used for music production, remixing, learning, or integration with digital audio workstations (DAWs).Before using this endpoint, you must first generate music using the Generate music clip endpoint and obtain the clip_idfrom the successful task via Single task query.
clip_id, this API supports both full-track separation and regular music clip_idtask_id. Poll the Single task query endpoint to check status and retrieve the MIDI file URL when readycurl --location --request GET 'https://api.cometapi.com/suno/act/midi/3fd55e5b-0e96-44f2-8a5b-26e1668511dc' \
--header 'Authorization: Bearer '{
"code": "success",
"message": "",
"data": {
"task_id": "dcb812bd-40c5-4907-836e-3a7aa9a2e546",
"action": "MUSIC",
"status": "NOT_START",
"fail_reason": "",
"submit_time": 1747203819,
"start_time": 1747203819,
"finish_time": 0,
"progress": "0%",
"data": null
}
}