获取 midi
方法: GET路径: /suno/act/midi/{clip_id}
通过 14.all-stems:全轨声曲分离 获取其中的一首歌的 clip_id 值为 a624123d-22cc-4d4d-bf28-78d312f61597 注意 普通音乐的 clip_id 也能执行,但是官网只有 全轨分离的 clip_id 才有 不可跨账号,账号下线后不可调用,需要尽早
没成功都是
{ "state": "running" }成功后
{
"state": "complete",
"instruments": [
{
"name": "String Ensembles 1",
"notes": [
{
"pitch": 60,
"start": 1.1041666666666667,
"end": 1.9583333333333333,
"velocity": 0.7165354330708661
},
......
]
},
......
]
}请求参数
Path 参数
text
clip_id
string
必需Header 参数
text
accept
string
可选
示例:
*/*
content-type
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}请求示例代码
Shell
bash
curl --location --request GET '/suno/act/midi/' \
--header 'accept: */*' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'content-type: application/json'返回响应
🟢 200 成功
内容类型: application/json
响应结构
text
object示例
json
{
"state": "complete",
"instruments": [
{
"name": "String Ensembles 1",
"notes": [
{
"pitch": 60,
"start": 1.1041666666666667,
"end": 1.9583333333333333,
"velocity": 0.7165354330708661
},
......
]
},
......
]
}