Suno 歌詞生成 API 連携ガイド
曲をカスタマイズして生成したいが、自分で歌詞を書きたくない場合は、AceDataCloud が提供する歌詞生成 API を使用して、prompt を通じて歌詞を生成できます。API は Suno Lyrics Generation API です。
料金:生成が成功した後、リクエストごとの標準料金は 0.08 Credits です。1 回のリクエストで複数の歌詞候補が返される場合でも、1 回分としてのみ課金されます。適用される消費割引は実際の請求書に準じ、失敗したリクエストは課金されません。
この API の主な入力パラメータは prompt で、任意で model(選択可能な値は default、remi-v1、デフォルトは default)を指定できます。入力例は以下のとおりです:

ここで入力した prompt は A song about winter で、冬に関連する曲を生成します。
実行をクリックすると、結果は以下のとおりです:
{
"success": true,
"task_id": "2e26f7ff-0b82-4a60-bb9b-78db89f98b51",
"data": [
{
"text": "[Verse]\nSnowflakes falling from the sky\nWinter's cold touch\nOh how it gets me high\nI bundle up in layers\nOh so cozy\nStepping out and feeling the frost on my nose\n\n[Chorus]\nOh\nWinter's cold touch\nIt's a season that I love so much\nSnowfall brings a feeling so divine\nWinter's cold touch\nIt's a magical time",
"title": "Winter's Cold Touch",
"status": "complete",
"tags": ["dreamy, mellow, ballad"]
},
{
"text": "[Verse]\nThe world is covered in a blanket of white\nIcicles hanging\nShimmering so bright\nThe chilly air fills my lungs with every breath\nWalking in the snow\nLeaving footprints behind\n\n[Chorus]\nWinter wonderland\nEverything is so bright\nWinter wonderland\nHold me through the night",
"title": "Winter Wonderland",
"status": "complete",
"tags": ["dream pop, mellow, shoegaze"]
}
],
"started_at": 1780684179.15,
"finished_at": 1780684186.583,
"elapsed": 7.433
}
確認できるように、data は配列であり、毎回複数の歌詞候補が返されます。そのうち各要素の text フィールドが歌詞の内容であり、title はタイトル、tags は推奨される音楽スタイルのタグです。
歌詞があれば、Suno Audios Generation API を使用して、カスタム曲の生成を行うことができます。
