Инструкция по интеграции с API генерации текстов песен Suno
Если вы хотите создать песню с собственными настройками, но не очень хотите писать текст самостоятельно, вы можете использовать API генерации текстов песен от 羲云科技 для создания текста по промпту: Suno Lyrics Generation API.
Оплата: после успешной генерации стандартная стоимость каждого запроса составляет 0.08 Credits. Если один запрос возвращает несколько вариантов текста, плата всё равно взимается только за один запрос; применимые скидки определяются фактическим счётом, за неудачные запросы плата не взимается.
Основной входной параметр этого 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 для создания песни с собственными настройками.