
随着AI的广泛应用各种AI程序逐渐变得流行。AI逐渐渗透到人们工作和生活的各个方面涉及的行业也在不断增加从最初的写作、医疗教育到现在的音乐创作。Suno是一个专业的高质量AI歌曲和音乐创作平台。用户只需输入简单的文本提示就能根据流派风格和歌词生成带有人声的歌曲。该AI音乐生成器由来自Meta、TikTok和Kensho等知名科技公司的团队成员开发旨在让每个人都能在没有乐器的情况下创作美妙的音乐。版本更新进展版本模型发布日期提示限制风格限制最大歌曲时长v5.5chirp-v5-52026.03.27500010008分钟v5chirp-v52025.09.23500010008分钟v4.5chirp-v4-5-plus2025.07.17500010008分钟v4.5chirp-v4-52025.05.03500010004分钟v4chirp-v42024.12.173000200150秒v3.5chirp-v3-5---3000200120秒Suno目前支持最新的chirp-v5-5模型。要使用最新版本请将model参数设置为chirp-v5-5chirp-v5及之前的版本仍然可用。然而Suno并未官方提供API。AceDataCloud提供了一组Suno API模拟了官方的集成方便快捷地生成所需的音乐。环境准备/前置条件在开始之前请确保您已注册AceDataCloud并获取API访问凭证。可以访问AceDataCloud官方网站注册和申请API密钥。详细步骤1. 申请API凭证首先访问Suno Audios生成API页面单击“获取”按钮以获取请求所需的凭证如果您未登录或注册系统将自动重定向到登录页面。登录或注册后您将自动返回当前页面。首次申请时将有免费配额可供使用。2. 基本用法如果您想生成一首歌曲可以输入任何文本。例如如果我想生成一首关于圣诞节的歌曲可以输入a song for Christmas如下图所示在请求头中我们设置了以下内容accept: 请求的响应格式这里填写为application/json表示接收JSON格式。authorization: 调用API的密钥可以在申请后直接选择。同时我们设置了请求体包括action: 音乐生成任务的操作默认是generate主要包括extend、upload_extend、cover、upload_cover、replace_section、concat、stems、all_stems、remaster。prompt: 来自Suno的灵感模式提示。model: 本次音乐生成任务的模型默认是chirp-v4主要包括chirp-v3、chirp-v4、chirp-v3-5、chirp-v4-5、chirp-v4-5-plus、chirp-v5、chirp-v5-5。lyric: 自定义模式的歌词内容。custom: 是否使用自定义模式默认是false。instrumental: 纯音乐选项。title: 自定义模式的歌曲标题。style: 自定义模式的音乐风格。其他参数如audio_weight、persona_id等。生成的代码如下可以点击“试试”按钮直接测试API等待1-2分钟后结果如下{ 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 } ] }可以看到我们获得了两首歌曲的内容包括标题、预览图、歌词、音频等。3. 自定义生成如果您想自定义歌词的生成可以输入歌词在此时lyric字段可以接受如下内容[Verse]\nSnowflakes falling all around\nGlistening white\nCovering the ground\nChildren laughing\nFull of delight\nIn this winter wonderland tonight\nSantas sleigh\nUp in the sky\nRudolphs nose shining bright\nOh my\nHear the jingle bells\nRinging so clear\nBringing joy and holiday cheer\n[Verse 2]\nRoasting chestnuts by the fires glow\nChristmas lights\nThey twinkle and show\nFamilies gathering with love and cheer\nSpreading warmth to everyone near请注意歌词中的\n是换行符。如果您不知道如何生成歌词可以使用AceDataCloud提供的歌词生成API通过提示生成歌词。API地址为Suno Lyrics Generation API。接下来我们需要根据歌词、标题和风格自定义生成歌曲可以指定如下内容lyric: 歌词文本custom: 填写为true表示自定义生成该参数默认为false表示使用prompt生成。title: 歌曲标题。style: 歌曲风格选填。填写示例代码如下生成的代码如下