KIE.AI
Chinese
  • English
  • Chinese
Chinese
  • English
  • Chinese
Support
Chinese
  • English
  • Chinese
MarketVeo3.1 APISuno API
4o Image APIFlux Kontext APIRunway APILuma APIFile Upload APICommon API
MarketVeo3.1 APISuno API
4o Image APIFlux Kontext APIRunway APILuma APIFile Upload APICommon API
  1. Vocal Removal
  • Suno API 快速开始
  • Music Generation
    • 生成音乐回调
    • 音乐扩展回调
    • 音频上传和翻唱回调
    • 音频上传和扩展回调
    • 添加伴奏回调
    • 添加人声回调
    • 音乐封面生成回调
    • 替换音乐分区回调
    • 生成音乐
      POST
    • 延长音乐
      POST
    • 上传并翻唱音乐
      POST
    • 上传并扩展音乐
      POST
    • 添加伴奏生成音乐
      POST
    • 添加人声生成音乐
      POST
    • 获取音乐任务详情
      GET
    • 获取带时间戳的歌词
      POST
    • 提升音乐风格
      POST
    • 替换音乐分区
      POST
    • 生成音乐封面
      POST
    • 获取音乐封面生成详情
      GET
    • 生成 Persona
      POST
  • Lyrics Generation
    • 生成歌词回调
    • 生成歌词
    • 获取歌词任务详情
  • WAV Conversion
    • 转换为WAV格式回调
    • 转换为WAV格式
    • 获取WAV转换详情
  • Vocal Removal
    • 音频分离回调
    • MIDI 生成回调
    • 从音频生成 MIDI
      POST
    • 获取 MIDI 生成详情
      GET
    • 人声和乐器分离
      POST
    • 获取人声和乐器分离详情
      GET
  • Music Video Generation
    • MP4生成完成回调
    • 创建音乐视频
    • 获取音乐视频详情
Chinese
  • English
  • Chinese
Support
Chinese
  • English
  • Chinese
MarketVeo3.1 APISuno API
4o Image APIFlux Kontext APIRunway APILuma APIFile Upload APICommon API
MarketVeo3.1 APISuno API
4o Image APIFlux Kontext APIRunway APILuma APIFile Upload APICommon API
  1. Vocal Removal

获取 MIDI 生成详情

GET
/api/v1/midi/record-info
检索 MIDI 生成任务的详细信息,包括所有检测到的乐器的完整音符数据。

使用指南#

使用此接口检查 MIDI 生成任务的状态
处理完成后访问完整的 MIDI 音符数据
检索详细的乐器和音符信息
跟踪处理进度和可能发生的任何错误

状态说明#

successFlag: 0: 待执行 - 任务等待执行中
successFlag: 1: 成功 - MIDI 生成成功完成
successFlag: 2: 失败 - 创建任务失败
successFlag: 3: 失败 - 生成MIDI失败
查看 errorCode 和 errorMessage 字段了解失败详情

开发者注意事项#

midiData 字段包含完整的 MIDI 数据,是包含乐器和音符的结构化对象
MIDI 数据包含所有检测到的乐器,每个音符都有音高、时间和力度信息
MIDI 生成记录保留 14 天
重要提醒: 当使用人声分离接口的 type: split_stem 参数时,midiData可能为空

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Responses

🟢200
application/json
MIDI 生成任务详情检索成功
Body

🔴500Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.kie.ai/api/v1/midi/record-info?taskId=5c79****be8e' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - 成功示例
{
    "code": 200,
    "msg": "success",
    "data": {
        "taskId": "5c79****be8e",
        "recordTaskId": -1,
        "audioId": "e231****-****-****-****-****8cadc7dc",
        "callbackUrl": "https://example.callback",
        "completeTime": 1760335255000,
        "midiData": {
            "state": "complete",
            "instruments": [
                {
                    "name": "Drums",
                    "notes": [
                        {
                            "pitch": 73,
                            "start": 0.036458333333333336,
                            "end": 0.18229166666666666,
                            "velocity": 1
                        },
                        {
                            "pitch": 61,
                            "start": 0.046875,
                            "end": 0.19270833333333334,
                            "velocity": 1
                        }
                    ]
                },
                {
                    "name": "Electric Bass (finger)",
                    "notes": [
                        {
                            "pitch": 44,
                            "start": 7.6875,
                            "end": 7.911458333333333,
                            "velocity": 1
                        }
                    ]
                }
            ]
        },
        "successFlag": 1,
        "createTime": 1760335251000,
        "errorCode": null,
        "errorMessage": null
    }
}
Previous
从音频生成 MIDI
Next
人声和乐器分离
Built with