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를 사용하여 맞춤형 곡을 생성할 수 있습니다.