Suno 歌詞生成 API 連携ガイド
楽曲をカスタマイズして生成したいけれど、自分で歌詞を書くのはあまり気が進まない場合は、羲云科技が提供する歌詞生成 API を使って、プロンプトから歌詞を生成できます。API は Suno Lyrics Generation API です。
料金:生成が成功した場合、1 リクエストあたりの標準料金は 0.08 Credits です。1 回のリクエストで複数の歌詞候補が返された場合も、課金は 1 回分のみです。適用される利用割引は実際の請求に準じ、失敗したリクエストには課金されません。
この API の主な入力パラメーターは prompt で、model も任意で指定できます(選択可能な値は default、remi-v1、デフォルトは default)。入力例は以下のとおりです。
公式サイトの Create → Songs → Advanced → Lyrics → Help me write lyrics に相当します。

ここでは、海辺のランタンに関するプロンプトを入力します。
{
"prompt": "Write an original acoustic folk chorus about a lantern on the shore."
}
実行をクリックすると、結果は以下のとおりです。
{
"success": true,
"task_id": "063f0ad3-3933-4655-94a5-166fde41524f",
"data": [
{
"text": "[Chorus]\nLantern on the shore\nLantern on the shore\nIt keeps my footsteps sure\nWhen the dark rolls in for more\n\nLantern on the shore\nLantern on the shore\nI follow that small gold flame\nAnd I don’t feel lost anymore",
"title": "Shore Lantern",
"status": "complete",
"tags": [
"Acoustic folk with fingerpicked guitar, brushed hand percussion, and a loping 6/8 sway; chorus opens wide after a sparse verse feel, then settles into a warm refrain with stacked harmony on the anchor line. Lead vocal is close-mic and intimate, with a soft double on the last words and a few airy ad-libs. Vinyl crackle intro, tide-foam ambience between phrases, wide but earthy mix.",
"folk",
"acoustic"
]
},
{
"text": "[Chorus]\nLantern on the shore\nLantern on the shore\nGuide me home once more\nTill the dark lets go\n\n[Chorus]\nLantern on the shore\nLantern on the shore\nBurn for me once more\nTill the waves say no",
"title": "Lantern on the Shore",
"status": "complete",
"tags": [
"Acoustic folk with fingerpicked guitar, brushed kick and airy room harmonies; chorus opens sparse then widens with low humming doubles and a soft fiddle lift, pre-chorus feel implied by a gentle build into the hook, final chorus adds handclaps and a tidal swell of backing vocals. Warm, intimate, close-mic mix with a natural wooden glow.",
"folk",
"acoustic"
]
}
],
"started_at": 1796061011.339,
"finished_at": 1796061021.686,
"elapsed": 10.347,
"cost": {
"amount": 0.072,
"currency": "credit",
"list_amount": 0.08
}
}
ご覧のとおり、data は配列で、毎回複数の歌詞候補が返されます。各要素の text フィールドが歌詞の内容、title がタイトル、tags が推奨される曲調のタグです。
歌詞が用意できたら、Suno Audios Generation API を使って、カスタマイズした楽曲を生成できます。