Suno 歌词生成 API 对接说明

如果你想自定义生成歌曲,但又不太想自己编写歌词,可以使用 orchats 提供的歌词生成 API 来通过 prompt 生成歌词,API 是 Suno Lyrics Generation API。

计费:生成成功后,每次请求的标准费用为 0.08 Credits。一次请求返回多个歌词候选时仍只按一次计费;适用的消费优惠以实际账单为准,失败请求不收费。

该 API 主要输入参数是 prompt,可选 model(可选值 default、remi-v1,默认 default),填写样例如下:

对应官网 Create → Songs → Advanced → Lyrics → Help me write lyrics。

Suno 官网歌词助手中填写了与下方请求相同的提示词

这里输入一段关于海边灯笼的提示词。

{
  "prompt": "Write an original acoustic folk chorus about a lantern on the shore."
}

点击运行,结果如下:

{
  "success": true,
  "task_id": "063f0ad3-3933-4655-94a5-166fde41524f",
  "data": [
    {
      "text": "[Chorus]\nLantern on the shore\nLantern on the shore\nIt keeps my footsteps sure\nWhen the dark rolls in for more\n\nLantern on the shore\nLantern on the shore\nI follow that small gold flame\nAnd I don’t feel lost anymore",
      "title": "Shore Lantern",
      "status": "complete",
      "tags": [
        "Acoustic folk with fingerpicked guitar, brushed hand percussion, and a loping 6/8 sway; chorus opens wide after a sparse verse feel, then settles into a warm refrain with stacked harmony on the anchor line. Lead vocal is close-mic and intimate, with a soft double on the last words and a few airy ad-libs. Vinyl crackle intro, tide-foam ambience between phrases, wide but earthy mix.",
        "folk",
        "acoustic"
      ]
    },
    {
      "text": "[Chorus]\nLantern on the shore\nLantern on the shore\nGuide me home once more\nTill the dark lets go\n\n[Chorus]\nLantern on the shore\nLantern on the shore\nBurn for me once more\nTill the waves say no",
      "title": "Lantern on the Shore",
      "status": "complete",
      "tags": [
        "Acoustic folk with fingerpicked guitar, brushed kick and airy room harmonies; chorus opens sparse then widens with low humming doubles and a soft fiddle lift, pre-chorus feel implied by a gentle build into the hook, final chorus adds handclaps and a tidal swell of backing vocals. Warm, intimate, close-mic mix with a natural wooden glow.",
        "folk",
        "acoustic"
      ]
    }
  ],
  "started_at": 1796061011.339,
  "finished_at": 1796061021.686,
  "elapsed": 10.347,
  "cost": {
    "amount": 0.072,
    "currency": "credit",
    "list_amount": 0.08
  }
}

可以看到,data 是一个数组,每次会返回多个歌词候选,其中每个元素的 text 字段就是歌词内容,title 是标题,tags 是推荐的曲风标签。

有了歌词之后,我们便可以使用 Suno Audios Generation API 来进行自定义歌曲生成了。