Suno 노래 생성 API 연동 안내

AI의 활용 범위가 넓어지면서 각종 AI 프로그램이 점차 보편화되고 있습니다. AI는 사람들의 업무와 생활 전반에 점차 깊이 스며들고 있습니다. 또한 AI가 활용되는 산업도 처음의 글쓰기부터 의료와 교육을 거쳐 이제는 음악에 이르기까지 점점 늘어나고 있습니다.

Suno는 전문적이고 고품질의 AI 노래 및 음악 창작 플랫폼으로, 사용자는 간단한 텍스트 프롬프트만 입력하면 장르 스타일과 가사에 따라 보컬이 포함된 노래를 생성할 수 있습니다. 이 AI 음악 생성기는 Meta, TikTok, Kensho 등 유명 기술 기업 출신 팀원들이 개발했으며, 어떤 악기 도구도 필요 없이 모든 사람이 아름다운 음악을 만들 수 있도록 하는 것을 목표로 합니다.

실패 결과와 재시도

오류 객체에는 선택적 불리언 필드인 error.retryable이 포함될 수 있습니다. 이 값이 true일 때만 이번 실패에 대해 나중에 동일한 매개변수로 다시 요청할 수 있음을 의미하며, 예를 들어 명확히 접수되지 않은 일시적인 요청 제한이나 서비스 용량 부족이 이에 해당합니다. 백오프 간격을 사용하고 재시도 횟수를 제한하는 것이 좋습니다. 재시도에 성공한 요청은 일반 규칙에 따라 과금됩니다.

retryable: false는 그대로 재시도해서는 안 됨을 의미합니다. 필드가 없는 경우에는 HTTP 500, busy 또는 오류 문구만을 근거로 자동으로 다시 전송하지 마세요. 매개변수 누락, 소재 형식 또는 길이 불일치, 콘텐츠 심사 및 유효하지 않은 리소스는 먼저 수정해야 합니다. 제출 시간 초과, 연결 중단, 이미 접수된 작업의 폴링 또는 미디어 전달 실패 시에는 기존 task_id를 사용해 작업을 조회하는 것을 우선해야 합니다. 다시 제출하면 새로운 노래가 생성될 수 있습니다. 이 표시는 특정 내부 처리 단계가 아니라 원래의 공개 작업을 설명합니다.

다음은 모델 업데이트 진행 상황입니다:

버전 model 출시일 lyric 제한 style 제한 노래 최대 길이
v6 chirp-v6 2026.09.09 — — —
v6 Wild chirp-v6-wild 2026.09.09 — — —
v6 Mini chirp-v6-mini 2026.09.09 — — —
v5.5 chirp-v5-5 2026.03.27 5000 1000 8분
v5 chirp-v5 2025.09.23 5000 1000 8분
v4.5+ chirp-v4-5-plus 2025.07.17 5000 1000 8분
v4.5 chirp-v4-5 2025.05.03 5000 1000 4분
v4 chirp-v4 2024.12.17 3000 200 150초
v3.5 chirp-v3-5 --- 3000 200 120초

위 표의 lyric 및 style 제한은 사용자 지정 모드(custom이 true)에서의 상한입니다. 사용자 지정이 아닌 영감 모드(custom이 false)에서는 prompt만 입력하며, 길이 상한은 500자입니다(모든 모델에 동일하게 적용).

Suno는 현재 chirp-v6, chirp-v6-wild 및 chirp-v6-mini를 지원합니다. chirp-v6 사용을 권장하며, 이전 모델 이름도 계속 호환됩니다.

그러나 Suno 공식에서는 API를 제공하지 않으며, 零壹AI 는 Suno 공식 서비스를 모방하여 연동한 Suno API를 제공하므로 원하는 음악을 편리하고 빠르게 생성할 수 있습니다.

노래 요청 준비

애플리케이션 목록에 로그인하여 범용 애플리케이션을 열고 API KEY를 복사합니다. Suno 노래 디버깅 페이지에서는 애플리케이션을 직접 선택할 수 있으며, 자신의 코드에서는 복사한 값을 Authorization: Bearer {token}에 입력합니다. 제한된 키를 사용하여 비동기 노래를 제출할 때는 작업 조회 인터페이스도 허용해야 합니다.

기본 사용법

처음에는 영감 모드를 사용하여 노래를 생성할 수 있습니다. prompt에 a song for Christmas를 입력하고 기본값인 action: "generate"와 custom: false를 유지합니다. 동기 응답의 data[].audio_url로 바로 들어볼 수 있으며, 비동기로 제출할 때는 task_id를 저장하고 노래 작업 조회를 통해 결과를 가져옵니다.

여기에서 Request Headers를 설정한 것을 볼 수 있으며, 다음이 포함됩니다:

  • accept: 어떤 형식의 응답 결과를 받을지 지정하며, 여기서는 JSON 형식인 application/json을 입력합니다.
  • authorization: API를 호출하는 키로, 신청 후 드롭다운에서 바로 선택할 수 있습니다.

또한 Request Body를 설정했으며, 다음이 포함됩니다:

  • action:오디오 작업 유형이며, 기본값은 generate입니다. 생성, 이어 쓰기, 커버, 이어 붙이기, 트랙 분리, 트랙 추가, 지정된 트랙 추출, 효과음 생성, 속도 조절 등의 작업을 지원하며, 모두 POST /suno/audios를 통해 호출합니다.
  • prompt:Suno 공식 영감 모드의 프롬프트로, custom이 false일 때 적용되며 최대 500자입니다.
  • model:이번 음악 생성 작업의 모델입니다. v6 시리즈에는 chirp-v6, chirp-v6-wild, chirp-v6-mini가 포함되며, 이전 모델 이름도 계속 호환됩니다.
  • max_mode:강화 생성 모드입니다. generate는 custom과 max_mode가 모두 true일 때만 활성화되며 비용은 1.12 Credits입니다. add_stem은 직접 활성화할 수 있으며 비용은 1.344 Credits입니다. 비활성화하거나 생략하면 비용은 각각 0.56 Credits와 0.672 Credits입니다.
  • variety:생성 결과의 다양성 강도로, off, normal, high, extra, max를 선택할 수 있습니다. generate와 add_stem에만 사용되며, 다른 action에 전달하면 400을 반환합니다.
  • lyric:Suno 공식 사용자 지정 모드의 가사 내용입니다. chirp-v3-5와 chirp-v4는 최대 3000자이며, chirp-v4-5 이상(chirp-v5, chirp-v5-5 포함)은 최대 5000자입니다.
  • custom:사용자 지정 모드 사용 여부이며, 기본값은 false입니다.
  • instrumental:Suno 공식 영감 모드의 연주곡 옵션입니다.
  • title:Suno 공식 사용자 지정 모드의 음악 제목입니다. chirp-v3-5, chirp-v4는 최대 80자이며, chirp-v4-5 이상은 최대 100자입니다.
  • style:Suno 공식 사용자 지정 모드의 음악 스타일입니다. chirp-v3-5와 chirp-v4는 최대 200자이며, chirp-v4-5 이상(chirp-v5, chirp-v5-5 포함)은 최대 1000자입니다.
  • negative_tags:사용자 지정 생성 시 제외하고 싶은 음악 스타일 또는 장르이며, replace_section에도 사용할 수 있습니다. 이 인터페이스는 현재 이 필드에 고정된 글자 수 상한을 설정하지 않았습니다. 내용이 지나치게 길면 처리하지 못할 수 있으므로 설명을 간결하게 유지하는 것이 좋습니다.
  • audio_weight:오디오 또는 음성 특성의 영향 가중치로, 범위는 0-1이며 0도 유효한 값입니다. 생성, 이어 쓰기, 커버, 트랙 추가, 음성 일관성 등의 작업에 사용할 수 있으며, 참조 오디오나 음성 특성이 없으면 모델이 이 값의 영향을 줄이거나 무시할 수 있습니다.
  • audio_id:참조 음악의 ID로, 커버, 이어 쓰기, 트랙 분리 등의 후속 작업에 사용됩니다. 오디오 파일을 여전히 다운로드할 수 있다고 해서 해당 ID의 후속 처리를 항상 사용할 수 있는 것은 아닙니다. suno_processing_unavailable이 반환되면 task_id와 trace_id를 보관하여 지원팀에 문의하세요.
  • overpainting_start/overpainting_end:기존 연주곡에 보컬을 추가할 시작 및 종료 시간이며, 단위는 초입니다.
  • underpainting_start/underpainting_end:무반주 노래에 반주를 추가할 시작 및 종료 시간이며, 단위는 초입니다.
  • persona_id:Persona 또는 음성 생성 인터페이스를 통해 얻은 음성 ID이며, 곡의 audio_id가 아닙니다.
  • continue_at:이어 쓰기 경계이며, 단위는 초입니다. 예를 들어 213.5는 3분 33.5초 지점부터 후속 구간을 생성한다는 뜻입니다. lyric과 style은 경계 이후의 새 콘텐츠만 유도하며, 원본 오디오에서 경계 이전의 가사나 노래를 대체하지 않습니다.
  • style_influence:사용자 지정 모드에서의 스타일 영향력으로, 범위는 0-1이며 값이 클수록 일반적으로 선택한 스타일에 더 잘 부합합니다. 0은 유효한 값으로 전달됩니다.
  • replace_section_end:교체할 구간의 종료 시간입니다.
  • replace_section_start:교체할 구간의 시작 시간입니다.
  • vocal_gender:여성 또는 남성 보컬 선호도를 제어하며, 여성 보컬은 f, 남성 보컬은 m이고, 4.5 이상 모델에서 유효합니다. 선호 항목이므로 엄격하게 따르는 것을 보장하지 않습니다.
  • weirdness:사용자 지정 모드에서의 기이함 정도로, 범위는 0-1이며 값이 클수록 일반적으로 더 창의적이고 실험적입니다. 0은 유효한 값으로 전달됩니다.
  • duration:원하는 곡 길이로, 단위는 초이며 정수여야 하고 범위는 10부터 360까지입니다. 현재 generate만 이 매개변수를 사용하며, 구체적인 효과는 모드와 모델에 따라 달라집니다. 이는 강제 제약이 아닌 선호도 힌트입니다. 모델이 이를 참고하지만 해당 길이에 도달하는 것을 보장하지 않으며, 실제 완성 곡의 길이는 응답의 duration 필드를 기준으로 하고 일반적으로 원하는 값보다 짧습니다.

음성 ID의 적용 범위

generate, cover, upload_cover, artist_consistency, artist_consistency_vox는 persona_id를 사용할 수 있습니다. 마지막 두 action에는 persona_id를 반드시 제공해야 하며, 해당 Persona를 만들 때 사용한 곡의 audio_id도 함께 제공할 수 있습니다.

extend, upload_extend는 추가 persona_id를 사용하지 않습니다. mashup, inspo의 음성 ID 지원 여부는 선택한 서비스 채널에 따라 달라지며, 다른 action은 이 필드의 적용을 보장하지 않으므로 각 작업 설명에 따라 사용하세요. vocal_gender는 선택적인 성별 선호도이며 음성 ID를 대체할 수 없습니다.

후속 창작 작업에는 유효한 원본 audio_id가 필요하며, mashup에는 최소 두 개의 mashup_audio_ids가 필요합니다. 필요한 원본 또는 시간 매개변수가 없으면 HTTP 400을 반환합니다.

고급 매개변수의 적용 범위

매개변수 값 지원하는 action 설명
weirdness 0-1 선택 사항 실험성을 조절하며, 0은 유효한 값입니다. 효과는 작업, 모드, 모델에 따라 달라집니다
style_influence 0-1 선택 사항 스타일을 따르는 경향을 조절하며, 0은 유효한 값입니다. 효과는 작업, 모드, 모델에 따라 달라집니다
audio_weight 0-1 선택 사항 오디오 또는 음성 특성의 영향을 조절하며, 참조 정보가 없으면 모델이 무시할 수 있습니다
variety off / normal / high / extra / max generate, add_stem 결과 간의 스타일 다양성을 조절합니다
max_mode boolean generate(custom=true 필요), add_stem 일관성을 높이고 강화 모드에 따라 요금이 청구됩니다
vocal_gender f / m 보컬 제어를 지원하는 생성 작업 선호 사항이며, 엄격하게 따르는 것은 보장되지 않습니다
duration 정수 10-360 generate 원하는 길이입니다. 다른 action은 현재 이 필드를 사용하지 않으며, 실제 길이는 결과에 따릅니다

플랫폼은 매개변수의 유형과 값의 범위를 검증하지만, action이 다르다는 이유만으로 이러한 선택적 조절 항목을 거부하지는 않습니다. 구체적인 효과는 작업, 모드, 모델에 따라 결정됩니다.

  • lyric_prompt: 가사를 생성하는 prompt로, custom이 true이고 lyric이 전달되지 않았을 때에만 적용됩니다.
  • callback_url: 결과를 콜백받을 URL입니다.
  • async: 선택 사항이며, true로 설정하면 인터페이스가 즉시 task_id를 반환하므로 callback_url을 제공할 필요가 없으며, 이후 해당 작업 조회 인터페이스를 통해 폴링하여 결과를 가져옵니다.

생성된 코드는 다음과 같습니다:

「Try」 버튼을 클릭하여 API를 직접 테스트할 수 있으며, 1~2분 정도 기다리면 결과는 다음과 같습니다:

{
  "success": true,
  "task_id": "e72fb249-bd5b-4e2a-b20c-8a06fea5ac14",
  "trace_id": "7dbc5b6a-b2c0-4d85-9d39-fa8a8a785ccf",
  "data": [
    {
      "id": "b481b17a-bf50-4e10-8adc-4d5635050893",
      "title": "Under the Mistletoe",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-001",
      "lyric": "[Verse]\nSnowflakes falling on the ground\nTwinkling lights all around\nThe scent of pine fills the air\nChristmas magic everywhere\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right\n[Verse 2]\nStockings hung by the fire’s glow\nWarmth inside while the cold winds blow\nCookies baking\nSweet delight\nA season of joy shining bright\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right\n[Bridge]\nCarols sung by candlelight\nStars above make the world feel tight\nPeace and love\nA season’s creed\nFilling hearts with all we need\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T15:59:32.468Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "prompt": "A song for Christmas",
      "style": "holiday, cheerful, male vocals",
      "duration": 154.92
    },
    {
      "id": "fbf22dab-5e2b-4e02-84c0-6d7605f14c3d",
      "title": "Under the Mistletoe",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-002",
      "lyric": "[Verse]\nSnowflakes falling on the ground\nTwinkling lights all around\nThe scent of pine fills the air\nChristmas magic everywhere\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right\n[Verse 2]\nStockings hung by the fire’s glow\nWarmth inside while the cold winds blow\nCookies baking\nSweet delight\nA season of joy shining bright\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right\n[Bridge]\nCarols sung by candlelight\nStars above make the world feel tight\nPeace and love\nA season’s creed\nFilling hearts with all we need\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T15:59:32.468Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "prompt": "A song for Christmas",
      "style": "holiday, cheerful, male vocals",
      "duration": 158.48
    }
  ]
}

이때 제목, 미리보기 이미지, 가사, 오디오, 비디오 등을 포함한 두 곡의 내용을 얻은 것을 볼 수 있습니다.

필드 설명은 다음과 같습니다:

  • success: 생성 성공 여부이며, 성공하면 true, 그렇지 않으면 false
  • data: 생성된 곡의 상세 정보가 포함된 목록입니다.
    • state: 곡 생성 상태이며, 주로 네 가지가 있고 구체적으로 다음과 같습니다:
      • succeeded: 생성 성공
      • pending: 대기열에 있음
      • running: 실행 중
      • error: 실패
    • id: 곡 ID
    • title: 곡의 제목
    • image_url: 곡의 원본 커버 이미지 URL이며, 표시에 직접 사용할 수 있습니다.
    • image_large_url: 곡의 고화질 원본 커버 URL이며, 고화질 이미지가 있을 때 반환됩니다. 커버를 장기간 보관해야 할 경우 직접 다운로드하여 저장하세요.
    • lyric: 곡의 가사
    • audio_url: 곡의 최종 상태 오디오 주소입니다. 플랫폼은 零壹AI CDN 주소를 우선 반환하며, 영구 저장에 실패하면 원본 미디어 주소를 반환할 수 있으므로 적시에 다운로드하세요.
    • video_url: 곡의 비디오 파일이며, 열면 mp4 비디오가 표시됩니다.
    • created_at: 생성 시간
    • model: 사용한 모델이며, 일반적으로 최신 v3 모델입니다
    • style: 스타일

사용자 지정 생성

가사를 사용자 지정하여 생성하려면 가사를 입력할 수 있습니다:

이때 lyric 필드에 다음과 같은 내용을 전달할 수 있습니다:

[Verse]\nSnowflakes falling all around\nGlistening white\nCovering the ground\nChildren laughing\nFull of delight\nIn this winter wonderland tonight\nSanta's sleigh\nUp in the sky\nRudolph's nose shining bright\nOh my\nHear the jingle bells\nRinging so clear\nBringing joy and holiday cheer\n[Verse 2]\nRoasting chestnuts by the fire's glow\nChristmas lights\nThey twinkle and show\nFamilies gathering with love and cheer\nSpreading warmth to everyone near

여기 가사에서 \n은 줄바꿈 문자라는 점에 유의하세요. 가사를 생성하는 방법을 모른다면 零壹AI 가 제공하는 가사 생성 API를 사용해 prompt로 가사를 생성할 수 있으며, API는 Suno Lyrics Generation API입니다.

다음으로 가사, 제목, 스타일에 따라 노래를 사용자 지정 생성하려면 다음 내용을 지정할 수 있습니다.

  • lyric: 가사 텍스트
  • custom: true로 입력하면 사용자 지정 생성을 의미하며, 이 매개변수의 기본값은 false로 prompt를 사용해 생성한다는 의미입니다.
  • title: 노래의 제목.
  • style: 노래의 스타일, 선택 사항.

입력 예시는 다음과 같습니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다.

해당 코드:

curl -X POST 'https://api.01ai.cloud/suno/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
  "action": "generate",
  "prompt": "A song for Christmas",
  "model": "chirp-v4-5",
  "lyric": "[Verse]\\nSnowflakes falling all around\\nGlistening white\\nCovering the ground\\nChildren laughing\\nFull of delight\\nIn this winter wonderland tonight\\nSanta's sleigh\\nUp in the sky\\nRudolph's nose shining bright\\nOh my\\nHear the jingle bells\\nRinging so clear\\nBringing joy and holiday cheer\\n[Verse 2]\\nRoasting chestnuts by the fire's glow\\nChristmas lights\\nThey twinkle and show\\nFamilies gathering with love and cheer\\nSpreading warmth to everyone near",
  "custom": true
}'

테스트가 허용되며, 생성된 결과는 비슷합니다.

사용자 지정 가수 스타일 생성 기능

가수 스타일을 사용해 노래를 생성하려면 먼저 위의 기본 사용법을 통해 노래 한 곡을 생성합니다. 마지막으로 이 노래를 가수 스타일로 설정해야 하며, Suno Persona API에 들어가 공식적으로 생성된 음악 ID audio_id를 바탕으로 가수 스타일의 id 매개변수 persona_id를 생성해야 합니다. 구체적인 매개변수는 아래 그림과 같습니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다.

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/persona"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "audio_id": "97efc9f4-0e8d-4b3e-88df-14568fa1b11f",
    "name": "test"
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다.

{
  "success": true,
  "task_id": "7628b754-4fe7-4e79-bda4-806d0dd8bf6e",
  "data": {
    "persona_id": "e0d7319e-aa2a-44cb-b00a-916218d7cb0b"
  }
}

위의 audio_id와 persona_id인 97efc9f4-0e8d-4b3e-88df-14568fa1b11f와 e0d7319e-aa2a-44cb-b00a-916218d7cb0b를 각각 이번 예시 데이터로 사용합니다. 그런 다음 매개변수 action을 artist_consistency로 설정하고 (최신 버전의 가수 스타일 Persona-v2-vox인 경우 action을 반드시 artist_consistency_vox로 설정해야 합니다), 이어서 노래를 생성할 음악 ID와 가수 스타일 ID를 입력할 수 있으며, 입력 예시는 다음과 같습니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다.

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "artist_consistency",
    "prompt": "A song for Christmas",
    "model": "chirp-v4-5",
    "persona_id": "e0d7319e-aa2a-44cb-b00a-916218d7cb0b",
    "audio_id": "97efc9f4-0e8d-4b3e-88df-14568fa1b11f"
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다.

{
  "success": true,
  "task_id": "9b732b1a-bd67-48bc-95e4-90140e06836f",
  "trace_id": "30fcd88e-7687-4137-92d7-913b58115204",
  "data": [
    {
      "id": "727a36e2-8dce-4df7-99e5-14e44635c80f",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-003",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T16:27:33.979Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 244.4
    },
    {
      "id": "3b33301a-b17e-4b25-8842-09b46dab1a36",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-004",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T16:27:33.979Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 229.88
    }
  ]
}

결과 내용이 위의 내용과 일치하는 것을 볼 수 있으며, 이로써 가수 스타일을 사용해 노래를 생성하는 기능을 구현했습니다.

이어서 생성하는 기능

이미 생성된 Suno 곡을 이어서 생성하려면 매개변수 action을 extend로 설정하고, 이어서 생성할 곡의 ID를 입력하면 됩니다. 곡 ID는 기본 사용법에 따라 얻을 수 있으며, 위의 내용을 통해 이때 곡의 ID가 다음과 같음을 확인할 수 있습니다.

"id": "97efc9f4-0e8d-4b3e-88df-14568fa1b11f"

참고로, 여기 가사의 id는 생성된 곡의 ID입니다. 곡을 생성하는 방법을 모른다면 위의 기본 사용법을 참고하여 곡을 생성할 수 있습니다.

직접 업로드한 곡을 이어서 생성하려면 매개변수 action을 upload_extend로 설정하고, 이어서 생성할 사용자 업로드 곡의 ID를 입력하면 됩니다. 곡 ID는 Suno Upload Generation API를 사용하여 얻을 수 있으며, 아래 그림과 같습니다.

다음으로 이어서 생성할 구간의 가사를 반드시 입력해야 하며, 스타일을 지정할 수도 있습니다.

  • lyric: continue_at 이후에 새로 생성되는 구간의 가사를 유도하는 데만 사용되며, 원본 오디오에서 해당 시점 이전의 가사를 대체하지 않습니다.
  • custom: true로 입력하면 사용자 지정 생성을 의미하며, 이 매개변수의 기본값은 false로 prompt를 사용한 생성을 의미합니다.
  • style: 이어서 생성할 구간의 곡 스타일로, 선택 사항입니다.
  • continue_at: 이어서 생성할 경계 지점이며, 단위는 초입니다. 예를 들어, 213.5는 3분 33.5초 지점부터 후속 구간을 생성한다는 의미입니다.

extend와 upload_extend의 continue_at은 0보다 커야 하며, 30.792와 같은 소수 초를 지원합니다. 제출 시 정수로 반올림되지 않습니다.

extend는 기존 곡에 이어서 창작하는 데 사용되며, 곡 전체의 가사를 바꾸는 기능이 아닙니다. 곡 전체를 처음부터 새 가사로 사용하려면 generate를 사용하여 다시 생성하세요. 기존 곡을 참고하여 새롭게 해석하려면 cover를 사용할 수 있습니다. 곡 전체의 새 가사를 전달하더라도 continue_at 이전의 원래 가사는 대체되지 않습니다.

입력 예시는 다음과 같습니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다.

아래에는 실제 과거 호출 스냅샷이 보존되어 있으며, 여기서 continue_at은 2초이므로 처음 2초만 이어서 생성할 경계 이전의 원본 내용에 해당합니다. 실제로 곡의 끝부분에 가깝게 이어서 생성할 때는 이 값을 이어서 생성하기 시작할 초 단위 시점으로 설정하고, lyric에는 경계 이후에 부를 새 구간만 제공해야 합니다.

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "extend",
    "prompt": "A song for Christmas",
    "model": "chirp-v4-5",
    "audio_id": "97efc9f4-0e8d-4b3e-88df-14568fa1b11f",
    "continue_at": 2,
    "lyric": "[Verse]\\nSnowflakes falling all around\\nGlistening white\\nCovering the ground\\nChildren laughing\\nFull of delight\\nIn this winter wonderland tonight\\nSanta's sleigh\\nUp in the sky\\nRudolph's nose shining bright\\nOh my\\nHear the jingle bells\\nRinging so clear\\nBringing joy and holiday cheer\\n[Verse 2]\\nRoasting chestnuts by the fire's glow\\nChristmas lights\\nThey twinkle and show\\nFamilies gathering with love and cheer\\nSpreading warmth to everyone near",
    "custom": True,
    "instrumental": False
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다.

{
  "success": true,
  "task_id": "75b835d9-30d1-4641-8524-0aeedbdc9e1a",
  "trace_id": "44c41045-a2e1-4d19-aafc-7abd239d0d5c",
  "data": [
    {
      "id": "0a1e1b10-c36a-41c9-9bfb-b26d9d25db98",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-005",
      "lyric": "[Verse]\\nSnowflakes falling all around\\nGlistening white\\nCovering the ground\\nChildren laughing\\nFull of delight\\nIn this winter wonderland tonight\\nSanta's sleigh\\nUp in the sky\\nRudolph's nose shining bright\\nOh my\\nHear the jingle bells\\nRinging so clear\\nBringing joy and holiday cheer\\n[Verse 2]\\nRoasting chestnuts by the fire's glow\\nChristmas lights\\nThey twinkle and show\\nFamilies gathering with love and cheer\\nSpreading warmth to everyone near",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T16:38:35.509Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 165.92
    },
    {
      "id": "4334c5b4-0a44-4b26-a8f6-66cc4dbb8fc3",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-006",
      "lyric": "[Verse]\\nSnowflakes falling all around\\nGlistening white\\nCovering the ground\\nChildren laughing\\nFull of delight\\nIn this winter wonderland tonight\\nSanta's sleigh\\nUp in the sky\\nRudolph's nose shining bright\\nOh my\\nHear the jingle bells\\nRinging so clear\\nBringing joy and holiday cheer\\n[Verse 2]\\nRoasting chestnuts by the fire's glow\\nChristmas lights\\nThey twinkle and show\\nFamilies gathering with love and cheer\\nSpreading warmth to everyone near",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T16:38:35.509Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 158.84
    }
  ]
}

결과에서 lyric은 이번 이어서 생성 작업에 사용된 가사 텍스트를 반환한다는 것을 알 수 있습니다. 이 필드는 완성된 전체 오디오를 그대로 전사한 것이 아닙니다. extend의 경우 continue_at 이전의 원본 오디오는 여전히 원래 가사를 사용하며, 새 가사는 이어서 생성되는 구간을 유도하는 데만 사용됩니다.

전체 곡 가져오기

현재 모델의 extend 결과에는 일반적으로 continue_at 이전의 원본 오디오와 경계 이후의 새 콘텐츠가 이미 포함되어 있으므로, 먼저 반환된 오디오의 실제 길이와 내용을 기준으로 이미 완전한 곡인지 판단하세요. 반환된 것이 독립적인 이어쓰기 구간이거나 여러 차례의 이어쓰기 이력을 명시적으로 하나의 곡으로 병합해야 하는 경우에만 이어붙이기 기능을 사용하세요.

  • action: 내용은 concat입니다.
  • audio_id: 마지막 이어쓰기 구간의 ID입니다.

예를 들어 확장된 곡의 ID가 0a1e1b10-c36a-41c9-9bfb-b26d9d25db98이라면 매개변수를 다음과 같이 설정할 수 있습니다.

{
  "action": "concat",
  "audio_id": "0a1e1b10-c36a-41c9-9bfb-b26d9d25db98"
}

다른 매개변수는 그대로 두면 완전한 곡이 반환됩니다. 이는 모든 곡 구간을 이어붙인 결과이지만, 결과는 한 곡뿐이며 예시는 다음과 같습니다.

{
  "success": true,
  "task_id": "0f794915-8418-4124-93f5-b7eb3a417167",
  "trace_id": "62afcce0-e7e5-44b8-8c2e-4bba12a4f414",
  "data": [
    {
      "id": "0efec7e0-11bf-4313-9981-2c0e7218d7dd",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-007",
      "lyric": "[Verse]\\nSnowflakes falling all around\\nGlistening white\\nCovering the ground\\nChildren laughing\\nFull of delight\\nIn this winter wonderland tonight\\nSanta's sleigh\\nUp in the sky\\nRudolph's nose shining bright\\nOh my\\nHear the jingle bells\\nRinging so clear\\nBringing joy and holiday cheer\\n[Verse 2]\\nRoasting chestnuts by the fire's glow\\nChristmas lights\\nThey twinkle and show\\nFamilies gathering with love and cheer\\nSpreading warmth to everyone near\n[Verse]\\nSnowflakes falling all around\\nGlistening white\\nCovering the ground\\nChildren laughing\\nFull of delight\\nIn this winter wonderland tonight\\nSanta's sleigh\\nUp in the sky\\nRudolph's nose shining bright\\nOh my\\nHear the jingle bells\\nRinging so clear\\nBringing joy and holiday cheer\\n[Verse 2]\\nRoasting chestnuts by the fire's glow\\nChristmas lights\\nThey twinkle and show\\nFamilies gathering with love and cheer\\nSpreading warmth to everyone near",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T16:43:06.718Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 167.91997916666668,
      "concat_history": [
        {
          "continue_at": 2,
          "id": "97efc9f4-0e8d-4b3e-88df-14568fa1b11f",
          "infill": false,
          "source": "web",
          "type": "gen"
        },
        {
          "id": "0a1e1b10-c36a-41c9-9bfb-b26d9d25db98"
        }
      ]
    }
  ]
}

음악 커버

기존 곡을 바탕으로 곡을 이어서 생성한 후에는 반환된 곡의 스타일이 적절하지 않을 수 있습니다. 기존에 생성한 곡(직접 업로드한 음악도 지원)을 커버하려면 음악 커버 방법을 사용해야 하며, 다음 내용을 지정할 수 있습니다.

  • action: 내용은 cover이며, 직접 업로드한 음악을 커버할 때는 반드시 upload_cover로 지정해야 합니다.
  • audio_id: 이전에 생성한 곡의 ID입니다.

지정된 목소리로 커버하려면 persona_id를 함께 전달할 수 있습니다. /suno/voices를 통해 생성한 비공개 목소리는 먼저 /suno/upload에서 동일한 persona_id를 포함하여 원곡을 업로드한 다음, 반환된 audio_id를 사용해 upload_cover를 수행해야 합니다. 각 단계에서는 동일한 서비스 채널을 사용해야 합니다. vocal_gender를 별도로 지정할 필요는 없으며, 성별 선호도는 목소리 ID를 대신할 수 없습니다.

예를 들어 기존에 생성한 곡의 ID가 0a1e1b10-c36a-41c9-9bfb-b26d9d25db98이라면 매개변수를 다음과 같이 설정할 수 있습니다.

{
  "action": "cover",
  "audio_id": "0a1e1b10-c36a-41c9-9bfb-b26d9d25db98",
  "prompt": "A song for Christmas",
  "model": "chirp-v4-5"
}

다른 매개변수는 그대로 두면 커버된 곡이 반환됩니다. 이는 기존에 생성한 곡을 커버한 결과이며, 예시는 다음과 같습니다.

{
  "success": true,
  "task_id": "b9d43d06-2e0a-4b5e-9e0d-7dfab32e00ab",
  "trace_id": "6c5e567d-0fdc-4c44-9b36-4090d9a75ff5",
  "data": [
    {
      "id": "6988fa57-f810-41cf-afab-7838db2c77dc",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-008",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T16:44:13.007Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 182.4
    },
    {
      "id": "ce98b991-0258-4f05-8245-e43d4efa8fb8",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-009",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-17T16:44:13.007Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 179.72
    }
  ]
}

생성된 결과는 위와 비슷하며, 이로써 기존에 생성한 곡을 커버하여 생성하는 과정이 완료됩니다.

구간 교체

replace_section은 원곡의 시간 구간을 기준으로 선택한 구간을 다시 생성하고 결과를 원곡에 다시 이어붙입니다. replace_section_result_mode의 기본값은 full_song이며, 완전한 곡 2개를 반환하므로 다시 concat을 호출할 필요 없이 바로 재생할 수 있습니다.

입력 방법

  • action: replace_section.
  • audio_id: 편집할 전체 곡의 ID. 다시 편집할 때는 task_id가 아닌 이전에 선택한 전체 곡의 data[].id를 사용합니다.
  • model: 곡 생성 모델, 예: chirp-v6.
  • lyric: 선택 구간에서 부를 일부분의 새 가사. 전체 곡을 얻기 위해 전체 가사를 전달할 필요는 없습니다.
  • prompt: 이번에 교체할 일부분의 새 가사를 명확하게 지정합니다. 가사를 변경할 때는 두 필드가 서로 다른 가사를 표현하지 않도록 lyric과 동일한 내용을 입력하는 것이 좋습니다. 일부분의 lyric만 전달하고 prompt를 생략한 기존 요청도 여전히 사용할 수 있지만, prompt를 추가하는 것만으로 가사 변경의 성공이 보장되지는 않습니다.
  • style, negative_tags: 선택 사항인 스타일 설명과 제외 항목; 이 작업에서 prompt는 일반적인 곡 생성 시의 영감 설명이 아닙니다.
  • replace_section_start, replace_section_end: 이번 소스 곡에서 선택 구간의 시작 및 종료 시간으로, 단위는 초이며 소수를 지원합니다. 시작점은 0보다 작을 수 없고, 종료점은 시작점보다 커야 하며 소스 곡의 길이를 초과할 수 없습니다.
  • replace_section_result_mode: full_song(기본값)은 전체 곡 2개를 반환하고, candidates는 아직 이어 붙이지 않은 교체 후보 2개를 반환합니다.

“lyric은 반드시 교체 후의 전체 가사여야 하고, prompt는 반드시 일부분의 가사여야 한다”를 일반적인 사용법으로 삼지 마세요. 전체 가사를 입력하면 일부 작업에서 지나치게 긴 교체 내용이 생성되어, 이어 붙인 후 전체 곡이 현저히 길어질 수 있습니다. 일부분을 입력해도 고정된 길이나 가사를 한 글자도 빠짐없이 따르는 것은 보장되지 않습니다. 이는 생성형 편집이므로 실제 오디오를 확인해야 합니다.

작업 시작 및 전체 곡 가져오기

아래는 요청 형식의 예시입니다. YOUR_COMPLETED_AUDIO_ID와 시간 구간을 자신의 소스 곡 ID와 실제 선택 구간으로 바꾸세요. 이 예시는 30~50초가 아래 네 줄에 해당한다고 가정합니다.

{
  "action": "replace_section",
  "audio_id": "YOUR_COMPLETED_AUDIO_ID",
  "model": "chirp-v6",
  "custom": false,
  "instrumental": false,
  "lyric": "晚风吹过安静的街巷\n绿色风筝停在我身旁\n我们沿着河岸轻轻唱\n把今天的故事放心上",
  "prompt": "晚风吹过安静的街巷\n绿色风筝停在我身旁\n我们沿着河岸轻轻唱\n把今天的故事放心上",
  "replace_section_start": 30.0,
  "replace_section_end": 50.0,
  "replace_section_result_mode": "full_song",
  "async": true
}

제출한 후 반환된 task_id를 사용해 /suno/tasks를 조회하며, 요청 본문은 {"action":"retrieve","id":"YOUR_TASK_ID"}입니다. 작업이 완료되면 작업 응답의 response.data에서 전체 곡 2개의 id, audio_url, duration을 가져와 들어본 후 그중 하나를 선택합니다. success: true는 작업이 성공적으로 실행되었음을 뜻하며, 새 가사를 한 글자도 빠짐없이 불렀거나 길이가 예상에 부합한다는 뜻은 아닙니다.

선택 구간, 결과 확인 및 다시 편집

  1. 먼저 소스 곡을 들어본 다음 /suno/timing의 시간 정보를 함께 참고하여 선택 구간을 정하고, 되도록 완전한 악구를 포함하세요. 가사 배열의 고정된 인덱스에 따라 구간을 선택하지 말고, 더 많은 악구를 포함한 구간을 몇 줄의 가사로 교체하면서 리듬이 완전히 변하지 않기를 기대하지도 마세요.
  2. 새 가사의 줄 수, 글자 수, 리듬을 선택 구간의 원래 내용에 최대한 가깝게 맞추세요. 몇 글자만 바꿔도 들어보며 검증해야 하며, 이를 근거로 성공을 보장할 수는 없습니다.
  3. 대상 구간에서 새 가사를 부르는지, 앞뒤 연결이 자연스러운지, 전체 곡의 길이가 합리적인지 확인하세요. full_song은 전체 곡을 반환한다는 뜻이지 원곡과 길이가 같다는 뜻은 아닙니다. 교체 구간이 길어지면 후반부도 그에 따라 뒤로 밀립니다. duration 요청 매개변수는 일반 생성에만 사용되며, 교체 구간의 길이를 고정할 수 없습니다.
  4. 반환된 lyric은 가사 메타데이터이며, 전체 곡 모드에서는 소스 가사의 시간 정보를 가져올 수 있을 때 전체 가사를 조합합니다. 가져올 수 없을 때는 비어 있을 수 있습니다. 이는 오디오 전사가 아니므로, 새 가사가 표시된다고 해서 오디오에서 새 가사를 불렀다는 증거가 되지는 않습니다. 시간 정렬 정보도 들어보며 함께 확인해야 하며, 특히 이미 편집한 결과물은 더욱 그렇습니다.
  5. 다시 편집할 때는 선택한 전체 완성본 ID를 새로운 audio_id로 사용하고, 해당 완성본의 길이와 선택 구간을 다시 확인하세요. 편집 전의 시간 좌표를 그대로 사용하지 말고, 지난번에 반환된 전체 lyric을 이번 일부분 입력으로 직접 사용하지도 마세요.

작업이 완료되었는데도 여전히 기존 가사를 부르거나, 가사가 빠지거나, 길이가 현저히 늘어났다면 먼저 소스 곡 ID, 선택 구간, 일부분의 가사를 확인한 다음 다른 결과 곡도 확인하세요. 작업 조회 빈도를 늘려도 이미 생성된 내용은 바뀌지 않습니다. 여전히 이상이 있다면 확인할 수 있도록 task_id, 소스 곡 ID, 요청 필드, 선택 구간 및 결과 오디오를 보관하세요.

선택 사항: 먼저 후보를 가져온 후 수동으로 이어 붙이기

교체 후보를 직접 골라야 할 때만 replace_section_result_mode: "candidates"로 설정하세요. 후보에는 문맥이 포함될 수 있으므로 후보의 길이만으로 전체 곡이라고 여겨서는 안 됩니다. 선택한 후 후보의 data[].id로 concat을 호출하여 전체 완성본을 가져옵니다.

기본값인 full_song은 이미 이어 붙이기가 완료되었으므로 이 단계를 수행할 필요가 없습니다.

보컬과 반주 분리

과금: action=stems가 성공하면 요청당 표준 비용은 0.56 Credits입니다. 동일한 요청에서 반환된 보컬과 반주는 합쳐서 한 번으로 계산합니다. 적용되는 사용 할인은 실제 청구서를 기준으로 하며, 실패한 요청에는 요금이 부과되지 않습니다. all_stems와 extract_stem은 각각의 가격에 따라 과금됩니다.

곡을 생성한 후 반주와 보컬을 별도로 조작하는 2차 창작이 필요한 경우, 순수 음악 반주와 무반주 보컬을 분리할 수 있습니다. 이때 다음 내용을 지정할 수 있습니다.

  • action: 내용은 stems.
  • audio_id: 이전에 생성한 곡의 ID.

예를 들어 이전에 생성한 곡의 ID가 ec13e502-d043-4eb2-92ee-e900c6da69d1이라면, 다음과 같이 매개변수를 설정할 수 있습니다.

{
  "action": "stems",
  "audio_id": "ec13e502-d043-4eb2-92ee-e900c6da69d1"
}

위 매개변수를 통해 보컬과 반주가 분리된 결과를 얻을 수 있으며, 결과는 다음과 같습니다.

{
  "success": true,
  "task_id": "4050affc-f8a6-4cba-a86c-bf201eed053d",
  "trace_id": "5107ee58-687d-422f-9195-fa0e82e1fcc8",
  "data": [
    {
      "id": "e3de0928-085a-42c4-b982-3b24738d1989",
      "title": "Deck the Sky - Vocals",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-013",
      "lyric": "[Verse]\nSnowflakes dance on rooftops high\nChildren's laughter fills the sky\nCarols ring from church bells loud\nHolidays a joyful crowd\n[Verse 2]\nCandy canes and cocoa warm\nWrapped up tight in our own storm\nStockings hung with dreams and cheer\nMagic growing every year\n[Chorus]\nDeck the sky with twinkling stars\nHoliday joy feels ours and ours\nSing the songs of love and light\nChristmas glows so pure and bright\n[Verse 3]\nFireside tales of long ago\nReindeer prance in icy glow\nEvergreen and tinsel’s gleam\nChristmas time a lovely dream\n[Bridge]\nHearts are full with friends and kin\nMistletoe for love to win\nGifts of love and hope we share\nChristmas spirit everywhere\n[Chorus]\nDeck the sky with twinkling stars\nHoliday joy feels ours and ours\nSing the songs of love and light\nChristmas glows so pure and bright",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "https://cdn.acedata.cloud/assets/examples/gemini/04a043bd-6b23-4b4e-945c-ce48158c3eee-3a89912507c7.mp4?example=video-001",
      "created_at": "2025-01-05T07:49:16.881Z",
      "model": "",
      "state": "succeeded",
      "style": "holiday, jolly",
      "duration": 174.16
    },
    {
      "id": "ad5d7c89-709c-4eb4-a5a6-72f9f5e57fdb",
      "title": "Deck the Sky - Instrumental",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-014",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "https://cdn.acedata.cloud/assets/examples/gemini/04a043bd-6b23-4b4e-945c-ce48158c3eee-3a89912507c7.mp4?example=video-002",
      "created_at": "2025-01-05T07:49:16.892Z",
      "model": "",
      "state": "succeeded",
      "style": "holiday, jolly",
      "duration": 174.16
    }
  ]
}

생성된 결과는 위와 유사하며, 이로써 기존에 생성한 곡의 보컬과 반주를 분리하는 과정이 완료됩니다.

전체 트랙 보컬 및 반주 분리

작업은 모든 오디오 트랙의 생성이 완료될 때까지 기다린 후에 성공 최종 상태를 반환합니다. 처리 중에 재생 가능한 주소가 나타난다고 해서 전체 오디오 트랙의 처리가 완료된 것은 아닙니다.

곡을 생성한 후 전체 트랙의 보컬 및 반주 분리 작업을 수행해야 하는 경우, 다음 내용을 지정할 수 있습니다.

  • action: 내용은 all_stems입니다.
  • audio_id: 이전에 생성한 곡의 ID입니다.

예를 들어 기존에 생성한 곡의 ID가 bdf23a5a-59f5-4103-b452-054a824a7f9f라면, 매개변수를 다음과 같이 설정할 수 있습니다.

{
  "action": "all_stems",
  "audio_id": "bdf23a5a-59f5-4103-b452-054a824a7f9f"
}

위 매개변수를 통해 전체 트랙의 보컬 및 반주 분리 결과를 얻을 수 있으며, 결과는 다음과 같습니다.

  "success": true,
  "task_id": "f4b16fb9-8478-4857-88c7-b9a1f0bb9518",
  "trace_id": "9c560ebd-4fc6-4bdb-988a-8890160a92fb",
  "data": [
    {
      "id": "f86ca64a-9519-4ea7-a592-52438e001412",
      "title": "安全之弦 (Vocals)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-015",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "99e649a7-a394-47b9-a915-d7f847285a36",
      "title": "安全之弦 (Backing Vocals)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-016",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "6d710bf7-809f-4fdc-bb63-b8cb3a456d42",
      "title": "安全之弦 (Drums)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-017",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "e05f07e3-7d80-4713-8e51-7f176c733543",
      "title": "安全之弦 (Bass)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-018",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    },
{
      "id": "93fe7cd8-62fd-4739-b78e-142c7e0b8562",
      "title": "안전의 현 (기타)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-019",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "8367d71c-fdd3-441c-8ebe-70c33cca821b",
      "title": "안전의 현 (키보드)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-020",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "28c03590-731c-416e-8fd3-95cdb3d75043",
      "title": "안전의 현 (타악기)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-021",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "3d4c1a28-4e1c-485a-8201-d21bb93aca2f",
      "title": "안전의 현 (현악기)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-022",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "b9db8ded-01ec-4e37-b8a5-64aab3a814c2",
      "title": "안전의 현 (신시사이저)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-023",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "10a5248e-32e6-42b9-8da1-678a8a392aef",
      "title": "안전의 현 (효과음)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-024",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "2d272128-111f-4901-8f62-5ae1eb43095a",
      "title": "안전의 현 (금관악기)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-025",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "4a7c19a5-f8d4-4e4a-add9-aa0bad9307cc",
      "title": "안전의 현 (목관악기)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-026",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "1ca774f9-3e75-48a6-941b-808875eadcd2",
      "title": "안전의 현 (보컬)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-027",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.770Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    }, {
      "id": "14c5ffc7-addf-4fee-afd2-4b8b3e7ee470",
      "title": "안전의 현 (백 보컬)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-028",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "성공",
      "duration": 154.92
    },
{
      "id": "9d044557-450d-48ab-90dc-8eaf6f1cdb6c",
      "title": "안전의 현 (드럼)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-029",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "efd052d0-c12f-47b3-8282-1f3ef7610e1f",
      "title": "안전의 현 (베이스)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-030",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "5775372b-292e-4420-96ef-60e57a60cc1f",
      "title": "안전의 현 (기타)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-031",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "dab3f220-19cd-408e-9b96-30ec18f5b049",
      "title": "안전의 현 (키보드)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-032",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "2d0cd6d4-af82-4bb5-86fe-d92bdb367157",
      "title": "안전의 현 (타악기)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-033",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "f3191a1a-5e8d-4afe-b638-3add222d52cd",
      "title": "안전의 현 (현악기)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-034",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "a8834ea5-200b-4206-a812-9780ef336660",
      "title": "안전의 현 (신시사이저)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-035",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "f50d1a31-ef72-400a-b8ae-0367849d007d",
      "title": "안전의 현 (효과음)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-036",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "cb581673-23cc-40d6-9f9b-0f76720f0d18",
      "title": "안전의 현 (금관악기)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-037",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }, {
      "id": "d91cfb52-f0a3-4546-bf8a-2ad14c3775a5",
      "title": "안전의 현 (목관악기)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-038",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-06-11T02:40:30.771Z",
      "model": "chirp-ahi-stem-12-t1",
      "state": "succeeded",
      "duration": 154.92
    }
  ]
}

생성된 결과는 위와 비슷하며, 이로써 기존에 생성한 노래의 보컬과 반주를 분리하는 과정이 완료됩니다.

오디오 트랙 추가

add_stem은 지정된 오디오에 대해 대상 악기 또는 사운드 트랙을 생성하며, POST /suno/audios를 통해 호출합니다.

  • 필수: action, audio_id, stem_type.
  • 선택: model, prompt, title, style, negative_tags, weirdness, style_influence, audio_weight, max_mode, variety.
  • 요금: 일반 모드 0.672 Credits; max_mode가 true일 때 1.344 Credits.
{
  "action": "add_stem",
  "audio_id": "dead4ee5-df4d-417b-8f7e-717722fae51a",
  "stem_type": "bass",
  "model": "chirp-v6",
  "prompt": "Add warm bass guitar",
  "style": "minimal piano pulse with warm bass guitar",
  "negative_tags": "vocals",
  "variety": "normal",
  "max_mode": false,
  "async": true
}

최종 상태 응답:

{
  "success": true,
  "task_id": "82851953-9590-4334-8bb8-ae30ccadc815",
  "trace_id": "862bbcce-1678-44ff-982d-8b439c126a5e",
  "data": [
    {
      "id": "0adc26ca-2720-4c69-b237-457a986d70e3",
          "audio_url": "https://cdn.acedata2.cloud/suno/0adc26ca-2720-4c69-b237-457a986d70e3.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 12.8
    },
    {
      "id": "e2d39a6c-1d20-4a40-adaf-b2551815d869",
          "audio_url": "https://cdn.acedata2.cloud/suno/e2d39a6c-1d20-4a40-adaf-b2551815d869.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 12.36
    }
  ],
  "cost": {"amount": 0.6048, "currency": "credit", "list_amount": 0.672}
}

오디오 트랙 추출

extract_stem은 지정된 오디오에서 대상 트랙을 추출하고, 해당 트랙을 제거한 상보 버전도 함께 반환하며, POST /suno/audios를 통해 호출합니다.

  • 필수: action, audio_id, stem_type.
  • 선택: audio_format, 현재 공개 2채널 계약은 mp3만 지원합니다.
  • 요금: 1.12 Credits.
{
  "action": "extract_stem",
  "audio_id": "dead4ee5-df4d-417b-8f7e-717722fae51a",
  "stem_type": "bass",
  "audio_format": "mp3",
  "async": true
}

최종 상태 응답의 data는 평면 오디오 목록을 유지하며, stem_sets는 대상 트랙과 상보 트랙의 대응 관계를 나타냅니다:

{
  "success": true,
  "task_id": "ae9557d0-4ff7-4a35-bcde-d881e78fbfe5",
  "trace_id": "82c51a55-7627-41a5-b72b-1b9775ca25f2",
  "data": [
    {"id":"3084d7e1-4278-4733-8b56-56f7ecf3f859","title":"(Bass)","audio_url":"https://cdn.acedata2.cloud/suno/3084d7e1-4278-4733-8b56-56f7ecf3f859.mp3","model":"chirp-v6","state":"succeeded","duration":12.8,"stem_set":1},
    {"id":"19b83ca9-a51d-494f-a41d-5b0957f3295e","title":"(Without Bass)","audio_url":"https://cdn.acedata2.cloud/suno/19b83ca9-a51d-494f-a41d-5b0957f3295e.mp3","model":"chirp-v6","state":"succeeded","duration":12.8,"stem_set":1},
    {"id":"7eb431e8-f4db-4915-902e-0e89d2b3185a","title":"(Bass)","audio_url":"https://cdn.acedata2.cloud/suno/7eb431e8-f4db-4915-902e-0e89d2b3185a.mp3","model":"chirp-v6","state":"succeeded","duration":12.8,"stem_set":2},
    {"id":"495d29cc-5790-4d0a-8b95-9551a6127b61","title":"(Without Bass)","audio_url":"https://cdn.acedata2.cloud/suno/495d29cc-5790-4d0a-8b95-9551a6127b61.mp3","model":"chirp-v6","state":"succeeded","duration":12.8,"stem_set":2}
  ],
  "stem_sets": [
    {"stem_type":"bass","isolated":{"id":"3084d7e1-4278-4733-8b56-56f7ecf3f859","state":"succeeded","stem_set":1},"remainder":{"id":"19b83ca9-a51d-494f-a41d-5b0957f3295e","state":"succeeded","stem_set":1}},
    {"stem_type":"bass","isolated":{"id":"7eb431e8-f4db-4915-902e-0e89d2b3185a","state":"succeeded","stem_set":2},"remainder":{"id":"495d29cc-5790-4d0a-8b95-9551a6127b61","state":"succeeded","stem_set":2}}
  ],
  "cost": {"amount": 1.008, "currency": "credit", "list_amount": 1.12}
}

음향 효과 생성

sounds는 텍스트 설명을 바탕으로 일회성 또는 반복 가능한 음향 효과를 생성하며, POST /suno/audios를 통해 호출합니다.

  • 필수: action, sound, sound_type.
  • 선택: model, bpm, key, audio_format; audio_format은 현재 mp3만 지원합니다.
  • sound_type: one-shot 또는 loop.
  • 요금: 0.112 Credits.
{
  "action": "sounds",
  "sound": "single soft analog synth pluck, no reverb",
  "sound_type": "one-shot",
  "model": "chirp-v6",
  "bpm": 120,
  "key": "C",
  "audio_format": "mp3",
  "async": true
}
{
  "success": true,
  "task_id": "f6716546-d118-40a0-ad15-09999f9f22ba",
  "trace_id": "da4c7895-e494-4bd8-83bd-132e006c94e3",
  "data": [
    {"id":"b3cd3e7d-96e4-48ef-abde-73c7ddee8b4a","title":"single soft analog synth pluck, no reverb","audio_url":"https://cdn.acedata2.cloud/suno/b3cd3e7d-96e4-48ef-abde-73c7ddee8b4a.mp3","model":"chirp-v6","state":"succeeded","duration":10},
    {"id":"f1517867-b76a-4cdf-b006-9ce6e653e0a5","title":"single soft analog synth pluck, no reverb","audio_url":"https://cdn.acedata2.cloud/suno/f1517867-b76a-4cdf-b006-9ce6e653e0a5.mp3","model":"chirp-v6","state":"succeeded","duration":10}
  ],
  "cost": {"amount": 0.1008, "currency": "credit", "list_amount": 0.112}
}

오디오 속도 조절

adjust_speed는 지정된 오디오의 재생 속도를 조정하며, POST /suno/audios를 통해 호출합니다.

  • 필수: action, audio_id, speed_multiplier, title.
  • 선택: keep_pitch.
  • speed_multiplier: 범위 0.25–4.
  • 요금: 0.28 Credits.
{
  "action": "adjust_speed",
  "audio_id": "dead4ee5-df4d-417b-8f7e-717722fae51a",
  "speed_multiplier": 1.1,
  "keep_pitch": true,
  "title": "Suno contract verification speed 1.1x",
  "async": true
}

원본 오디오의 길이는 9.8초이며, 1.1배속 결과는 8.909090909초입니다:

{
  "success": true,
  "task_id": "c5860fdd-76b1-40a1-b5b5-ec047e471c8a",
  "trace_id": "292ed097-3631-441c-ac80-52f326b62726",
  "data": [
    {
      "id": "02534b52-45a7-4961-834a-f473a407e62c",
      "title": "Suno contract verification speed 1.1x",
      "audio_url": "https://cdn.acedata2.cloud/suno/02534b52-45a7-4961-834a-f473a407e62c.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 8.909090909090908
    }
  ],
  "cost": {"amount": 0.252, "currency": "credit", "list_amount": 0.28}
}

생성 모델은 무작위성을 가집니다. 인터페이스는 매개변수의 의미, 작업 상태 및 응답 구조의 일관성을 보장하지만, 서로 다른 요청에서 완전히 동일한 파형이 생성되는 것은 보장하지 않습니다.

사용자 지정 생성의 고급 매개변수

공식적으로 사용자 지정 모드에서 고급 매개변수 weirdness==>Weirdness, style_influence==>Style Influence, audio_weight==>Audio Influence를 사용하여 생성할 수 있으며, 이에 해당하는 공식 예시는 다음과 같습니다:

고급 매개변수의 범위는 모두 0–1이며, 구체적인 매개변수는 아래 그림과 같습니다:

입력을 완료하면 다음과 같이 코드가 자동으로 생성됩니다:

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "generate",
    "model": "chirp-v4-5",
    "lyric": "Hello Hello Hello ",
    "custom": True,
    "weirdness": 0.4,
    "style_influence": 0.4,
    "audio_weight": 0.4
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다:

{
  "success": true,
  "task_id": "2f3aa682-e1a7-43a9-9fbb-ed0ce8668a4b",
  "trace_id": "07408194-7deb-4a52-a36d-9a9a13143b5f",
  "data": [
    {
      "id": "c66e2077-7580-43f2-9937-c67a8afcd8bd",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-039",
      "lyric": "Hello Hello Hello ",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-07-10T12:54:35.199Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 187.92
    },
    {
      "id": "a922f97b-307c-4c4d-aae3-a47ba8202a10",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-040",
      "lyric": "Hello Hello Hello ",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-07-10T12:54:35.199Z",
      "model": "chirp-auk",
      "state": "succeeded",
      "style": "",
      "duration": 229.64
    }
  ]
}

이렇게 고급 매개변수를 사용하여 사용자 지정 곡을 생성했으며, 결과는 위와 비슷합니다.

곡 길이 제어

기본적으로 생성되는 곡의 길이는 모델이 스스로 결정하며, 일반적으로 30초에서 4분 사이입니다. 더 길거나 짧은 결과물이 필요한 경우 duration 매개변수로 원하는 길이를 지정할 수 있으며, 단위는 초이고 값은 10부터 360 사이의 정수입니다.

이 매개변수는 사용자 지정 모드(custom이 true)의 곡 생성에 사용됩니다. 특히 duration은 경향성 힌트이지, 강제 제약이 아닙니다: 모델은 창작 시 이 값을 참고하지만, 그 길이에 도달하는 것은 보장하지 않습니다. 실제 테스트에서는 실제 길이가 보통 원하는 값보다 상당히 짧았으며, 같은 요청에서 반환된 두 곡의 길이도 몇 배까지 차이 날 수 있습니다. 완전히 동일한 요청이라도 여러 번 제출하면 얻어지는 길이가 크게 다를 수 있습니다. 따라서 이를 정확한 길이 제어 수단으로 사용하지 말고, 업무상 고정된 길이가 필요하다면 결과물을 받은 후 직접 자르거나 다시 시도하세요.

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "generate",
    "model": "chirp-v5-5",
    "custom": True,
    "title": "Under the City Lights",
    "style": "lo-fi piano",
    "lyric": "[Verse]\nSunrise creepin\nGold on the floor\n[Chorus]\nUnder the city lights\n",
    "duration": 330
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

주의할 점은 요청의 duration은 원하는 길이이고, 응답의 data에 있는 각 곡의 duration 필드는 해당 곡의 실제 길이라는 것입니다. 두 항목은 이름은 같지만 의미가 다르며, 실제 길이가 원하는 값과 같다는 보장은 없습니다. 가사 길이는 결과물의 길이에 영향을 미치는 주요 요소 중 하나이므로, 더 긴 결과물이 필요하다면 더 완전한 가사도 함께 제공하는 것이 좋습니다.

인터페이스는 duration이 10부터 360 사이의 정수인지 검증합니다. 이 값은 여전히 생성 목표일 뿐, 결과물의 길이를 보장하지는 않습니다.

반주 추가 기능

2025년 8월에 suno에서 새로 Add Instrumental 기능이 출시되었습니다. 먼저 반주가 없는 무반주 노래를 업로드하여 suno가 반주를 만들어 주도록 해야 합니다. 우선 Suno Upload API에 반주가 없는 무반주 노래를 업로드할 수 있으며, 해당 작업은 아래 그림과 같습니다:

그다음 업로드 후의 audio_id를 기록해야 하며, 구체적인 결과는 아래 그림과 같습니다:

마지막으로 audio_id 하나를 얻었습니다: 92254cab-3372-4d9e-bce9-cdcfdbc39070. 그리고 다음 매개변수도 입력해야 합니다:

  • action: 내용은 underpainting입니다.
  • underpainting_start: 업로드한 노래에 반주를 추가할 시작 시간이며, 기본값은 0입니다.
  • underpainting_end: 업로드한 노래에 반주를 추가할 종료 시간이며, 노래의 전체 길이보다 작아야 합니다.
  • audio_id: 업로드한 반주가 없는 무반주 노래의 ID입니다.
  • style: 반주의 스타일이며, 어차피 반주이므로 가사를 사용하지 않는 것이 좋습니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다:

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "underpainting",
    "model": "chirp-v4-5",
    "style": "Pop rap, uplifting, magnetic male vocals, piano, synth, electric guitar, driving bass, clear structure",
    "audio_id": "92254cab-3372-4d9e-bce9-cdcfdbc39070",
    "underpainting_end": 120
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다:

{
  "success": true,
  "task_id": "822d2e14-c535-4d48-a4e5-1b6ab00b04a7",
  "trace_id": "257eac2c-8e4f-44d0-8454-5e215111eefa",
  "data": [
    {
      "id": "2788cd21-bd84-422d-beb5-859c60fbf5b6",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-041",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-08-27T15:25:42.548Z",
      "model": "chirp-v4",
      "state": "succeeded",
      "style": "Pop rap, uplifting, magnetic male vocals, piano, synth, electric guitar, driving bass, clear structure",
      "duration": 10.16
    },
    {
      "id": "a4bb7220-e971-4cbf-a626-b86c648bcf55",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-042",
      "lyric": "",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-08-27T15:25:42.548Z",
      "model": "chirp-v4",
      "state": "succeeded",
      "style": "Pop rap, uplifting, magnetic male vocals, piano, synth, electric guitar, driving bass, clear structure",
      "duration": 2.52
    }
  ]
}

이렇게 업로드한 반주가 없는 무반주 노래에 반주를 추가하는 작업이 완료되며, 결과는 위와 비슷합니다.

Add Vocals 기능

2025년 8월에 suno에서 새로 Add Vocals 기능이 출시되었습니다. 먼저 연주곡을 업로드하여 suno가 가사를 쓰고 사람의 목소리로 노래하도록 해야 합니다. 우선 Suno Upload API에 반주가 없는 무반주 노래를 업로드할 수 있으며, 해당 작업은 아래 그림과 같습니다:

그다음 업로드 후의 audio_id를 기록해야 하며, 구체적인 결과는 아래 그림과 같습니다:

마지막으로 audio_id 하나를 얻었습니다: 92254cab-3372-4d9e-bce9-cdcfdbc39070. 그리고 다음 매개변수도 입력해야 합니다:

  • action: 내용은 overpainting입니다.
  • overpainting_start: 업로드한 노래에 보컬을 추가할 시작 시간이며, 기본값은 0입니다.
  • overpainting_end: 업로드한 노래에 보컬을 추가할 종료 시간이며, 노래의 전체 길이보다 작아야 합니다.
  • audio_id: 업로드한 반주가 없는 무반주 노래의 ID입니다.
  • custom: 이 모드에서는 반드시 사용자 지정 모드를 사용하여 가사를 입력해야 합니다.
  • lyric: 사용자 지정 모드에서 입력하는 가사입니다.
  • style: 반주의 스타일입니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다:

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "overpainting",
    "model": "chirp-v4-5",
    "lyric": "Yea your were the best I could get \\nBut I knew that it couldn’t last \\nStayed down since we were friends \\nHad to leave those thoughts in the past \\nMade like 40k just last week \\nOn top of the 20 with my babe\\ndon’t care for what niggas say",
    "custom": True,
    "audio_id": "92254cab-3372-4d9e-bce9-cdcfdbc39070",
    "overpainting_end": 120
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다:

{
  "success": true,
  "task_id": "31bb250e-6614-49ec-ac85-631f224daeba",
  "trace_id": "efe8e7f3-9a65-4f13-a9f8-51e8478899df",
  "data": [
    {
      "id": "a597f945-64df-4722-a631-d436450832bd",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-043",
      "lyric": "Yea your were the best I could get \\nBut I knew that it couldn’t last \\nStayed down since we were friends \\nHad to leave those thoughts in the past \\nMade like 40k just last week \\nOn top of the 20 with my babe\\ndon’t care for what niggas say",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-08-27T15:33:51.550Z",
      "model": "chirp-v4",
      "state": "succeeded",
      "style": "",
      "duration": 105.32
    },
    {
      "id": "b41a8b91-3d88-4ebd-a6cf-732764b24954",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-044",
      "lyric": "Yea your were the best I could get \\nBut I knew that it couldn’t last \\nStayed down since we were friends \\nHad to leave those thoughts in the past \\nMade like 40k just last week \\nOn top of the 20 with my babe\\ndon’t care for what niggas say",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-08-27T15:33:51.550Z",
      "model": "chirp-v4",
      "state": "succeeded",
      "style": "",
      "duration": 148.16
    }
  ]
}

이렇게 업로드한 반주 없는 아카펠라 곡에 보컬을 입히는 작업이 완료되었으며, 결과는 위와 비슷합니다.

Remaster 기능

2025년 12월에 suno에서 새로 출시한 Remaster 기능은 곡을 다시 생성할 수 있지만 계정을 넘나들어 사용할 수는 없으며, 다음 매개변수도 입력해야 합니다.

  • action: 내용은 remaster입니다.
  • audio_id: 다시 생성할 곡의 ID입니다.
  • model: v4.5+와 v5만 지원합니다.
  • variation_category: v5 이상의 버전에서만 지원하며, high, normal, subtle의 3가지 값만 있습니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다.

이에 해당하는 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "remaster",
    "variation_category": "high",
    "audio_id": "21fd46d4-45c3-4826-bec9-3f3df667902e"
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다.

{
  "success": true,
  "task_id": "791ee74c-9363-4352-afe7-babb19b89899",
  "trace_id": "77acda57-c3d4-4e11-a506-4f50e0609916",
  "data": [
    {
      "id": "b0515cdf-9cb5-46cd-b0fe-10a239dc9274",
      "title": "Navidad en costura  (Remastered)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-045",
      "image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-046",
      "lyric": "En Teror las clases siguen,\nni en Navidad hay parón;\ncose el grupo entre villancicos\ny un buen trocito de turrón.\nLa Popular abre sus puertas,\ny el taller suena mejor;\nhilo, aguja y canto alegre\nlo pasaremos mejor\nSeguimos en las costuras,\ncon música y diversión;\nlos alumnos comeremos\nGolosinas un montón ",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-12-04T13:09:59.936Z",
      "model": "chirp-v4",
      "state": "succeeded",
      "style": "Villancico",
      "duration": 32.2
    },
    {
      "id": "06edab94-a4f9-4c0c-abac-a2e8a97c76a8",
      "title": "Navidad en costura  (Remastered)",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-047",
      "image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-048",
      "lyric": "En Teror las clases siguen,\nni en Navidad hay parón;\ncose el grupo entre villancicos\ny un buen trocito de turrón.\nLa Popular abre sus puertas,\ny el taller suena mejor;\nhilo, aguja y canto alegre\nlo pasaremos mejor\nSeguimos en las costuras,\ncon música y diversión;\nlos alumnos comeremos\nGolosinas un montón ",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2025-12-04T13:09:59.936Z",
      "model": "chirp-v4",
      "state": "succeeded",
      "style": "Villancico",
      "duration": 32.2
    }
  ]
}

이렇게 이미 생성된 곡을 다시 생성하는 작업이 완료되었으며, 결과는 위와 비슷합니다.

Mashup 혼합곡 생성 기능

2025년 12월에 suno에서 새로 출시한 Mashup 기능은 두 곡의 참고 곡을 바탕으로 곡을 생성할 수 있으며, 다음 매개변수도 입력해야 합니다.

  • action: 내용은 mashup입니다.
  • mashup_audio_ids: 두 참고 곡의 ID입니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다.

이에 해당하는 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "mashup",
    "lyric": "Sambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nSambuy come, Sambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\nSambuy come back",
    "model": "chirp-v4-5",
    "custom": True,
    "instrumental": False,
    "mashup_audio_ids": ["9f102969-0024-479e-b38f-c0c5db21383d","6aebb715-701c-433f-b976-a7ff5cf16255"]
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다.

{
  "success": true,
  "task_id": "3fe070eb-2ab1-4424-909c-acfe3ca761af",
  "trace_id": "2b220382-7a84-4853-ae43-05cdcad233a9",
  "data": [
    {
      "id": "5ff751dc-0e72-4de9-a54b-2cad50984b47",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-049",
      "image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-050",
      "lyric": "Sambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nSambuy come, Sambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\nSambuy come back",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2026-01-25T15:13:30.181Z",
      "model": "chirp-v4-5",
      "state": "succeeded",
      "style": "",
      "duration": 219.08
    },
    {
      "id": "19c515c4-d7b3-4a17-8ab0-dd1ebd4861b8",
      "title": "",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-051",
      "image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-052",
      "lyric": "Sambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nSambuy come, Sambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\n\\nSambuy come  \\nSambuy come back  \\nBluespawn, greenspawn are making you a spawn  \\nSambuy come back",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "",
      "created_at": "2026-01-25T15:13:30.181Z",
      "model": "chirp-v4-5",
      "state": "succeeded",
      "style": "",
      "duration": 163.12
    }
  ]
}

이렇게 참조 곡을 혼합하여 생성하는 작업이 완료되며, 결과는 위와 비슷합니다.

Samples 샘플링으로 곡 생성

여기서 samples는 단일 오디오 구간 샘플링으로, 기존 오디오 한 곡에서 시작 시간과 종료 시간을 선택하고 해당 구간을 샘플 소재로 사용하여 창작합니다. 이는 아래에서 1~4개의 완전한 참조 오디오를 사용하는 Inspo 영감 창작 기능과 다릅니다. 다음 매개변수를 입력해야 합니다.

  • action: 내용은 samples입니다.
  • samples_start: 샘플링 시작 시간(초)이며, 기본값은 0이고 0보다 작을 수 없습니다.
  • samples_end: 샘플링 종료 시간(초)이며, 필수이고 시작 시간보다 커야 합니다.
  • audio_id: 샘플링할 참조 곡의 ID입니다.

입력을 마치면 다음과 같이 코드가 자동으로 생성됩니다.

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "samples",
    "model": "chirp-v5",
    "lyric": "[Verse 1]\\nPhone lit up\\nHeadline in my hand\\nFeels made up\\nStill says “you won’t understand”\\nYour name\\nMy name\\nSide by side in the scroll\\nCold black text\\nOn a story I used to hold\\n\\n[Chorus]\\nYou’re breaking news\\nAnd I’m just breaking\\nFront-page truth\\nHeart still shaking\\nEverybody reads\\nWhat we already knew\\nYou’re a story now\\nAnd I’m the one you broke it to\\n\\n[Verse 2]\\nNeighbors talk\\nThrough a half-closed door\\nCoffee cools\\nOn a cracked old floor\\nYour suitcase snaps\\nLike a camera flash\\nOne last quote\\nThen you cut to black\\n\\n[Chorus]\\nYou’re breaking news\\nAnd I’m just breaking\\nFront-page truth\\nHeart still shaking\\nEverybody reads\\nWhat we already knew\\nYou’re a story now\\nAnd I’m the one you broke it to\\n\\n[Bridge]\\nIs there a line\\nWhere we rewind\\nOr just a feed\\nThat leaves us behind\\nTell me\\nWho gets\\nThe final view\\nWhen I stop trending\\nWith you\\n\\n[Chorus]\\nYou’re breaking news\\nAnd I’m just breaking\\nFront-page truth\\nHeart still shaking\\nEverybody reads\\nWhat we already knew\\nYou’re a story now\\nAnd I’m the one you broke it to (yeah)",
    "custom": True,
    "instrumental": False,
    "audio_id": "0fa07665-6b8e-4a8b-8bd3-7e0cfcdada88",
    "samples_end": 102.16,
    "samples_start": 59.88
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

실행을 클릭하면 다음과 같은 결과를 얻을 수 있습니다.

{
    "success": true,
    "task_id": "12135a45-6384-4683-9bb1-64f19933915a",
    "trace_id": "683e559d-340e-4c72-8fae-e683442ac7e9",
    "data": [
        {
            "id": "9a0b680f-a9ea-4a36-8695-8ea777ab6ee7",
            "title": "Whistle in the Wind",
            "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-053",
            "image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-054",
            "lyric": "[Verse 1]\nPhone lit up\nHeadline in my hand\nFeels made up\nStill says “you won’t understand”\nYour name\nMy name\nSide by side in the scroll\nCold black text\nOn a story I used to hold\n[Chorus]\nYou’re breaking news\nAnd I’m just breaking\nFront-page truth\nHeart still shaking\nEverybody reads\nWhat we already knew\nYou’re a story now\nAnd I’m the one you broke it to\n[Verse 2]\nNeighbors talk\nThrough a half-closed door\nCoffee cools\nOn a cracked old floor\nYour suitcase snaps\nLike a camera flash\nOne last quote\nThen you cut to black\n[Chorus]\nYou’re breaking news\nAnd I’m just breaking\nFront-page truth\nHeart still shaking\nEverybody reads\nWhat we already knew\nYou’re a story now\nAnd I’m the one you broke it to\n[Bridge]\nIs there a line\nWhere we rewind\nOr just a feed\nThat leaves us behind\nTell me\nWho gets\nThe final view\nWhen I stop trending\nWith you\n[Chorus]\nYou’re breaking news\nAnd I’m just breaking\nFront-page truth\nHeart still shaking\nEverybody reads\nWhat we already knew\nYou’re a story now\nAnd I’m the one you broke it to (yeah)",
            "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
            "video_url": "",
            "created_at": "2026-01-31T14:34:45.043Z",
            "model": "chirp-v5",
            "state": "succeeded",
            "style": "acoustic with a hint of optimism,folk-pop,female vocals",
            "duration": 176.92
        },
        {
            "id": "66473dee-3aaf-43b2-80fd-76568b3abbb1",
            "title": "Whistle in the Wind",
            "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-055",
            "image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-056",
            "lyric": "[Verse 1]\nPhone lit up\nHeadline in my hand\nFeels made up\nStill says “you won’t understand”\nYour name\nMy name\nSide by side in the scroll\nCold black text\nOn a story I used to hold\n[Chorus]\nYou’re breaking news\nAnd I’m just breaking\nFront-page truth\nHeart still shaking\nEverybody reads\nWhat we already knew\nYou’re a story now\nAnd I’m the one you broke it to\n[Verse 2]\nNeighbors talk\nThrough a half-closed door\nCoffee cools\nOn a cracked old floor\nYour suitcase snaps\nLike a camera flash\nOne last quote\nThen you cut to black\n[Chorus]\nYou’re breaking news\nAnd I’m just breaking\nFront-page truth\nHeart still shaking\nEverybody reads\nWhat we already knew\nYou’re a story now\nAnd I’m the one you broke it to\n[Bridge]\nIs there a line\nWhere we rewind\nOr just a feed\nThat leaves us behind\nTell me\nWho gets\nThe final view\nWhen I stop trending\nWith you\n[Chorus]\nYou’re breaking news\nAnd I’m just breaking\nFront-page truth\nHeart still shaking\nEverybody reads\nWhat we already knew\nYou’re a story now\nAnd I’m the one you broke it to (yeah)",
            "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
            "video_url": "",
            "created_at": "2026-01-31T14:34:45.043Z",
            "model": "chirp-v5",
            "state": "succeeded",
            "style": "acoustic with a hint of optimism,folk-pop,female vocals",
            "duration": 177.48
        }
    ]
}

이렇게 샘플링을 통한 노래 생성 작업이 완료되며, 결과는 위와 비슷합니다.

Inspo 영감 창작 기능

Inspo 영감 창작 기능은 1~4개의 전체 참고 오디오를 바탕으로 새로운 음악을 생성할 수 있으며, 오디오를 드래그하거나 업로드하여 영감의 원천으로 사용할 수 있습니다. API는 기존 inspo action을 사용합니다. 클라이언트가 공개적으로 접근 가능한 오디오 URL을 제공하면 서비스가 참고 오디오 준비와 창작을 자동으로 완료하므로, 클라이언트가 가사, 스타일 또는 길이를 각각 읽어 요청을 구성할 필요가 없습니다. 이는 위의 구간 샘플링과도 다르고, 원곡의 스타일을 재현하는 Cover와도 다릅니다. 사용할 때는 다음 매개변수를 입력해야 합니다.

  • action: 내용은 inspo입니다.
  • audio_urls: 참고 오디오의 URL 목록으로, 공개적으로 접근 가능한 오디오 주소를 1~4개 제공해야 합니다.
  • model: 사용할 모델로, chirp-v6를 권장합니다.
  • prompt: 가사 또는 창작 프롬프트(선택 사항).
  • instrumental: true로 설정하면 가사를 사용하지 않고 연주곡 요청으로 생성합니다.
  • persona_id: 해당 조합을 지원하는 서비스 채널에서 지정된 음성을 사용합니다. 참고 오디오는 준비 단계에서 해당 음성에 필요한 리소스 환경에 바인딩됩니다.
  • lyric_prompt: custom=true이고 lyric이 제공되지 않았을 때 가사를 자동으로 생성하는 데 사용합니다.

참고: 참고 오디오는 공개적으로 접근 가능한 오디오 파일이어야 합니다. 참고 오디오가 플랫폼 음악 라이브러리의 알려진 녹음과 완전히 일치하는 경우, Suno가 저작권 검증으로 인해 생성을 거부할 수 있으므로 직접 소유하거나 Suno로 생성한 오디오를 영감의 원천으로 사용하는 것이 좋습니다.

해당 Python 코드:

import requests

url = "https://api.01ai.cloud/suno/audios"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "action": "inspo",
    "model": "chirp-v6",
    "audio_urls": [
        "https://cdn.acedata.cloud/uploads/a0bc051f-42c2-4a46-aeb4-582dcc884ad2"
    ],
    "prompt": "Rework these references as warm acoustic folk with soft vocals"
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

아래에는 검증된 과거 응답 스냅샷을 보존합니다. 스냅샷은 당시의 chirp-v5를 사용했으며, 현재 요청 예시에서는 chirp-v6를 권장하고 반환 구조는 동일합니다.

{
    "success": true,
    "task_id": "725e6b41-78d0-4adf-856c-05e81098c029",
    "trace_id": "8c2f0b3e-2f6a-4738-8b1d-c58068ca3dab",
    "data": [
        {
            "id": "20ca5628-86e0-4c32-8ae4-9f0c481e45f3",
            "title": "Inspo Demo",
            "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-057",
            "lyric": "",
            "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
            "video_url": "",
            "created_at": "2026-06-18T13:01:53.910Z",
            "model": "chirp-v5",
            "state": "succeeded",
            "style": "acoustic, folk, warm",
            "duration": 36.92
        },
        {
            "id": "8744a796-9961-45af-868d-4f3bc1c44257",
            "title": "Inspo Demo",
            "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-058",
            "lyric": "",
            "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
            "video_url": "",
            "created_at": "2026-06-18T13:01:53.910Z",
            "model": "chirp-v5",
            "state": "succeeded",
            "style": "acoustic, folk, warm",
            "duration": 84.16
        }
    ]
}

이렇게 하면 영감 창작 작업이 완료되며, 반환 결과는 일반적인 노래 생성 결과와 동일합니다.

비동기 콜백

Suno가 음악을 생성하는 데 걸리는 시간은 상대적으로 길어 약 1~2분이 필요합니다. API가 오랫동안 응답하지 않으면 HTTP 요청이 계속 연결을 유지하여 추가 시스템 리소스가 소모되므로, 이 API는 비동기 콜백도 지원합니다.

전체 과정은 다음과 같습니다. 클라이언트가 요청을 보낼 때 callback_url 필드를 추가로 지정하면, 클라이언트가 API 요청을 보낸 직후 API가 현재 작업 ID를 나타내는 task_id 필드가 포함된 결과를 즉시 반환합니다. 작업이 완료되면 음악 생성 결과가 POST JSON 형식으로 클라이언트가 지정한 callback_url에 전송되며, 여기에도 task_id 필드가 포함되어 있어 ID를 통해 작업 결과를 연결할 수 있습니다.

아래 예시를 통해 구체적인 작업 방법을 살펴보겠습니다.

먼저 Webhook 콜백은 HTTP 요청을 받을 수 있는 서비스이며, 개발자는 이를 직접 구축한 HTTP 서버의 URL로 바꿔야 합니다. 여기서는 시연의 편의를 위해 공개 Webhook 예시 사이트인 https://webhook.site/를 사용합니다. 해당 사이트를 열면 아래 그림과 같이 Webhook URL을 얻을 수 있습니다.

이 URL을 복사하면 Webhook으로 사용할 수 있으며, 여기서의 예시는 https://webhook.site/03e60575-3d96-4132-b681-b713d78116e2입니다.

다음으로 callback_url 필드를 위의 Webhook URL로 설정하고 prompt도 입력할 수 있습니다. 아래 그림과 같습니다.

실행을 클릭하면 다음과 같이 결과가 즉시 반환되는 것을 확인할 수 있습니다.

{
  "task_id": "44472ab8-783b-4054-b861-5bf14e462f60"
}

잠시 기다리면 https://webhook.site/03e60575-3d96-4132-b681-b713d78116e2에서 생성된 노래의 결과를 확인할 수 있습니다. 아래 그림과 같습니다.

내용은 다음과 같습니다.

{
  "success": true,
  "task_id": "44472ab8-783b-4054-b861-5bf14e462f60",
  "data": [
    {
      "id": "da4324e5-84b2-484b-b0e9-dd261381c594",
      "title": "Winter Whispers",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-059",
      "lyric": "[Verse]\nSnow falling gently from the sky\nChildren giggling as they pass by\nFire crackling\nCozy and warm\nChristmas spirit begins to swarm\n[Verse 2]\nTwinkling lights\nA sight to behold\nStockings hung\nWaiting to be filled with gold\nGifts wrapped with love\nPiled high\nExcitement in the air\nYou can't deny\n[Chorus]\nWinter whispers in the wind\nJoy and love it brings\nLet's celebrate this season\nWith the ones we're missing",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "https://cdn.acedata.cloud/assets/examples/gemini/04a043bd-6b23-4b4e-945c-ce48158c3eee-3a89912507c7.mp4?example=video-003",
      "created_at": "2024-05-11T07:33:05.430Z",
      "model": "chirp-v3",
      "prompt": "A song for Christmas",
      "style": "pop"
    },
    {
      "id": "b878a87b-a0db-4046-8ccd-ecd2fb3d4372",
      "title": "Winter Whispers",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-060",
      "lyric": "[Verse]\nSnow falling gently from the sky\nChildren giggling as they pass by\nFire crackling\nCozy and warm\nChristmas spirit begins to swarm\n[Verse 2]\nTwinkling lights\nA sight to behold\nStockings hung\nWaiting to be filled with gold\nGifts wrapped with love\nPiled high\nExcitement in the air\nYou can't deny\n[Chorus]\nWinter whispers in the wind\nJoy and love it brings\nLet's celebrate this season\nWith the ones we're missing",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "video_url": "https://cdn.acedata.cloud/assets/examples/gemini/04a043bd-6b23-4b4e-945c-ce48158c3eee-3a89912507c7.mp4?example=video-004",
      "created_at": "2024-05-11T07:33:05.430Z",
      "model": "chirp-v3",
      "prompt": "A song for Christmas",
      "style": "pop"
    }
  ]
}

결과에 task_id 필드가 있는 것을 확인할 수 있으며, 다른 필드는 위의 내용과 유사합니다. 이 필드를 통해 작업을 연결할 수 있습니다.

물론 스트리밍 호출을 통해 결과를 얻을 수도 있습니다. 요청 헤더의 accept 값을 application/x-ndjson으로 설정하기만 하면 됩니다. 아래에서는 예시 입력을 통해 설명합니다.

기다리는 동안 다음과 같은 출력을 얻을 수 있습니다.

{"success":true,"task_id":"1af4b454-ce84-4512-a0a2-de3f8574ecd8","data":[{"id":"1f610752-f426-4fd5-89a8-ba2ad0370881","title":"Snowflakes and Mistletoe","lyric":"[Verse]\nLights are tangled on the tree again\nThe cat’s knocked over the wreath\nCookies burning in the oven too\nBut I’m still grinning through my teeth\n[Prechorus]\nSnow is falling like glitter in the sky\nI’ve got a feeling this year’s gonna fly\n[Chorus]\nSnowflakes and mistletoe\nEverywhere I go\nI know\nLove is the gift\nThe glow\nSnowflakes and mistletoe\n[Verse 2]\nGrandma’s singing a little off-key\nThe kids are laughing too loud\nThe dog’s stolen a turkey leg\nChaos is a Christmas crowd\n[Prechorus]\nBut the fire’s crackling\nWarm and bright\nAnd my heart’s a candle tonight\n[Chorus]\nSnowflakes and mistletoe\nEverywhere I go\nI know\nLove is the gift\nThe glow\nSnowflakes and mistletoe","audio_url":"","video_url":"","created_at":"2025-12-13T11:29:25.101Z","model":"chirp-v5","state":"pending","prompt":"A song for Christmas","style":"uplifting, orchestral with bells and acoustic guitar"},{"id":"d1a3109d-799b-401e-b032-4b501bcf26f3","title":"Snowflakes and Mistletoe","lyric":"[Verse]\nLights are tangled on the tree again\nThe cat’s knocked over the wreath\nCookies burning in the oven too\nBut I’m still grinning through my teeth\n[Prechorus]\nSnow is falling like glitter in the sky\nI’ve got a feeling this year’s gonna fly\n[Chorus]\nSnowflakes and mistletoe\nEverywhere I go\nI know\nLove is the gift\nThe glow\nSnowflakes and mistletoe\n[Verse 2]\nGrandma’s singing a little off-key\nThe kids are laughing too loud\nThe dog’s stolen a turkey leg\nChaos is a Christmas crowd\n[Prechorus]\nBut the fire’s crackling\nWarm and bright\nAnd my heart’s a candle tonight\n[Chorus]\nSnowflakes and mistletoe\nEverywhere I go\nI know\nLove is the gift\nThe glow\nSnowflakes and mistletoe","audio_url":"","video_url":"","created_at":"2025-12-13T11:29:25.101Z","model":"chirp-v5","state":"pending","prompt":"A song for Christmas","style":"uplifting, orchestral with bells and acoustic guitar"}]}
{"success":true,"task_id":"1af4b454-ce84-4512-a0a2-de3f8574ecd8","trace_id":"4440342a-41c4-4140-8bb1-3537a598ca2e","data":[{"id":"1f610752-f426-4fd5-89a8-ba2ad0370881","title":"Snowflakes and Mistletoe","image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-073","image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-074","lyric":"[Verse]\nLights are tangled on the tree again\nThe cat’s knocked over the wreath\nCookies burning in the oven too\nBut I’m still grinning through my teeth\n[Prechorus]\nSnow is falling like glitter in the sky\nI’ve got a feeling this year’s gonna fly\n[Chorus]\nSnowflakes and mistletoe\nEverywhere I go\nI know\nLove is the gift\nThe glow\nSnowflakes and mistletoe\n[Verse 2]\nGrandma’s singing a little off-key\nThe kids are laughing too loud\nThe dog’s stolen a turkey leg\nChaos is a Christmas crowd\n[Prechorus]\nBut the fire’s crackling\nWarm and bright\nAnd my heart’s a candle tonight\n[Chorus]\nSnowflakes and mistletoe\nEverywhere I go\nI know\nLove is the gift\nThe glow\nSnowflakes and mistletoe","audio_url":"https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3","video_url":"","created_at":"2025-12-13T11:29:25.101Z","model":"chirp-v5","state":"succeeded","prompt":"A song for Christmas","style":"uplifting, orchestral with bells and acoustic guitar","duration":129.92},{"id":"d1a3109d-799b-401e-b032-4b501bcf26f3","title":"Snowflakes and Mistletoe","image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-075","image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-076","lyric":"[Verse]\nLights are tangled on the tree again\nThe cat’s knocked over the wreath\nCookies burning in the oven too\nBut I’m still grinning through my teeth\n[Prechorus]\nSnow is falling like glitter in the sky\nI’ve got a feeling this year’s gonna fly\n[Chorus]\nSnowflakes and mistletoe\nEverywhere I go\nI know\nLove is the gift\nThe glow\nSnowflakes and mistletoe\n[Verse 2]\nGrandma’s singing a little off-key\nThe kids are laughing too loud\nThe dog’s stolen a turkey leg\nChaos is a Christmas crowd\n[Prechorus]\nBut the fire’s crackling\nWarm and bright\nAnd my heart’s a candle tonight\n[Chorus]\nSnowflakes and mistletoe\nEverywhere I go\nI know\nLove is the gift\nThe glow\nSnowflakes and mistletoe","audio_url":"https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3","video_url":"","created_at":"2025-12-13T11:29:25.101Z","model":"chirp-v5","state":"succeeded","prompt":"A song for Christmas","style":"uplifting, orchestral with bells and acoustic guitar","duration":127.16}]}

스트리밍 응답은 동일한 task_id에 대해 처리 중 상태와 최종 결과를 순서대로 전송합니다. 위에는 최초 응답과 최종 상태의 실제 응답 두 개만 남기고, 반복되는 중간 업데이트는 생략했습니다.

오류 처리

오류가 발생하면 다음과 유사한 오류 메시지가 표시됩니다.

{
  "success": false,
  "error": {
    "code": "forbidden",
    "message": "Song Description contained artist name: eminem"
  },
  "trace_id": "9bb7c2f4-3b7b-4965-b50a-f663874b1b6f",
  "task_id": "9bb3a2a6-c438-436d-a9f3-fa466abc077c"
}

다음은 HTTP 상태 코드, error.code, error.message의 목록입니다.

style 길이 제한은 모델마다 다릅니다. 길이 오류가 반환되면 내용을 줄이고, 응답에 표시된 제한을 기준으로 하세요. | 상태 코드 | error.code | error.message | | --------- | ----------------------------- | ---------------------------------------------------------------------------------- | | 400 | bad_request | 노래 ID가 존재하지 않거나 오프라인으로 전환되었습니다. | | 400 | bad_request | 프롬프트가 너무 깁니다. | | 400 | bad_request | 태그가 너무 깁니다. | | 400 | bad_request | 업로드된 오디오가 기존 예술 작품과 일치합니다. | | 400 | bad_request | instrumental은 불리언이어야 합니다 | | 400 | bad_request | 제목이 너무 깁니다. | | 400 | bad_request | 주제가 너무 깁니다. | | 400 | bad_request | style은 120 이하여야 합니다 | | 400 | bad_request | custom은 불리언이어야 합니다 | | 400 | bad_request | 오디오를 확장할 때 audio_id가 필요합니다 | | 400 | bad_request | 오디오를 확장할 때 continue_at이 필요합니다 | | 400 | bad_request | continue_at은 0보다 큰 숫자여야 합니다 | | 400 | bad_request | 오디오를 확장하고 instrumental이 false일 때 lyric이 필요합니다 | | 400 | bad_request | 오디오를 생성할 때 prompt가 필요합니다 | | 400 | bad_request | 사용자 지정 오디오를 생성할 때 lyric이 필요합니다 | | 403 | forbidden | 프롬프트의 형식이 잘못되었을 수 있습니다 | | 403 | forbidden | 프롬프트가 저작권으로 보호되고 있을 수 있습니다 | | 403 | forbidden | 프롬프트에 부적절한 내용이 포함되어 있습니다 | | 403 | forbidden | 노래 설명이 검토 대상으로 표시되었습니다 | | 403 | forbidden | 노래 설명에 아티스트 이름이 포함되어 있습니다 | | 403 | forbidden | 태그에 아티스트 이름이 포함되어 있습니다 | | 403 | forbidden | 가사에 저작권으로 보호되는 내용이 포함되어 있습니다 | | 403 | forbidden | 노래 설명에 프로듀서 태그가 포함되어 있습니다 | | 403 | forbidden | 일반 openAI 오류 | | 403 | forbidden | 프롬프트가 검토 대상으로 표시되었습니다 | | 429 | too_many_requests | 요청이 너무 많습니다. 나중에 다시 시도해 주세요. | | 500 | api_error | 노래 설명에서 가사를 생성할 수 없습니다 | | 500 | api_error | 알 수 없는 오류로 작업이 실패했습니다 | | 500 | api_error | 서비스 점검 중으로, 생성이 일시 중지되었습니다 | | 500 | api_error | 계정이 오프라인 상태였을 수 있습니다 | | 500 | suno_processing_unavailable | 음악 처리를 사용할 수 없습니다. 추적 ID를 가지고 지원팀에 문의해 주세요. | | 500 | suno_model_unavailable | 이 작업에 선택한 모델을 사용할 수 없습니다. 추적 ID를 가지고 지원팀에 문의해 주세요. | | 500 | suno_processing_failed | 음악 처리에서 오디오가 반환되지 않았습니다. 추적 ID를 가지고 지원팀에 문의해 주세요. | | 504 | timeout | 오디오 생성을 기다리는 동안 시간 초과가 발생했습니다 |

아직 접수되지 않은 것이 명확한 일시적인 요청 제한의 경우, 플랫폼은 이번 요청의 시간 예산 내에서 대기한 후 제한된 횟수만큼 재시도할 수 있습니다. 최종적으로도 429(too_many_requests)가 반환되면 나중에 다시 시도해 주세요. 실패한 요청에는 요금이 부과되지 않습니다.

async=true 또는 callback_url을 사용할 때 task_id를 받았다는 것은 작업이 생성되었음을 의미할 뿐, 생성이 성공했음을 의미하지는 않습니다. 콜백 또는 Suno Tasks API를 통해 원래 작업의 최종 결과를 확인해 주세요. 중복 작업이 생성되지 않도록 최종 상태가 명확해지기 전에는 다시 제출하지 마세요.