Suno 混曲歌詞生成 API 對接說明

如果你想使用兩首歌曲的歌詞來生成混合歌曲,可以先使用該 API 來生成對應的歌詞,API 是 Suno MashupLyrics Generation API。

該 API 主要輸入參數是 lyrics_a、lyrics_b,填寫範例如下:

在 Suno 官網頁面,先從 Remix → Mashup 選曲。編輯器已有歌詞,再選入一首帶歌詞的歌時,Replace Lyrics? 彈出視窗提供 Mashup Lyrics。API 使用兩段歌詞文字,輸出可以填入建立歌曲時的 Lyrics。

Suno 官網 Replace Lyrics 彈出視窗中的 Mashup Lyrics 按鈕

{
  "lyrics_a": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away",
  "lyrics_b": "[Chorus]\nCarry one more light for me\nHome across the quiet sea"
}

點擊執行,結果如下:

{
  "success": true,
  "task_id": "5db9fc37-9824-445f-a92c-8957348b7d07",
  "data": {
    "text": "[singer A]\nWindow lights across the bay\nGuide the boats that drift away\n\n[transition]\n\n[singer B]\nCarry one more light for me\nHome across the quiet sea",
    "title": "Lyrics Mashup",
    "tags": [],
    "status": "complete"
  }
}

可以看到,data 的 text 欄位就是歌詞資訊。

有了歌詞之後,我們便可以使用 Suno Audios Generation API 來進行自訂歌曲生成了。