Suno 가사 생성 API 연동 설명

노래를 직접 생성하고 싶지만 가사를 직접 작성하고 싶지 않다면, AceDataCloud에서 제공하는 가사 생성 API를 사용하여 prompt를 통해 가사를 생성할 수 있습니다. API는 Suno Lyrics Generation API입니다.

요금: 생성 성공 후, 요청당 표준 비용은 0.08 Credits입니다. 한 번의 요청으로 여러 가사 후보가 반환되어도 한 번의 요청으로만 과금됩니다. 적용되는 소비 할인은 실제 청구서를 기준으로 하며, 실패한 요청에는 요금이 부과되지 않습니다.

이 API의 주요 입력 파라미터는 prompt이며, 선택적으로 model(선택 가능 값 default, remi-v1, 기본값 default)을 사용할 수 있습니다. 입력 예시는 다음과 같습니다:

여기서 입력한 prompt는 A song about winter이며, 겨울과 관련된 노래를 생성합니다.

실행을 클릭하면 결과는 다음과 같습니다:

{
  "success": true,
  "task_id": "2e26f7ff-0b82-4a60-bb9b-78db89f98b51",
  "data": [
    {
      "text": "[Verse]\nSnowflakes falling from the sky\nWinter's cold touch\nOh how it gets me high\nI bundle up in layers\nOh so cozy\nStepping out and feeling the frost on my nose\n\n[Chorus]\nOh\nWinter's cold touch\nIt's a season that I love so much\nSnowfall brings a feeling so divine\nWinter's cold touch\nIt's a magical time",
      "title": "Winter's Cold Touch",
      "status": "complete",
      "tags": ["dreamy, mellow, ballad"]
    },
    {
      "text": "[Verse]\nThe world is covered in a blanket of white\nIcicles hanging\nShimmering so bright\nThe chilly air fills my lungs with every breath\nWalking in the snow\nLeaving footprints behind\n\n[Chorus]\nWinter wonderland\nEverything is so bright\nWinter wonderland\nHold me through the night",
      "title": "Winter Wonderland",
      "status": "complete",
      "tags": ["dream pop, mellow, shoegaze"]
    }
  ],
  "started_at": 1780684179.15,
  "finished_at": 1780684186.583,
  "elapsed": 7.433
}

확인할 수 있듯이 data는 배열이며, 매번 여러 가사 후보가 반환됩니다. 그중 각 요소의 text 필드는 가사 내용이고, title은 제목이며, tags는 추천 곡 스타일 태그입니다.

가사가 준비되면 Suno Audios Generation API를 사용하여 사용자 정의 노래 생성을 진행할 수 있습니다.