Suno 참고 오디오 업로드 API 연동 안내
SUNO는 참고 오디오를 업로드하여 2차 창작을 할 수 있도록 지원하며, 본 문서에서는 관련 API 연동 방법을 설명합니다.
일반 업로드에는 audio_url만 필요하며, 이는 공개적으로 접근 가능한 오디오 CDN 주소입니다. mode의 기본값은 standard이므로 기존 호출은 수정할 필요가 없습니다. 일반 업로드 성공 시 0.06 Credits가 소모되며, 업로드 실패 시에는 비용이 차감되지 않습니다.
여기서 입력하는 audio_url은 https://cdn.acedata.cloud/suno_demo.mp3이며, 공개적으로 접근 가능한 CDN 주소입니다.
curl -X POST 'https://api.acedata.cloud/suno/upload' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"audio_url": "https://cdn.acedata.cloud/suno_demo.mp3"
}'
결과는 다음과 같습니다:
{
"success": true,
"task_id": "058f8450-3df4-4f8b-8b64-ebc2e59ed3bc",
"data": {
"audio_id": "00135f7d-cda1-4d70-b007-779f07143586",
"lyric": "[Intro]\nHa-ha-ha-ha-ha-ha\n[Verse 1]\nCandy skies are dripping blue\nStuck in world of chewed up glue\nThe sun's a lollipop melting slow\nDripped in sugar on the ground below\nOh-oh\n[Chorus]\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nCandy chaos in disguise\n[Verse 2]\nJellybean mountains crumble fast\nRainbows made of soda blast\nEvery step's a gummy bear trap\nMy sugar rush is taking a nap\nOh-oh\n[Bridge]\nChew it up (ha-ha-ha-ha)\nSpit it out (ha-ha-ha-ha)\nRound and round (ha-ha-ha-ha)\nWithout a doubt (ha-ha-ha-ha)\n[Chorus]\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\n[Outro]\nCotton candy clouds collapse\nChocolate rivers running laps\nEverywhere's a sugar flood\nMy shoes are drowning caramel\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise",
"style": "Upbeat bubblegum pop track with a high-energy electronic production style. The song features a bright, processed female vocal with a youthful and energetic tone, often layered with harmonies and occasional pitch-shifted ad-libs. The instrumentation is dominated by bouncy, staccato synthesizer chords, a driving four-on-the-floor electronic drum beat with crisp claps on the backbeat, and a prominent, melodic bassline. The tempo is approximately 128 BPM in a major key, utilizing a standard pop chord progression of I-V-vi-IV. Production elements include heavy use of sidechain compression, vocal chops, and shimmering sound effects that contribute to a sugary, hyper-pop aesthetic. The structure follows a verse-chorus-verse-chorus-bridge-chorus format with a high-energy build-up leading into the explosive, hook-driven choruses.",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-001",
"image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-002",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"title": "up-d6c3970d-6db1-41e3-b966-90539c93678a",
"duration": 131.16
}
}
보시다시피 data는 항상 객체이며, audio_id는 업로드 후의 곡 ID입니다. lyric, style, duration, 제목 및 미디어 URL 등의 분석 결과는 선택적 필드이며, 구체적인 내용은 반환값을 기준으로 합니다.
업로드 결과가 커버를 제공하는 경우, image_url과 image_large_url은 각각 일반 커버와 고화질 커버의 원본 주소를 반환합니다.
곡 ID를 얻은 후에는 Suno Audios Generation API를 통해 upload_extend, upload_cover 또는 구간 샘플링 등 audio_id가 필요한 작업을 호출할 수 있습니다. Inspo 영감 창작 기능을 통해 1~4개의 완전한 참고 오디오를 기반으로 새 음악을 만들려면, 직접 action=inspo를 호출하고 원본 공개 오디오 URL 목록을 전달하세요. 서비스가 업로드와 분석을 자동으로 완료하므로 클라이언트에서 오디오 metadata를 구성할 필요가 없습니다.
¶ 비공개 음색용 커버 원곡 업로드
/suno/voices로 생성한 비공개 음성으로 커버할 때는, 일반 업로드 요청에 해당 음성의 persona_id를 전달하여 원곡과 음성을 연결합니다:
{
"audio_url": "https://cdn.acedata.cloud/suno_demo.mp3",
"mode": "standard",
"persona_id": "<声音创建接口返回的 persona_id>"
}
업로드 성공 후 반환된 data.audio_id를 사용하여 /suno/audios를 호출하고, action: "upload_cover"를 설정한 뒤 동일한 persona_id를 전달합니다. 이전에 해당 음성과 연결되지 않은 오디오 ID를 계속 사용하지 마세요.
persona_id는 일반 업로드만 지원하며, mode: "enhanced"와 동시에 사용할 수 없습니다. vocal_gender를 별도로 지정할 필요는 없으며, 성별 선호도는 음성 ID를 대체할 수 없습니다. 음성 생성, 원곡 업로드 및 커버에는 동일한 서비스 채널을 사용해야 합니다.
¶ 향상된 업로드 모드
audio_url은 입력 주소이며, 오디오 처리 프로세스에 직접 전달되고 최종 상태의 미디어 영속화 서비스에서 사전에 저장되지 않습니다. 작업 처리 중 공개적으로 접근할 수 있도록 보장하세요.
일반 업로드가 귀하가 소유하거나 사용 허가를 받은 오디오를 처리할 수 없는 경우, mode를 enhanced로 설정할 수 있습니다. 이 모드에서는 1~100자의 name도 반드시 제공해야 하며, 공개적으로 접근 가능한 HTTPS audio_url을 사용해야 합니다.
향상된 업로드는 고정적으로 비동기 처리를 사용하며, 일반적으로 2분 이상이 소요됩니다. 성공적으로 처리되면 1.87 Credits가 소모되며, 처리 실패 시에는 비용이 차감되지 않습니다.
curl -X POST 'https://api.acedata.cloud/suno/upload' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"audio_url": "https://cdn.acedata.cloud/suno_demo.mp3",
"mode": "enhanced",
"name": "My Song"
}'
인터페이스는 즉시 task_id와 trace_id를 반환합니다. Suno Tasks API를 사용하여 작업을 조회하고, 성공 후 response.data.audio_id에서 업로드된 오디오 ID를 읽습니다. HTTPS callback_url을 제공하여 최종 상태를 수신할 수도 있습니다.
향상 업로드로 얻은 audio_id는 Cover, Samples 및 Mashup에 사용할 수 있습니다. 반주 및 MIDI 추출, 전체 트랙 분리와 보컬/반주 분리는 여전히 오디오가 속한 계정의 제한을 받을 수 있습니다. 나열되지 않은 작업은 계정 간 사용을 지원한다고 보장되지 않습니다. 오디오가 짧을수록 일반적으로 처리 성공률이 높습니다.