随着人工智能的广泛应用,各种AI程序逐渐普及,AI开始渗透到人们工作和生活的方方面面。涉及AI的行业也在不断增加,从最初的写作、医疗教育,到现在的音乐创作,AI的应用场景愈发丰富。

Suno是一个高质量的AI歌曲和音乐创作平台,用户只需输入简单的文本提示,就能根据风格和歌词生成带有声音的歌曲。这个AI音乐生成器由Meta、TikTok和Kensho等知名科技公司的团队开发,旨在让每个人都能在没有任何乐器的情况下创作出美妙的音乐。

以下是模型更新的进展:

版本 模型 发布日期 提示限制 风格限制 最大歌曲时长
v5.5 chirp-v5-5 2026.03.27 5000 1000 8分钟
v5 chirp-v5 2025.09.23 5000 1000 8分钟
v4.5+ chirp-v4-5-plus 2025.07.17 5000 1000 8分钟
v4.5 chirp-v4-5 2025.05.03 5000 1000 4分钟
v4 chirp-v4 2024.12.17 3000 200 150秒
v3.5 chirp-v3-5 --- 3000 200 120秒

Suno现在支持最新的chirp-v5-5模型。使用最新版本时,请将model参数设置为chirp-v5-5,而chirp-v5及更早版本仍然可用。

然而,Suno并未正式提供API。AceDataCloud提供了一套模拟Suno集成的API,使得生成所需音乐变得简单快捷。

环境准备/前置条件

  1. 注册账户:首先,您需要在AceDataCloud平台注册一个账户。
  2. 获取API凭证:访问Suno Audios Generation API页面,点击“获取”按钮以获取请求所需的凭证。

如果您未登录或注册,将自动重定向到登录页面。登录或注册后,您将自动返回当前页面。

首次申请时,API将提供免费的使用配额。

详细步骤

基本用法

如果您想生成一首歌曲,可以输入任何文本。例如,如果我想生成一首关于圣诞节的歌曲,可以输入a song for Christmas,如图所示:

此时,我们设置了请求头,包括:

  • accept:您希望接收的响应结果格式,这里填写为application/json,表示JSON格式。
  • authorization:调用API的密钥,申请后可直接选择。

此外,我们设置了请求体,包括:

  • action:音乐生成任务的操作,默认为generate,主要包括:extendupload_extendcoverupload_coverreplace_sectionconcatstemsall_stemsremaster
  • prompt:来自Suno的灵感模式提示。
  • model:此次音乐生成任务的模型,默认为chirp-v4,主要包括:chirp-v3chirp-v4chirp-v3-5chirp-v4-5chirp-v4-5-pluschirp-v5chirp-v5-5
  • lyric:Suno的自定义模式下的歌词内容。
  • custom:是否使用自定义模式,默认为false
  • instrumental:Suno灵感模式下的纯音乐选项。
  • title:Suno自定义模式下的音乐标题。
  • style:Suno自定义模式下的音乐风格。
  • style_negative:Suno自定义模式下排除的风格。

生成的代码如下:

您可以点击“尝试”按钮直接测试API,等待1-2分钟后,结果如下: ```json { "success": true, "task_id": "e72fb249-bd5b-4e2a-b20c-8a06fea5ac14", "trace_id": "7dbc5b6a-b2c0-4d85-9d39-fa8a8a785ccf", "data": [ { "id": "b481b17a-bf50-4e10-8adc-4d5635050893", "title": "Under the Mistletoe", "image_url": "https://cdn2.suno.ai/image_b481b17a-bf50-4e10-8adc-4d5635050893.jpeg", "lyric": "[Verse]\nSnowflakes falling on the ground\nTwinkling lights all around\nThe scent of pine fills the air\nChristmas magic everywhere\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right\n[Verse 2]\nStockings hung by the fire’s glow\nWarmth inside while the cold winds blow\nCookies baking\nSweet delight\nA season of joy shining bright\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right\n[Bridge]\nCarols sung by candlelight\nStars above make the world feel tight\nPeace and love\nA season’s creed\nFilling hearts with all we need\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right", "audio_url": "https://cdn1.suno.ai/b481b17a-bf50-4e10-8adc-4d5635050893.mp3", "video_url": "", "created_at": "2025-06-17T15:59:32.468Z", "model": "chirp-auk", "state": "succeeded", "prompt": "A song for Christmas", "style": "holiday, cheerful, male vocals", "duration": 154.92 }, { "id": "fbf22dab-5e2b-4e02-84c0-6d7605f14c3d", "title": "Under the Mistletoe", "image_url": "https://cdn2.suno.ai/image_fbf22dab-5e2b-4e02-84c0-6d7605f14c3d.jpeg", "lyric": "[Verse]\nSnowflakes falling on the ground\nTwinkling lights all around\nThe scent of pine fills the air\nChristmas magic everywhere\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right\n[Verse 2]\nStockings hung by the fire’s glow\nWarmth inside while the cold winds blow\nCookies baking\nSweet delight\nA season of joy shining bright\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right\n[Bridge]\nCarols sung by candlelight\nStars above make the world feel tight\nPeace and love\nA season’s creed\nFilling hearts with all we need\n[Chorus]\nUnder the mistletoe tonight\nHearts aglow in the soft moonlight\nLaughter echoes\nSpirits bright\nIt’s Christmas time\nIt feels so right", "audio_url": "https://cdn1.suno.ai/fbf22dab-5e2b-4e02-84c0-6d7605f14c3d.mp3",

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐