Suno 参照音声アップロード API 連携ガイド

公式サイトの Create で + Audio → Upload を選択すると、インポートした素材をカバー、続きを生成、またはトラックの追加に使用できます。API はダウンロード可能な URL を受け取り、後続の操作に使用する data.audio_id を返します。

Suno 公式サイトの + Audio メニューにある Upload、Browse、Record

通常のアップロードに必要なのは、一般公開されている音声 CDN アドレスである audio_url のみです。mode のデフォルトは standard のため、既存の呼び出しを変更する必要はありません。通常のアップロードが成功すると 0.06 Credits を消費します。アップロードが失敗した場合は課金されません。

ここで入力する audio_url は https://cdn.acedata.cloud/suno_demo.mp3 で、一般公開されている CDN アドレスです。

curl -X POST 'https://api.orchats.repoingest.com/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 を渡し、原曲と音声を関連付けます。

{
  "success": true,
  "task_id": "7f995f02-e4ab-4ad8-adfd-584a1d70c745",
  "data": {
    "audio_id": "a6dbc2ab-a2ab-4c32-a7fb-2cfa7abd122d",
    "duration": 47.62897916666667,
    "title": "up-55cddfe8-12c4-4a53-9d49-f4c153293f69"
  }
}

アップロードが成功したら、返された 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.orchats.repoingest.com/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"
  }'

API は直ちに task_id と trace_id を返します。Suno Tasks API を使用してタスクを照会し、成功後に response.data.audio_id からアップロード後の音声 ID を取得します。HTTPS の callback_url を指定して最終状態を受け取ることもできます。

拡張アップロードで得られた audio_id は、Cover、Samples、Mashup に使用できます。伴奏と MIDI の抽出、全トラックの分離、およびボーカルと伴奏の分離は、引き続き音声が属するアカウントによる制限を受ける可能性があります。記載されていない操作については、アカウントをまたいだ使用は保証されません。音声が短いほど、通常は処理の成功率が高くなります。