Skip to content

suno 下载

  • suno 2026.09.03 要限制下载 官网通知
  • 下面会按照 我们一些解决方案 是否加收费等一些问题进行讨论
  • 9.3 前仅支持 主动下载

1. 我们的解决方案

2. 返回数据格式的改变

json
{
....
"m4a": "https://suno.day/f/26a9b6a0-bf88-4325-9cd9-be136426421d.m4a", //9.3前会加一个这个字段
"audio_url": "https://suno.day/f/26a9b6a0-bf88-4325-9cd9-be136426421d.m4a",
....
"media_urls": [  //当 状态是有 streaming的时候 中间态也解密了
       .....
        {
            "content_type": "mp3",
            "delivery": "streaming",
            "encoding": "1.0.0", //边听边生成链接
            "url": "https://audiopipe.suno.day/?item_id=f13ed754-2f7f-4a7f-b113-54e9669ce127&key=006ae5cd9360df4e876d652148ae50c0"
        }
    ]
}
{
....
"m4a": "https://suno.day/f/26a9b6a0-bf88-4325-9cd9-be136426421d.m4a", //9.3前会加一个这个字段
"audio_url": "https://suno.day/f/26a9b6a0-bf88-4325-9cd9-be136426421d.m4a",
....
"media_urls": [  //当 状态是有 streaming的时候 中间态也解密了
       .....
        {
            "content_type": "mp3",
            "delivery": "streaming",
            "encoding": "1.0.0", //边听边生成链接
            "url": "https://audiopipe.suno.day/?item_id=f13ed754-2f7f-4a7f-b113-54e9669ce127&key=006ae5cd9360df4e876d652148ae50c0"
        }
    ]
}

3.主动下载

  • 你可以主动下线,然后重新请求,但需要花费 100 积分(0.01CNY)
  • 数据同样保存在服务器上,仅保留 3 天 72小时 注意好备份
  • 过期后可以再次请求,不会重复收费用

get https://api.openai-hk.com/suno/act/m4a/{clip_id}

json
{
  "id": "26a9b6a0-bf88-4325-9cd9-be136426421d",
  "song": "https://suno.day/f/26a9b6a0-bf88-4325-9cd9-be136426421d.m4a",
  "status": "complete", //error  complete submitted
  "message": "", //当error时有错误信息
  "mp3": "" //当 output=mp3 时有这个字段才有内容
}
{
  "id": "26a9b6a0-bf88-4325-9cd9-be136426421d",
  "song": "https://suno.day/f/26a9b6a0-bf88-4325-9cd9-be136426421d.m4a",
  "status": "complete", //error  complete submitted
  "message": "", //当error时有错误信息
  "mp3": "" //当 output=mp3 时有这个字段才有内容
}
  • 如果要带 mp3 可以 加上 ?output=mp3 拼凑 https://api.openai-hk.com/suno/act/mp3/{clip_id}?output=mp3
  • mp3 可能有损耗,不推荐 ;另外转 mp3 格式耗时较长

4.获取流输出

  • 我们都知道 suno 支持边听边下载 就需要流输出
  • 非主动获取不需要付费
  • 这个流输出 只在 suno 是 streaming 的时候才有用
  • 计费: 100 积分(0.01CNY)

get https://api.openai-hk.com/suno/act/stream/{clip_id}

json
{
  "content_type": "mp3",
  "url": "https://audiopipe.suno.day/?item_id=020a974b-9930-4e16-a5c9-74dddc87ec3c&key=f0d4b31dd0fc9bb20364dc25f3f7e509"
}
{
  "content_type": "mp3",
  "url": "https://audiopipe.suno.day/?item_id=020a974b-9930-4e16-a5c9-74dddc87ec3c&key=f0d4b31dd0fc9bb20364dc25f3f7e509"
}
  • 得到 url 就是 流输出

5.非主动下载 自动生成 mp3

  • 如果我要输出 mp3,但是不是主动下载不想付费如何实现
  • 在你提交生成的时候加一个参数 "output":"mp3"
shell
curl --request POST \
  --url https://api.openai-hk.com/sunoapi/generate \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{

  "generation_type": "TEXT",
  "title": "过年20",
  "tags": "pop 中国风",
  "negative_tags": "",
  "mv": "chirp-auk-turbo",
  "prompt": "[Verse 1]\n红纸贴....",
  "make_instrumental": false,
  "metadata": {
    "create_mode": "custom"
  }
  ,"output":"mp3"

}'
curl --request POST \
  --url https://api.openai-hk.com/sunoapi/generate \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json' \
  --data '{

  "generation_type": "TEXT",
  "title": "过年20",
  "tags": "pop 中国风",
  "negative_tags": "",
  "mv": "chirp-auk-turbo",
  "prompt": "[Verse 1]\n红纸贴....",
  "make_instrumental": false,
  "metadata": {
    "create_mode": "custom"
  }
  ,"output":"mp3"

}'
  • 这样生产出来的 audio_url 就会变成 mp3
  • audio_url: https://suno.day/m/b37ba5a6-5934-4372-b7a9-107030f1ed0c.mp3,
  • 如果是 "output":"mp3"status 会多出一个状态 downloading

其他