YoYAI
  1. Suno API
YoYAI
  • YoYAI接口文档
    • Suno API
      • 歌曲生成接口
        POST
      • 歌词生成接口
        POST
      • 歌曲任务查询接口
        POST
      • 获取歌曲Timing接口
        POST
      • MP4生成接口
        POST
      • 自定义上传歌曲
        POST
      • 获取Wav接口
        POST
      • 创建Persona接口
        POST
      • 增强风格描述接口
        POST
      • SRT生成接口
        POST
      • 获取歌曲MIDI接口
        POST
      • 获取歌曲HTML接口
        POST
    • OpenAI API
      • 图像生成接口
      • 对话接口
    • Kling API
      • 视频生成接口
    • Veo3 API
      • 视频生成接口
      • 视频任务查询接口
    • Spider API
      • URL资源爬取
      • Posts任务获取接口
    • Nano Banana API
      • 图像生成接口
      • 图像任务查询接口
    • Sora API
      • 视频生成接口
      • 视频任务查询接口
      • 角色创建接口
  1. Suno API

获取歌曲MIDI接口

开发中
正式环境(默认全球加速)
https://api.yoy-ai.com
正式环境(默认全球加速)
https://api.yoy-ai.com
POST
https://api.yoy-ai.com
/suno/midi
最后修改时间:2025-11-17 09:17:21

请求参数

Header 参数

Body 参数application/json

示例
{
    "audio_id": "2f16f7bc-4135-42c6-b3c5-6d6c49dc8cd5"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.yoy-ai.com/suno/midi' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer asdasdasda9998fads' \
--header 'Content-Type: application/json' \
--data-raw '{
    "audio_id": "2f16f7bc-4135-42c6-b3c5-6d6c49dc8cd5"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "success": true,
    "task_id": "fef8bc36-f2b8-409a-a5d1-14e2ab7d9c66",
    "trace_id": "cf6c05f6-8add-4153-95d7-ec3e907f4141",
    "data": {
        "state": "complete",
        "instruments": [
            {
                "name": "Electric Piano 1",
                "notes": [
                    {
                        "pitch": 55,
                        "start": 0.3385416666666667,
                        "end": 2.3385416666666665,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 43,
                        "start": 0.3385416666666667,
                        "end": 2.3385416666666665,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 50,
                        "start": 0.8541666666666666,
                        "end": 2.8541666666666665,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 67,
                        "start": 0.3385416666666667,
                        "end": 3.4427083333333335,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 58,
                        "start": 0.3385416666666667,
                        "end": 3.4427083333333335,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 55,
                        "start": 2.40625,
                        "end": 3.4427083333333335,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 39,
                        "start": 2.390625,
                        "end": 4.390625,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 67,
                        "start": 3.4427083333333335,
                        "end": 4.479166666666667,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 55,
                        "start": 3.4427083333333335,
                        "end": 4.479166666666667,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 58,
                        "start": 3.4427083333333335,
                        "end": 4.479166666666667,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 51,
                        "start": 2.921875,
                        "end": 4.921875,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 34,
                        "start": 4.453125,
                        "end": 6.453125,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 53,
                        "start": 4.453125,
                        "end": 6.453125,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 46,
                        "start": 4.453125,
                        "end": 6.453125,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 55,
                        "start": 8.609375,
                        "end": 10.609375,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 58,
                        "start": 8.609375,
                        "end": 10.609375,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 43,
                        "start": 8.609375,
                        "end": 10.609375,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 55,
                        "start": 10.71875,
                        "end": 12.71875,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 39,
                        "start": 10.71875,
                        "end": 12.71875,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 58,
                        "start": 10.71875,
                        "end": 12.71875,
                        "velocity": 0.3700787401574803
                    },
                    {
                        "pitch": 53,
                        "start": 12.796875,
                     
修改于 2025-11-17 09:17:21
上一页
SRT生成接口
下一页
获取歌曲HTML接口
Built with