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 來進行自訂歌曲生成了。