Skip to main content
POST
/
suno
/
v1
/
gen-midi
cURL
curl --request POST \
  --url https://api.ttapi.io/suno/v1/gen-midi \
  --header 'Content-Type: application/json' \
  --header 'TT-API-KEY: <api-key>' \
  --data '
{
  "music_id": "<string>"
}
'
{
  "status": "SUCCESS",
  "message": "success",
  "data": {
    "state": "complete",
    "instruments": [
      {
        "name": "Synth Voice",
        "notes": [
          {
            "pitch": 60,
            "start": 11.166666666666666,
            "end": 11.333333333333334,
            "velocity": 0.49606299212598426
          },
          {
            "pitch": 60,
            "start": 11.5,
            "end": 11.666666666666666,
            "velocity": 0.49606299212598426
          },
          {
            "pitch": 60,
            "start": 11.833333333333334,
            "end": 12,
            "velocity": 0.49606299212598426
          }
        ]
      }
    ]
  }
}
获取生成音乐对应的MIDI文件

Authorizations

TT-API-KEY
string
header
required

授权字段,控制台获取授权信息

Body

application/json
music_id
string
required

歌曲id

Response

请求成功

status
string
required
Example:

"SUCCESS"

message
string
required
Example:

"success"

data
object
required
Last modified on March 12, 2026