Suno 歌曲生成 API 对接说明

随着 AI 的应用变广,各类 AI 程序已逐渐普及。AI 已逐渐深入到人们的工作生活方方面面。而 AI 涉及的行业也越来越多,从最初的写作,到医疗教育,再到现在的音乐。

Suno 是一个专业高质量的 AI 歌曲和音乐创作平台,用户只需输入简单的文本提示词,即可根据流派风格和歌词生成带有人声的歌曲。该 AI 音乐生成器由来自 Meta、TikTok、Kensho 等知名科技公司的团队成员开发,目标是不需要任何乐器工具,让所有人都可以创造美妙的音乐。

失败结果与重试

错误对象可能包含可选的布尔字段 error.retryable。只有当它为 true 时,才表示此次失败允许使用相同参数稍后重新请求,例如明确未受理的临时限流或服务容量不足。建议使用退避间隔并限制重试次数。重试成功的请求按正常规则计费。

retryable: false 表示不应原样重试。字段缺失时,不要仅根据 HTTP 500、busy 或错误文字自动重发。缺参数、素材格式或时长不符、内容审核及失效资源应先修正。提交超时、连接中断、已受理任务的轮询或媒体交付失败,应优先使用原 task_id 查询任务;重新提交可能创建新的歌曲。该标记描述的是原公共操作,不是某个内部处理步骤。

模型选择

目前推荐以下 V6 系列模型。

Suno 官网 API model 适用场景
v6 chirp-v6(默认) 通用歌曲生成和编辑
v6-wild chirp-v6-wild 实验性曲风与配器
v6-mini chirp-v6-mini 快速迭代创作想法

官网在 Create → Songs 的右上角选择模型。

Suno 官网创作页的 V6 模型菜单

已有集成仍可使用原型号,成功后沿用原费率。orchats 提供下文所述的 Suno 歌曲生成与编辑 API。

准备歌曲请求

登录应用列表,打开通用应用并复制 API KEY。在 Suno 歌曲调试页可以直接选择应用;在自己的代码里将复制的值填入 Authorization: Bearer {token}。使用受限密钥提交异步歌曲时,还需要开放任务查询接口。 示例中的 API_KEY 是应用密钥。代码里出现的 audio_id 和 persona_id 请换成你自己的资源 ID。

下面的歌曲 JSON 为对应操作的真实终态节选。部分响应只展示歌词开头和部分媒体字段。用 async: true 或 callback_url 提交时,先拿到 task_id,再通过回调或任务查询读取终态。

基本使用

第一次可以用灵感模式生成歌曲。在 prompt 中填入 A song for Christmas,保留默认的 action: "generate" 和 custom: false。同步响应中的 data[].audio_url 可直接试听;异步提交时,保存 task_id 并用歌曲任务查询获取结果。

这对应 Suno 官网 Create → Songs → Simple 中填写歌曲描述后点击 Create。

Suno 官网 Simple 模式中填入 A song for Christmas 后的 Create 表单

调用 orchats API 时,设置以下请求头和请求体。请求头包括:

  • accept:想要接收怎样格式的响应结果,这里填写为 application/json,即 JSON 格式。
  • authorization:调用 API 的密钥,申请之后可以直接下拉选择。

另外设置了 Request Body,包括:

  • action:音频任务类型,默认是 generate。支持生成、续写、翻唱、拼接、分轨、添加音轨、提取指定音轨、生成音效和调整速度等操作,统一通过 POST /suno/audios 调用。
  • prompt:Suno 官方的灵感模式提示词(custom 为 false 时生效),最大 500 字符。
  • model:此次音乐生成任务的模型。V6 系列包含 chirp-v6、chirp-v6-wild 和 chirp-v6-mini,默认 chirp-v6。
  • max_mode:增强生成模式。generate 仅在 custom 与 max_mode 均为 true 时启用,费用为 1.12 Credits;add_stem 可直接启用,费用为 1.344 Credits。关闭或省略时分别为 0.56 和 0.672 Credits。
  • variety:生成结果的多样性强度,可选 off、normal、high、extra、max。仅用于 generate 和 add_stem,其他 action 传入会返回 400。
  • lyric:自定义模式的歌词内容,V6 系列最多 5000 字符。
  • custom:是否采用自定义模式,默认是: false。
  • instrumental:Suno 官方的灵感模式的纯音乐选项。
  • title:自定义模式的音乐标题,最多 100 字符。
  • style:自定义模式的音乐风格,最多 1000 字符。
  • negative_tags:自定义生成时希望排除的音乐风格或流派,也可用于 replace_section。本接口目前未对该字段设置固定字符数上限;过长内容仍可能无法处理,建议保持描述精简。
  • audio_weight:音频或声音特征的影响权重,范围 0-1,0 也是有效值。可用于生成、续写、翻唱、添加音轨和声音一致性等操作;没有参考音频或声音特征时,模型可能弱化或忽略该值。
  • audio_id:参考音乐的 ID,用于翻唱、续写、分轨等后续操作。音频文件仍可下载,不代表该 ID 的后续处理始终可用;若返回 suno_processing_unavailable,请保留 task_id 和 trace_id 联系支持。
  • overpainting_start/overpainting_end:为已有纯音乐补充人声的起止时间,单位秒。
  • underpainting_start/underpainting_end:为清唱加伴奏的起止时间,单位秒。
  • persona_id:通过 Persona 或声音创建接口获得的声音 ID,不是歌曲的 audio_id。
  • continue_at:续写边界,单位为秒。例如,213.5 表示从第 3 分 33.5 秒处开始生成后续片段。lyric 和 style 只引导边界之后的新内容,不会替换源音频中边界之前的歌词或演唱。
  • style_influence:自定义模式下的风格影响力,范围 0-1,越大通常越贴合所选风格;0 会作为有效值传递。
  • replace_section_end:替换片段的最终时间。
  • replace_section_start:替换片段的起始时间。
  • vocal_gender:控制男女声偏好,女声 f,男声 m。实际演唱以成品为准。
  • weirdness:自定义模式下的怪异度,范围 0-1,越大通常越具创意和实验性;0 会作为有效值传递。
  • duration:期望的歌曲时长,单位秒,需为整数,取值范围 10 到 360。当前仅 generate 使用该参数,具体效果取决于模式和模型。它是一个倾向性提示而非硬性约束:模型会参考它,但不保证达到,实际成品时长以响应中的 duration 字段为准,通常短于期望值。

声音 ID 的适用范围

generate、cover、upload_cover、artist_consistency、artist_consistency_vox 可以使用 persona_id。后两个 action 必须提供 persona_id;也可以同时提供创建该 Persona 时所用歌曲的 audio_id。

extend、upload_extend 不使用额外的 persona_id。mashup、inspo 是否支持声音 ID 取决于所选服务通道;其他 action 不保证应用该字段,请按各操作说明使用。vocal_gender 是可选的性别偏好,不能代替声音 ID。

后续创作操作需要有效的源 audio_id;mashup 需要至少两个 mashup_audio_ids。缺少必要来源或时间参数时会返回 HTTP 400。

续写或翻唱前可用 POST /suno/availability 检查源歌曲或私有音色。检查只需一个 UUID,私有素材使用创建时的应用和调用者身份。 可用性检查指南

高级参数适用范围

参数 取值 支持的 action 说明
weirdness 0-1 可选 调节实验性,0 是有效值;效果取决于操作、模式和模型
style_influence 0-1 可选 调节风格遵循倾向,0 是有效值;效果取决于操作、模式和模型
audio_weight 0-1 可选 调节音频或声音特征的影响;无参考信息时可能被模型忽略
variety off / normal / high / extra / max generate、add_stem 调节结果间的风格多样性
max_mode boolean generate(要求 custom=true)、add_stem 增强一致性并按增强模式计费
vocal_gender f / m 支持人声控制的生成操作 偏好项,不保证严格遵循
平台会校验参数类型和数值范围。各参数的适用操作见上表,效果取决于操作、模式和模型。

平台会校验参数类型和数值范围,但不会仅因 action 不同拒绝这些可选调节项;具体效果由操作、模式和模型决定。

  • lyric_prompt:生成歌词的 prompt,当且仅当 custom 为 true 并且 lyric 没有传的时候生效。
  • callback_url:需要回调结果的 URL。
  • async:可选,设为 true 时接口立即返回 task_id,无需提供 callback_url,随后通过对应的任务查询接口轮询获取结果。

生成的代码如下:

curl -sS -X POST 'https://api.orchats.repoingest.com/suno/audios' \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{
  "action": "generate",
  "model": "chirp-v6",
  "prompt": "A song for Christmas"
}'

也可以在调试页点击「Try」直接测试 API。以下是使用 V6 生成的两首歌曲的终态节选。

{
  "success": true,
  "task_id": "c409f30d-4b2f-4ad9-8ae7-f394e367713d",
  "trace_id": "f9ff7920-2b74-4c69-867b-183cd41166fa",
  "data": [
    {
      "id": "15b56d7a-1ad1-4dc6-bc74-79b102caceeb",
      "title": "Room for One More Chair",
      "lyric": "[Verse 1]\nThe kettle sings, the window steams\nA paper chain hangs slightly crooked\nYou set the old tin on the shelf\nAnd laugh at how the years have kept it",
      "audio_url": "https://cdn.acedata2.cloud/suno/15b56d7a-1ad1-4dc6-bc74-79b102caceeb.mp3",
      "created_at": "2026-12-01T09:02:22.466Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "A song for Christmas",
      "style": "Cinematic Christmas pop with film-score scale, a steady four-on-the-floor pulse, driving syncopated percussion, and a repeating cello ostinato. Begin with intimate piano and close, warm lead vocals; build through layered strings, brass swells, and wordless choir accents into a wide, uplifting final chorus. Polished, spacious mix with clear vocal focus and dynamic section lifts.",
      "duration": 231.96
    },
    {
      "id": "555bf85a-907c-4573-b6f3-e816c04aabb9",
      "title": "Always Room for More",
      "lyric": "[Intro]\n[Wordless vocals]\nOh—ah, oh—ah\n[Verse 1]\nSnow gathers softly on the windowpane",
      "audio_url": "https://cdn.acedata2.cloud/suno/555bf85a-907c-4573-b6f3-e816c04aabb9.mp3",
      "created_at": "2026-12-01T09:02:22.466Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "A song for Christmas",
      "style": "Cinematic Christmas pop with marathon-film scale, syncopated rhythmic drive, cello ostinato, four-on-the-floor pulse, and wordless vocal drops. Begin with a restrained cello figure and distant wordless voices; build into a broad, uplifting chorus with layered strings, punchy percussion, and a clear lead vocal. Use a brief countdown-style dropout before the final chorus, then finish with a full, resolved orchestral-pop ending. Polished, spacious mix with strong low-end and crisp rhythmic detail.",
      "duration": 231.2
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

可以看到这时候我们就得到了两首歌的内容,包括标题、预览图、歌词、音频、视频等内容。

字段说明如下:

  • success:生成是否成功,如果成功则为 true,否则为 false
  • data:是一个列表,包含了生成的歌曲的详细信息。
    • state: 歌曲生成状态,主要包含四种,具体的如下:
      • succeeded:生成成功
      • pending:队列中
      • running:执行中
      • error:失败
    • id:歌曲 ID
    • title:歌曲的标题
    • image_url:歌曲的原始封面图片 URL,可直接用于展示。
    • image_large_url:歌曲的高清原始封面 URL,有高清图时返回。需要长期保留封面时,请自行下载保存。
    • lyric:歌曲的歌词
    • audio_url:歌曲的终态音频地址。平台会优先返回 orchats CDN 地址;若持久化失败,可能返回原始媒体地址,请及时下载。
    • video_url:歌曲的视频文件,打开就是一个 mp4 视频。
    • created_at:歌曲创建时间,使用 ISO 8601 格式。
    • model:响应记录的型号。
    • style:风格。
    • duration:每首歌曲的实际时长,单位为秒。

自定义生成

如果想自定义生成歌词,可以输入歌词:

这时候 lyric 字段可以传入类似如下内容:

[Verse]
Window lights across the bay
Guide the boats that drift away
[Chorus]
Bring the morning home to me
Fold the stars into the sea

注意,这里的歌词中 \n 是换行符,如果你不知道如何生成歌词,可以使用 orchats 提供的歌词生成 API 来通过 prompt 生成歌词,API 是 Suno Lyrics Generation API。

接下来我们要根据歌词、标题、风格自定义生成歌曲,就可以指定如下内容:

  • lyric:歌词文本
  • custom:填写为 true,代表自定义生成,该参数默认为 false,代表使用 prompt 生成。
  • title:歌曲的标题。
  • style:歌曲的风格,选填。

对应官网 Create → Songs → Advanced。把歌词填入 Lyrics,曲风填入 Styles,再设置歌曲标题。

Suno 官网 Advanced 模式中填入示例的 Window Lights 歌词

Suno 官网 Advanced 模式中填入示例曲风和歌名

对应的代码:

curl -sS -X POST 'https://api.orchats.repoingest.com/suno/audios' \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{
  "action": "generate",
  "model": "chirp-v6",
  "custom": true,
  "title": "Window Lights",
  "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
  "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea"
}'

在官网创作完成后,可以在 My Songs 试听两首候选。图中是官网生成的两首 Window Lights。后面的 JSON 是 orchats API 独立实测的响应。

Suno 官网 My Songs 中独立生成的两首 Window Lights

{
  "success": true,
  "task_id": "f87a3222-b5f6-4bc6-8324-1923e8349478",
  "trace_id": "f5490512-610e-4335-947c-fdee98bb415a",
  "data": [
    {
      "id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
      "title": "Window Lights",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/3f8c1800-7a96-4a2b-811f-5fee716a9e32.mp3",
      "created_at": "2026-11-30T17:50:09.196Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
      "duration": 47.6
    },
    {
      "id": "ebafbeeb-9bdb-4b28-9c03-6a09734ba6df",
      "title": "Window Lights",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/ebafbeeb-9bdb-4b28-9c03-6a09734ba6df.mp3",
      "created_at": "2026-11-30T17:50:09.196Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
      "duration": 43.32
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

自定义歌手风格生成功能

先生成要参考的歌曲,再调用 POST /suno/persona。传入该歌曲的 audio_id 和角色名称 name,可选填 description。响应会给出 persona_id。 Suno Persona API

对应的 Python 代码:

import os

import requests

url = "https://api.orchats.repoingest.com/suno/persona"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "name": "Window Lights style",
    "description": "Soft acoustic folk, fingerpicked guitar and brushed drums",
    "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

点击运行,可以发现会得到一个结果,如下:

{
  "success": true,
  "task_id": "e36f2c78-f333-4f84-ad23-a371ff73df6d",
  "data": {
    "persona_id": "1787f427-02ea-4e5c-8b88-458779881804"
  }
}

在下一个歌曲请求中,把上一步返回的 data.persona_id 填入 persona_id,再把用于创建角色的歌曲 ID 填入 audio_id。普通风格角色使用 artist_consistency。从人声片段创建的 VOX 角色使用 artist_consistency_vox。 VOX 人声片段

在官网给创作添加已有角色时,通过 Advanced → + Voice → My Voices 打开选择面板。截图展示这一入口。

Suno 官网 Advanced 中打开 My Voices 的选择面板

对应的 Python 代码:

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "artist_consistency",
    "model": "chirp-v6",
    "persona_id": "1787f427-02ea-4e5c-8b88-458779881804",
    "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
    "custom": True,
    "style": "Soft acoustic folk",
    "lyric": "[Chorus]\nBlue boats glide beyond the bay",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

点击运行,可以发现会得到一个结果,如下:

{
  "success": true,
  "task_id": "540f43fd-a229-4644-b693-dd9727700462",
  "trace_id": "98ac0837-b64e-498d-92ce-51ceddcd9007",
  "data": [
    {
      "id": "9e5030c7-233c-4521-8e93-f008ee583a97",
      "title": "Blue Boats",
      "lyric": "[Chorus]\nBlue boats glide beyond the bay",
      "audio_url": "https://cdn.acedata2.cloud/suno/9e5030c7-233c-4521-8e93-f008ee583a97.mp3",
      "created_at": "2026-11-30T18:14:21.715Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk",
      "duration": 40.72
    },
    {
      "id": "cf72ce86-1816-4efb-94a6-6f4aded1c83d",
      "title": "Blue Boats",
      "lyric": "[Chorus]\nBlue boats glide beyond the bay",
      "audio_url": "https://cdn.acedata2.cloud/suno/cf72ce86-1816-4efb-94a6-6f4aded1c83d.mp3",
      "created_at": "2026-11-30T18:14:21.715Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk",
      "duration": 20
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

可以看出,结果内容与上文的是一致的,这也就实现使用歌手风格来生成歌曲的功能。

继续生成功能

如果想对已经生成的 Suno 歌曲进行继续生成的话,可以将参数 action 设置为 extend ,并且输入需要继续生成歌曲的 ID,歌曲 ID 的获取是根据基本使用来获取,通过上文可知,这时候可以看到歌曲的 ID 为:

{
  "id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32"
}

这里的 id 是生成后歌曲的 ID,可以从前面示例的 data[] 取出。

如果想对自己上传的歌曲继续生成,就设 action 为 upload_extend。所需歌曲 ID 从上传响应中的 data.audio_id 获取。 Suno Upload Generation API

{
  "success": true,
  "task_id": "7f995f02-e4ab-4ad8-adfd-584a1d70c745",
  "data": {
    "audio_id": "a6dbc2ab-a2ab-4c32-a7fb-2cfa7abd122d"
  }
}

需要续写指定歌词时,填写续写片段的歌词,并可指定风格。

  • lyric:只用于引导 continue_at 之后新生成片段的歌词,不会替换源音频中该时间点之前的歌词。
  • custom:填写为 true,代表自定义生成,该参数默认为 false,代表使用 prompt 生成。
  • style:续写片段的歌曲风格,选填。
  • continue_at:续写边界,单位为秒。例如,213.5 表示从第 3 分 33.5 秒处开始生成后续片段。

extend 和 upload_extend 的 continue_at 必须大于 0,支持小数秒,例如 30.792;提交时不会取整。

extend 用于接着已有歌曲往后创作,不是给整首歌曲换词。若希望整首歌曲从头使用新歌词,请使用 generate 重新生成;若希望参考已有歌曲重新演绎,可使用 cover。传入一整首新歌词时,continue_at 之前的原歌词仍不会被替换。

官网选择 Edit → Extend。拖动波形选择续写起点,波形下方的 Extend from 对应 continue_at。

Suno 官网 Extend 表单选择 36.6 秒作为续写起点

下面的 API 请求示例从原曲第 36.5 秒开始续写。

对应的 Python 代码:

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "extend",
    "model": "chirp-v6",
    "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
    "continue_at": 36.5,
    "custom": True,
    "lyric": "[Outro]\nCarry one more light for me\nHome across the quiet sea",
    "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

点击运行,可以发现会得到一个结果,如下:

{
  "success": true,
  "task_id": "21085c89-c028-4386-84b1-7653f009d56a",
  "trace_id": "fe072f90-0ceb-457b-837b-4765367f1516",
  "data": [
    {
      "id": "aaed0954-f055-49b4-9b93-5776179a7d9c",
      "lyric": "[Outro]\nCarry one more light for me\nHome across the quiet sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/aaed0954-f055-49b4-9b93-5776179a7d9c.mp3",
      "created_at": "2026-11-30T18:05:01.698Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
      "duration": 41.92
    },
    {
      "id": "c12c00d4-1211-406a-8658-af6c3029f3b9",
      "lyric": "[Outro]\nCarry one more light for me\nHome across the quiet sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/c12c00d4-1211-406a-8658-af6c3029f3b9.mp3",
      "created_at": "2026-11-30T18:05:01.698Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
      "duration": 41.6
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

可以看出,结果中 lyric 会返回此次续写任务使用的歌词文本。该字段不是完整成品音频的逐字转写;对于 extend,continue_at 之前的源音频仍使用原歌词,新歌词只用于引导续写片段。

上传后的续写使用 upload_extend。保留相同的 continue_at、歌词与风格填法,将 audio_id 换成上传返回的 data.audio_id。

{
  "action": "upload_extend",
  "model": "chirp-v6",
  "audio_id": "a6dbc2ab-a2ab-4c32-a7fb-2cfa7abd122d",
  "continue_at": 36.5,
  "custom": true,
  "lyric": "[Outro]\\nCarry one more light for me\\nHome across the quiet sea",
  "style": "Soft acoustic folk"
}

上传后续写的终态节选。

{
  "success": true,
  "task_id": "7fc1c79b-72d2-4697-a18e-caf6fee7d22c",
  "trace_id": "fa320093-4e8e-4eba-89eb-610ad31cd271",
  "data": [
    {
      "id": "8cb590ab-c3e4-4179-b3ad-773b4eba4c32",
      "audio_url": "https://cdn.acedata2.cloud/suno/8cb590ab-c3e4-4179-b3ad-773b4eba4c32.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 45.4
    },
    {
      "id": "112ec6d7-df1a-40ca-b295-967a9cb747b4",
      "audio_url": "https://cdn.acedata2.cloud/suno/112ec6d7-df1a-40ca-b295-967a9cb747b4.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 33.16
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

获取完整歌曲

请先试听 extend 的返回结果,并核对实际时长。有些结果已经包含 continue_at 之前保留的部分和后续新内容。若返回独立续写片段,或者需要显式合并多次续写,再用下方拼接功能。

  • action:内容为 concat。
  • audio_id:最后一个续写片段的 ID。

官网从已生成的续写候选打开 ⋯ → Create → Get Whole Song。API 使用所选续写片段的 ID。示例选用 aaed0954-f055-49b4-9b93-5776179a7d9c。 Suno 续写说明

{
  "action": "concat",
  "model": "chirp-v6",
  "audio_id": "aaed0954-f055-49b4-9b93-5776179a7d9c"
}

其他参数不变,返回的就是一首完整的歌曲,就是所有歌曲片段的拼接结果,但结果只有一首歌,样例如下:

{
  "success": true,
  "task_id": "7f74f719-18ed-4605-b345-e93dd671e384",
  "trace_id": "3cf0e5da-47ca-4c41-9c4b-98c721684879",
  "data": [
    {
      "id": "1e2411b4-1a0c-4e83-87d4-c968c62a7e19",
      "title": "Window Lights",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea\n[Outro]\nCarry one more light for me\nHome across the quiet sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/1e2411b4-1a0c-4e83-87d4-c968c62a7e19.mp3",
      "created_at": "2026-11-30T18:11:42.286Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
      "duration": 78.4
    }
  ],
  "cost": {
    "amount": 0.036,
    "currency": "credit",
    "list_amount": 0.04
  }
}

音乐翻版

当基于原有的歌曲继续生成歌曲之后,返回的歌曲的风格可能不太合适。如果要对原先生成的歌曲(若是自定义上传的音乐也支持)进行翻版,需要使用音乐翻版方法,就可以指定如下内容:

在官网成品菜单选择 Remix → Cover。本地音频先在 + Audio → Upload 导入,再做翻唱。

Suno 官网选中 Cover 后的参考歌曲和波形

  • action:内容为 cover,当是对自定义上传的音乐进行翻版操作的时候必须指定内容为:upload_cover。
  • audio_id:之前生成歌曲的 ID。

如需使用指定声音翻唱,可同时传入 persona_id。通过 /suno/voices 创建的私有声音需要先在 /suno/upload 中携带相同的 persona_id 上传原曲,再使用返回的 audio_id 进行 upload_cover。各步骤须使用相同的服务通道。无需额外指定 vocal_gender,性别偏好不能代替声音 ID。

比如源歌曲 ID 是 3f8c1800-7a96-4a2b-811f-5fee716a9e32,那么可以设置参数如下。可以用 prompt 指定变化方向。

{
  "action": "cover",
  "model": "chirp-v6",
  "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
  "prompt": "Reimagine this acoustic folk song as soft bossa nova."
}

其他参数不变,返回的就是一首翻版后的歌曲,就是对原先生成的歌曲进行翻版后的结果,样例如下:

{
  "success": true,
  "task_id": "475cee66-4cde-4a41-936a-4025587a55ab",
  "trace_id": "5b961fe5-e712-4264-8a26-5465d7636cd9",
  "data": [
    {
      "id": "a743e000-516a-4416-826b-086b61e1907c",
      "title": "Mango Peel Moon",
      "lyric": "[Verse 1]\nYou left your cup by the sink\nHalf a lime in the glass\nI saw your shirt on the chair\nAnd the morning move too fast",
      "audio_url": "https://cdn.acedata2.cloud/suno/a743e000-516a-4416-826b-086b61e1907c.mp3",
      "created_at": "2026-11-30T18:05:01.716Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "Reimagine this acoustic folk song as soft bossa nova.",
      "style": "Soft bossa nova with brushed syncopation, nylon-string guitar, upright bass, and light shaker; verse rides close-mic and conversational, pre-chorus opens with a breathy lift and subtle harmony, chorus lands on a warm repeated hook with soft gang doubles. Gentle conga taps, piano grace notes, and a small tape-wobble transition before the bridge. Intimate, warm, and silky in the mix., acoustic, folk, bossa nova, soft",
      "duration": 222.48
    },
    {
      "id": "8520edee-3678-4533-bcb7-deda59c5807c",
      "title": "Mango Peel Moon",
      "lyric": "[Verse 1]\nYou left your cup by the sink\nHalf a lime in the glass\nI saw your shirt on the chair\nAnd the morning move too fast",
      "audio_url": "https://cdn.acedata2.cloud/suno/8520edee-3678-4533-bcb7-deda59c5807c.mp3",
      "created_at": "2026-11-30T18:05:01.716Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "Reimagine this acoustic folk song as soft bossa nova.",
      "style": "Soft bossa nova with brushed syncopation, nylon-string guitar, upright bass, and light shaker; verse rides close-mic and conversational, pre-chorus opens with a breathy lift and subtle harmony, chorus lands on a warm repeated hook with soft gang doubles. Gentle conga taps, piano grace notes, and a small tape-wobble transition before the bridge. Intimate, warm, and silky in the mix., acoustic, folk, bossa nova, soft",
      "duration": 212.76
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

生成的结果与上文类似,这就完成了对原先生成的歌曲进行翻版生成的过程。

翻唱上传音频时,可以使用以下请求和上传结果的 audio_id。

{
  "action": "upload_cover",
  "model": "chirp-v6",
  "audio_id": "a6dbc2ab-a2ab-4c32-a7fb-2cfa7abd122d",
  "prompt": "Acoustic ballad with warm cello and soft vocals"
}

上传后翻唱的终态节选。

{
  "success": true,
  "task_id": "d3f33f44-6abe-4429-84e7-b7a01933711f",
  "trace_id": "bf5f5bf1-494a-4520-a70b-b3cb1145e2f9",
  "data": [
    {
      "id": "305ee2e5-a06c-46e7-9bad-bebc5010f0a5",
      "title": "Hands On The Rail",
      "audio_url": "https://cdn.acedata2.cloud/suno/305ee2e5-a06c-46e7-9bad-bebc5010f0a5.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 214.8
    },
    {
      "id": "20eafedb-f0ec-4440-adcb-32d815b70824",
      "title": "Hands On The Rail",
      "audio_url": "https://cdn.acedata2.cloud/suno/20eafedb-f0ec-4440-adcb-32d815b70824.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 257.6
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

替换片段

replace_section 根据源歌曲的时间区间重新生成选中的片段,并将结果拼回原曲。replace_section_result_mode 默认为 full_song,返回 2 首完整歌曲,可直接播放,无需再调用 concat。

在 Suno 官网选择 Edit → Replace section,在波形上选择要替换的区间。波形下方的两个时间框对应 replace_section_start 和 replace_section_end。

Suno 官网 Replace section 表单中的 6.5 到 16.5 秒演示选区

输入怎么填

  • action:replace_section。
  • audio_id:要编辑的完整歌曲 ID。再次编辑时,使用上一次选中的完整歌曲的 data[].id,不是 task_id。
  • model:歌曲生成模型,例如 chirp-v6。
  • lyric:选中区间要唱的局部新歌词。不需要为了获得完整歌曲而传入整首歌词。
  • prompt:明确指定这次替换的局部新歌词。改词时建议与 lyric 填入同一段内容,避免两个字段表达不同的歌词。已有只传局部 lyric、省略 prompt 的请求仍可使用,但补上 prompt 本身并不保证改词成功。
  • style、negative_tags:可选的风格描述和排除项;prompt 在此操作中不是普通做歌时的灵感描述。
  • replace_section_start、replace_section_end:选区在本次源歌曲中的起止时间,单位为秒,支持小数。起点不得小于 0,终点必须大于起点且不得超过源歌曲时长。
  • replace_section_result_mode:full_song(默认)返回 2 首完整歌曲;candidates 返回 2 个尚未拼接的替换候选。

不要将“lyric 必须是替换后的完整歌词,prompt 必须是局部歌词”作为通用用法。完整歌词输入在部分任务中会产生过长的替换内容,拼接后使整曲显著变长。局部输入也不保证固定时长或逐字遵循歌词;这是生成式编辑,需要检查实际音频。

发起任务并取得完整歌曲

下面的实测示例选取 8.5 秒到 16.5 秒的区间。请把 audio_id 和起止时间换成自己试听后确认的完整歌曲与选区。

{
  "action": "replace_section",
  "model": "chirp-v6",
  "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
  "replace_section_start": 8.5,
  "replace_section_end": 16.5,
  "lyric": "Blue boats glide beyond the bay",
  "prompt": "Blue boats glide beyond the bay",
  "async": true
}

提交后使用返回的 task_id 查询 /suno/tasks,请求体为 {"action":"retrieve","id":"YOUR_TASK_ID"}。任务完成后,在任务响应的 response.data 中取得两首完整歌曲的 id、audio_url 和 duration,试听后选择其中一首。success: true 表示任务执行成功,不等于新歌词已逐字唱出或时长符合预期。

默认模式的两首完整歌曲实测节选。

{
  "success": true,
  "task_id": "8616c06a-2b00-4c0e-be1d-42b529783cd4",
  "trace_id": "2219245a-188a-4b92-b852-4d4ec2a09ff9",
  "data": [
    {
      "id": "cc1074ab-16a5-4dc6-bfe0-5f993094e536",
      "title": "Window Lights",
      "lyric": "[Verse]\nBlue boats glide beyond the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/cc1074ab-16a5-4dc6-bfe0-5f993094e536.mp3",
      "created_at": "2026-11-30T18:12:12.903Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
      "duration": 46.4
    },
    {
      "id": "4930f34e-2ce5-41c5-b318-3e28eefe2cde",
      "title": "Window Lights",
      "lyric": "[Verse]\nBlue boats glide beyond the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/4930f34e-2ce5-41c5-b318-3e28eefe2cde.mp3",
      "created_at": "2026-11-30T18:12:13.509Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
      "duration": 47.6
    }
  ],
  "cost": {
    "amount": 0.72,
    "currency": "credit",
    "list_amount": 0.8
  }
}

选区、结果检查与再次编辑

  1. 先试听源歌曲,再结合 /suno/timing 的时间信息确定选区,尽量覆盖完整乐句。不要按歌词数组的固定下标选区,也不要用几句歌词替换包含更多乐句的区间而预期节奏完全不变。
  2. 新歌词的句数、字数和节奏尽量接近选区原有内容。只改几个字也需要试听验证,不能据此保证成功。
  3. 检查目标区间是否唱出新词、前后衔接是否自然,以及整曲时长是否合理。full_song 表示返回完整歌曲,不表示与原曲等长;替换片段变长时,后半段会相应后移。duration 请求参数只用于普通生成,不能锁定替换片段的时长。
  4. 返回的 lyric 是歌词元数据,完整歌曲模式会在可取得源歌词时间信息时组合完整歌词;无法取得时可能为空。它不是音频转写,出现新词不能证明音频已唱出新词。时间对齐信息也应结合试听核对,尤其是已经编辑过的产物。
  5. 再次编辑时,以所选完整成品 ID 为新的 audio_id,重新核对该成品的时长和选区。不要照搬编辑前的时间坐标,也不要直接将上次返回的整首 lyric 当作本次局部输入。

如果任务已完成但仍唱旧词、漏词或显著变长,先检查源歌曲 ID、选区和局部歌词,再检查另一首结果。增加任务查询频率不会改变已生成的内容。若仍异常,请保留 task_id、源歌曲 ID、请求字段、选区及结果音频,便于核查。

可选:先取候选,再手动拼接

仅当需要自行挑选替换候选时,设置 replace_section_result_mode: "candidates"。候选可能包含上下文,不能仅凭候选时长把它当作完整歌曲。选定后,以候选的 data[].id 调用 concat,再取得完整成品。

默认 full_song 已完成拼接,不需要执行这一步。

声曲分离

计费:action=stems 成功后,每次请求的标准费用为 0.56 Credits;同一请求返回的人声与伴奏合并计为一次。适用的消费优惠以实际账单为准,失败请求不收费。all_stems 和 extract_stem 按各自价格计费。

在官网选择 Edit → Get stems,打开 Extract Stems and MIDI。通过 API 只需拆出人声和伴奏时使用 stems,需要更多独立乐器轨道时使用下面的 all_stems。

当生成歌曲之后需要进行伴奏和人声单独操作的二次创作时,可以分离纯音乐伴奏和清唱人声。就可以指定如下内容:

  • action:内容为 stems。
  • audio_id:之前生成歌曲的 ID。

例如,使用原曲 3f8c1800-7a96-4a2b-811f-5fee716a9e32 发起分离请求。

{
  "action": "stems",
  "model": "chirp-v6",
  "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32"
}

通过以上参数即可得到声曲分离的结果,结果如下:

{
  "success": true,
  "task_id": "269799ed-e450-44ae-a3cc-491f3073e604",
  "trace_id": "39c95376-0fda-4453-969d-fa72a3b6c722",
  "data": [
    {
      "id": "316898fd-a7ac-4c2a-9190-7a88aa02fcaa",
      "title": "(Vocals)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/316898fd-a7ac-4c2a-9190-7a88aa02fcaa.mp3",
      "created_at": "2026-11-30T18:05:01.768Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "08cc9c7a-9014-4c16-8f3f-d1d449673d2b",
      "title": "(Instrumental)",
      "audio_url": "https://cdn.acedata2.cloud/suno/08cc9c7a-9014-4c16-8f3f-d1d449673d2b.mp3",
      "created_at": "2026-11-30T18:05:01.768Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "86718589-8382-49d7-8aae-0656b6da3a1d",
      "title": "(Vocals)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/86718589-8382-49d7-8aae-0656b6da3a1d.mp3",
      "created_at": "2026-11-30T18:05:01.768Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "bb125c17-cbf4-46e1-b48b-f457bea9f389",
      "title": "(Instrumental)",
      "audio_url": "https://cdn.acedata2.cloud/suno/bb125c17-cbf4-46e1-b48b-f457bea9f389.mp3",
      "created_at": "2026-11-30T18:05:01.768Z",
      "state": "succeeded",
      "duration": 47.6
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

生成的结果与上文类似,这就完成了对原先生成的歌曲进行声曲分离的过程。

全轨道声曲分离

官网在 Extract Stems and MIDI 弹窗中选择 Auto split,对应自动拆分多条独立音轨的场景。

Suno 官网全轨道分离选中 Auto split 的界面

任务会等待全部音轨生成完成后才返回成功终态。处理中出现可播放地址不代表整组音轨已经完成。 全轨道分离每次成功请求标准费用为 1.6 Credits。处理中已经显示试听地址时,也需要等任务完成再取整组音轨。

当生成歌曲之后需要进行全轨道声曲分离操作时,就可以指定如下内容:

  • action:内容为 all_stems。
  • audio_id:之前生成歌曲的 ID。

例如,用源曲 3f8c1800-7a96-4a2b-811f-5fee716a9e32 分离全轨道。所选音轨的 data[].id 可作为 MIDI 提取的输入。 MIDI 提取

{
  "action": "all_stems",
  "model": "chirp-v6",
  "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32"
}

通过以上参数即可得到全轨道声曲分离的结果,结果如下:

{
  "success": true,
  "task_id": "36358e35-a2d5-4406-82a3-8ff9636c8959",
  "trace_id": "012a7311-f7cd-40c8-8939-aa682249bcad",
  "data": [
    {
      "id": "72707f4d-d3fd-4c90-a0ca-696480666842",
      "title": "(Vocals)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/b0bf4d5fafce804a93ac0f7ad9c64dd75ea09ea0ae934d01fefba1bff2eb1eee.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "41852f08-1d98-4cc6-b3a7-8438580cb2fb",
      "title": "(Backing Vocals)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/28a43f6215fd8bcf13b17c591d6d465ce0227349e9a4d8ea4a624f715549f396.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "57e07045-43bb-40b3-9989-d57e0083339e",
      "title": "(Drums)",
      "audio_url": "https://cdn.acedata2.cloud/suno/c2058a6a6844a72a4a80fe1b90bbe4596342f1dc417a882d5045f3626615d8d9.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "b568865b-57e1-4bc5-a541-5f652419b84f",
      "title": "(Bass)",
      "audio_url": "https://cdn.acedata2.cloud/suno/3f840e1be98c3166b841519c9de967dd8985be22aa7cf578cbb9b198265e6d5d.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "b241d1f8-3141-4772-8bb3-4ca007258e14",
      "title": "(Guitar)",
      "audio_url": "https://cdn.acedata2.cloud/suno/9a01856b7df6f1198f07009de62178fcf96a331d7b544401085971e7dae0a113.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "f34e809a-ce8e-4724-9bcf-0b6fad45966c",
      "title": "(Keyboard)",
      "audio_url": "https://cdn.acedata2.cloud/suno/1e4eda67c22c42a88ad20200d6f293f95e319c4607cb8ef4067a47d235991beb.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "8c9c14c8-c243-4794-ad33-147f31b76fde",
      "title": "(Percussion)",
      "audio_url": "https://cdn.acedata2.cloud/suno/5eb662d60f36f71f1860ec7852174254807e089601c42887a3ccb5f1db7b7c64.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "648491b5-6294-4010-b35d-a638f2dc285f",
      "title": "(Strings)",
      "audio_url": "https://cdn.acedata2.cloud/suno/2997d2534a1395e74c10a0039895d76665397d8fd186a297324270d482fef656.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "a8e86ddb-8e35-44c2-a61c-0b72f0c5bc08",
      "title": "(Synth)",
      "audio_url": "https://cdn.acedata2.cloud/suno/4efddd81cd03b51e9f8c28a4af78ee2bba0d8ff8bb2f159b2ff9d17cdd7c966f.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "49f363d9-769e-4e96-8651-9e5b3ae85361",
      "title": "(FX)",
      "audio_url": "https://cdn.acedata2.cloud/suno/75457e8ee8d89b44035ca069668cb39e402e91cec772dbef02b196981c81f5bd.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "16a6f2b1-7add-40a9-b746-321f92005991",
      "title": "(Brass)",
      "audio_url": "https://cdn.acedata2.cloud/suno/8fd176374ef70383edfaaacd22de3cc8737d029393283cb3167e6d1fa68322f1.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "5fcddae2-d081-47e3-847c-61c69851bdfe",
      "title": "(Woodwinds)",
      "audio_url": "https://cdn.acedata2.cloud/suno/df44088f262c58ba6edee0216450dc71533f682f9d4a77865916c28f6fa03cbb.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "9372a7d2-5e62-430a-a243-2a44ee25f24d",
      "title": "(Vocals)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/9ce56fd9ab3f403cd1e4db565e1c400400e4a1c3318c48d780286bcfbc1066c1.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "1556bc3d-56de-4c62-878e-9f9d1d1872a1",
      "title": "(Backing Vocals)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/e60e61f565f8b1b24517881ac7992f61ad4d8d517965907151289bc1fde1f8df.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "aa280b4c-27b3-4e6a-ad55-f1fc1e0b139f",
      "title": "(Drums)",
      "audio_url": "https://cdn.acedata2.cloud/suno/72c5145ed4ec2963be8b5ce76c44462d63add6f899deae610901ae89910d3c25.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "6e7bc012-82d3-4320-9584-65d3c7c7acd1",
      "title": "(Bass)",
      "audio_url": "https://cdn.acedata2.cloud/suno/6beac0c0ad82ea676c31787de84ff2c51d1ef944bd8c772204b84ce37eadb880.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "a45c3d09-122c-419a-a78c-5cf8888c6513",
      "title": "(Guitar)",
      "audio_url": "https://cdn.acedata2.cloud/suno/824dd2be231d01a36c5e6a9230636f7890034e47408c40cdb7a126450b98fbff.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "4b57e164-b18b-4488-abc9-fd5fc1d1282a",
      "title": "(Keyboard)",
      "audio_url": "https://cdn.acedata2.cloud/suno/222495df0dc443ad4fa5a70db7d20f67ee044ed2a687e33ddd943496539ec217.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "44ff0ac0-df04-4910-ba19-198511d289a4",
      "title": "(Percussion)",
      "audio_url": "https://cdn.acedata2.cloud/suno/d07ba9228004a8e77d8e1b847067094fa64aef81fa7dcaf19ab97dd600d6045d.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "c25fa87b-d2ad-43a5-8fcc-33c30bfafd87",
      "title": "(Strings)",
      "audio_url": "https://cdn.acedata2.cloud/suno/52e8146f16a787522c9f1bcdc53312768a5a1d109a1107b1875cabd958d0c083.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "d9de2c63-894e-4f6f-af6e-419aff8a9c4a",
      "title": "(Synth)",
      "audio_url": "https://cdn.acedata2.cloud/suno/d691e4e4c43c323f600d0d86e4867497bb15ee5950b8d636ad59f6127a6a3628.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "beaeb6d8-6145-423b-a2ac-5cd89eba88a3",
      "title": "(FX)",
      "audio_url": "https://cdn.acedata2.cloud/suno/624952ce80227d3b9f5b0d4a9b6e662ccf6af9a486a5b3dc8910201916888cd1.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "3f8c3548-7f59-4ca4-a5f8-35d4e9cd41a0",
      "title": "(Brass)",
      "audio_url": "https://cdn.acedata2.cloud/suno/ce61374a0b7377815345e7eeb0d6132be3ed3c1a02a22a4e809a5702bdba9114.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    },
    {
      "id": "2ea4d9e2-1836-4dcc-ab4d-786e019f8b03",
      "title": "(Woodwinds)",
      "audio_url": "https://cdn.acedata2.cloud/suno/cade07b8d2b55bfe76e8789e17951997b6bf4c5f9089a21573598992c712e19b.mp3",
      "created_at": "2026-11-30T18:05:02.631Z",
      "state": "succeeded",
      "duration": 47.6
    }
  ],
  "cost": {
    "amount": 1.44,
    "currency": "credit",
    "list_amount": 1.6
  }
}

生成的结果与上文类似,这就完成了对原先生成的歌曲进行声曲分离的过程。

添加音轨

add_stem 为指定音频生成目标乐器或声音轨,通过 POST /suno/audios 调用。

Suno Studio 官网教程演示了在时间线底部添加轨道,再用 Create 为已有编曲生成一个新乐器轨。 Suno Studio 教程

  • 必填:action、audio_id、stem_type。

stem_type 可填 vocals、backing_vocals、drums、bass、guitar、keyboard、percussion、strings、synth、fx、brass 或 woodwinds。提取指定音轨时也使用这些值。

  • 可选:model、prompt、title、style、negative_tags、weirdness、style_influence、audio_weight、max_mode、variety。
  • 计费:普通模式 0.672 Credits;max_mode 为 true 时 1.344 Credits。
{
  "action": "add_stem",
  "model": "chirp-v6",
  "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
  "stem_type": "strings",
  "prompt": "Quiet cello counter-melody",
  "async": true
}

终态响应:

{
  "success": true,
  "task_id": "af1493f7-18d1-4027-a1a1-79b8443c9349",
  "trace_id": "2c1bc14e-df12-4ed4-b505-39c821b9d878",
  "data": [
    {
      "id": "280c819e-eb70-4e3c-b57e-749597771d30",
      "title": "Cello Counter-Melody",
      "lyric": "Quiet cello counter-melody",
      "audio_url": "https://cdn.acedata2.cloud/suno/280c819e-eb70-4e3c-b57e-749597771d30.mp3",
      "created_at": "2026-11-30T18:05:01.740Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 48
    },
    {
      "id": "6e419425-9892-4fce-b44b-3884db5db7d5",
      "title": "Cello Counter-Melody",
      "lyric": "Quiet cello counter-melody",
      "audio_url": "https://cdn.acedata2.cloud/suno/6e419425-9892-4fce-b44b-3884db5db7d5.mp3",
      "created_at": "2026-11-30T18:05:01.740Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 47.6
    }
  ],
  "cost": {
    "amount": 0.6048,
    "currency": "credit",
    "list_amount": 0.672
  }
}

提取音轨

extract_stem 从指定音频中提取目标音轨,同时返回移除该音轨后的互补版本,通过 POST /suno/audios 调用。

官网在 Extract Stems and MIDI 弹窗中选择 Split from mix,再选择要提取的轨道。图中以主唱为例,右侧显示剩余混音。

Suno 官网 Split from mix 选中 Lead Vocal 并显示其余混音

  • 必填:action、audio_id、stem_type。
  • 可选:audio_format,当前公共双通道契约仅支持 mp3。
  • 计费:1.12 Credits。
{
  "action": "extract_stem",
  "model": "chirp-v6",
  "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
  "stem_type": "vocals",
  "audio_format": "mp3",
  "async": true
}

终态响应中的 data 保留扁平音频列表,stem_sets 表示目标音轨与互补音轨的对应关系:

{
  "success": true,
  "task_id": "fa4e30e0-0aff-4387-8cb1-1cbeaecb3af3",
  "trace_id": "47310496-7818-4e8c-b90d-8b0bcf683351",
  "data": [
    {
      "id": "74744dc1-3d94-4dca-b5bd-7fbb90559c1e",
      "title": "(Vocals)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/74744dc1-3d94-4dca-b5bd-7fbb90559c1e.mp3",
      "created_at": "2026-11-30T18:05:02.527Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 47.6,
      "stem_set": 1
    },
    {
      "id": "dcd7249a-0cac-40f5-a354-c3974447831a",
      "title": "(Instrumental)",
      "audio_url": "https://cdn.acedata2.cloud/suno/dcd7249a-0cac-40f5-a354-c3974447831a.mp3",
      "created_at": "2026-11-30T18:05:02.527Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 47.6,
      "stem_set": 1
    },
    {
      "id": "505d4be6-7412-413a-8651-dd545f3a7cbf",
      "title": "(Vocals)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/505d4be6-7412-413a-8651-dd545f3a7cbf.mp3",
      "created_at": "2026-11-30T18:05:02.527Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 47.6,
      "stem_set": 2
    },
    {
      "id": "96dbed16-4559-45d1-b5a7-356646217ec5",
      "title": "(Instrumental)",
      "audio_url": "https://cdn.acedata2.cloud/suno/96dbed16-4559-45d1-b5a7-356646217ec5.mp3",
      "created_at": "2026-11-30T18:05:02.527Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 47.6,
      "stem_set": 2
    }
  ],
  "stem_sets": [
    {
      "stem_type": "vocals",
      "isolated": {
        "id": "74744dc1-3d94-4dca-b5bd-7fbb90559c1e",
        "title": "(Vocals)",
        "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
        "audio_url": "https://cdn.acedata2.cloud/suno/74744dc1-3d94-4dca-b5bd-7fbb90559c1e.mp3",
        "created_at": "2026-11-30T18:05:02.527Z",
        "model": "chirp-v6",
        "state": "succeeded",
        "duration": 47.6,
        "stem_set": 1
      },
      "remainder": {
        "id": "dcd7249a-0cac-40f5-a354-c3974447831a",
        "title": "(Instrumental)",
        "audio_url": "https://cdn.acedata2.cloud/suno/dcd7249a-0cac-40f5-a354-c3974447831a.mp3",
        "created_at": "2026-11-30T18:05:02.527Z",
        "model": "chirp-v6",
        "state": "succeeded",
        "duration": 47.6,
        "stem_set": 1
      }
    },
    {
      "stem_type": "vocals",
      "isolated": {
        "id": "505d4be6-7412-413a-8651-dd545f3a7cbf",
        "title": "(Vocals)",
        "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
        "audio_url": "https://cdn.acedata2.cloud/suno/505d4be6-7412-413a-8651-dd545f3a7cbf.mp3",
        "created_at": "2026-11-30T18:05:02.527Z",
        "model": "chirp-v6",
        "state": "succeeded",
        "duration": 47.6,
        "stem_set": 2
      },
      "remainder": {
        "id": "96dbed16-4559-45d1-b5a7-356646217ec5",
        "title": "(Instrumental)",
        "audio_url": "https://cdn.acedata2.cloud/suno/96dbed16-4559-45d1-b5a7-356646217ec5.mp3",
        "created_at": "2026-11-30T18:05:02.527Z",
        "model": "chirp-v6",
        "state": "succeeded",
        "duration": 47.6,
        "stem_set": 2
      }
    }
  ],
  "cost": {
    "amount": 1.008,
    "currency": "credit",
    "list_amount": 1.12
  }
}

生成音效

sounds 根据文字描述生成一次性或可循环音效,通过 POST /suno/audios 调用。

对应官网 Create → Sounds,可以选择 One-Shot 或 Loop,再设置节拍和调性。

Suno 官网 Sounds 填写示例提示词并选中 One-Shot

  • 必填:action、sound、sound_type。
  • 可选:model、bpm、key、audio_format;audio_format 当前仅支持 mp3。

bpm 可填 1 到 300 的整数,key 可用 Dm 等标准调性写法。

  • sound_type:one-shot 或 loop。
  • 计费:0.112 Credits。
{
  "action": "sounds",
  "model": "chirp-v6",
  "sound": "One soft bell hit with a very short room tail",
  "sound_type": "one-shot",
  "audio_format": "mp3",
  "async": true
}
{
  "success": true,
  "task_id": "07ecdbad-7aec-42f0-a635-f4b79961b92f",
  "trace_id": "5ddef2e4-479f-475a-89c3-eebe651c4d28",
  "data": [
    {
      "id": "9e6920c3-3f0a-48aa-b37e-64a4ac64abcd",
      "title": "One soft bell hit with a very short room tail",
      "audio_url": "https://cdn.acedata2.cloud/suno/9e6920c3-3f0a-48aa-b37e-64a4ac64abcd.mp3",
      "created_at": "2026-11-30T18:05:02.350Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "one-shot, One soft bell hit with a very short room tail",
      "duration": 2.8
    },
    {
      "id": "ec8db770-6080-4a91-a198-83788cff392f",
      "title": "One soft bell hit with a very short room tail",
      "audio_url": "https://cdn.acedata2.cloud/suno/ec8db770-6080-4a91-a198-83788cff392f.mp3",
      "created_at": "2026-11-30T18:05:02.350Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "one-shot, One soft bell hit with a very short room tail",
      "duration": 2.4
    }
  ],
  "cost": {
    "amount": 0.1008,
    "currency": "credit",
    "list_amount": 0.112
  }
}

调整音频速度

adjust_speed 调整指定音频的播放速度,通过 POST /suno/audios 调用。

对应官网歌曲菜单 Edit → Adjust speed。音频卡片中的倍速控件和 Keep Pitch 开关分别对应 speed_multiplier 与 keep_pitch。

Suno 官网 Adjust speed 设为 1.15 倍并打开 Keep Pitch

  • 必填:action、audio_id、speed_multiplier、title。
  • 可选:keep_pitch。
  • speed_multiplier:范围 0.25–4。
  • 计费:0.28 Credits。
{
  "action": "adjust_speed",
  "model": "chirp-v6",
  "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
  "speed_multiplier": 1.15,
  "keep_pitch": true,
  "title": "Window Lights (faster)",
  "async": true
}

这次将 47.6 秒的原曲设置为 1.15 倍速,返回成品时长约 41.39 秒。

{
  "success": true,
  "task_id": "d0b470bc-3167-41a4-a563-e22efb3abd2b",
  "trace_id": "e0288e22-d7c7-40ed-8dc7-cd85f12e253b",
  "data": [
    {
      "id": "e35ef50f-c386-4d78-8ec4-b8d44252a993",
      "title": "Window Lights (faster)",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/e35ef50f-c386-4d78-8ec4-b8d44252a993.mp3",
      "created_at": "2026-11-30T18:05:01.352Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
      "duration": 41.3913125
    }
  ],
  "cost": {
    "amount": 0.252,
    "currency": "credit",
    "list_amount": 0.28
  }
}

生成模型具有随机性。接口保证参数语义、任务状态和响应结构一致,不保证不同请求生成完全相同的波形。

自定义生成的高级参数

在官网 Advanced 模式中打开 More Options。Weirdness 对应 weirdness,Style Influence 对应 style_influence。

Suno 官网未添加参考音频时 More Options 的默认设置

有参考音频的翻唱表单中还可以看到 Audio Influence,对应 audio_weight。这三个权重字段在 API 中取值为 0 到 1,官网用百分比显示。

Suno 官网 Cover 已加载参考音频时的 Audio Influence 滑块

可以在自定义生成参数中设置这些值。下面的代码演示两项百分比控制和排除风格。

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "generate",
    "model": "chirp-v6",
    "custom": True,
    "title": "Window Lights",
    "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
    "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
    "weirdness": 0.35,
    "style_influence": 0.8,
    "negative_tags": "heavy distortion",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

生成完成后,按基本使用流程读取 data 中的两个候选。以下是这组高级参数的实测终态节选。

{
  "success": true,
  "task_id": "c400fcab-e6b1-4311-91a8-832d096ac797",
  "trace_id": "114383d0-d9be-41c9-95ba-2729e7c08fc3",
  "data": [
    {
      "id": "d90c143f-871e-4f6d-8afe-ef4e525f35b5",
      "title": "Window Lights",
      "audio_url": "https://cdn.acedata2.cloud/suno/d90c143f-871e-4f6d-8afe-ef4e525f35b5.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 55.6
    },
    {
      "id": "9c7c7f9f-cf85-409a-bbf2-e76085347d5c",
      "title": "Window Lights",
      "audio_url": "https://cdn.acedata2.cloud/suno/9c7c7f9f-cf85-409a-bbf2-e76085347d5c.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 62.72
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

没有参考音频或音色时,audio_weight 的影响可能减弱。

控制歌曲时长

在官网 Advanced → More Options → Duration 选择 Custom 后可设定时长。图中的 1:30 对应下方实测请求的 duration: 90。

Suno 官网 Duration 自定义设置为 1 分 30 秒

默认情况下生成的歌曲时长由模型自行决定,通常在 30 秒到 4 分钟之间。如果需要更长或更短的成品,可以通过 duration 参数指定期望时长,单位是秒,取值为 10 到 360 之间的整数。

这里在 custom: true 的歌曲生成请求中演示。模型会把 duration 当作目标时长。同一次请求的两首歌也可能长短不同。需要精确长度时,可以在拿到成品后裁剪。

对应的 Python 代码:

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "generate",
    "model": "chirp-v6",
    "custom": True,
    "duration": 90,
    "title": "Window Lights",
    "style": "Soft acoustic folk, fingerpicked guitar and brushed drums",
    "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\n[Chorus]\nBring the morning home to me\nFold the stars into the sea",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

请求的 duration 为 目标时长。响应 data[].duration 是每首歌曲的 实际时长。本次 V6 请求目标为 90 秒,两个候选的实际时长分别为 89.48 秒和 89.56 秒。

接口会校验 duration 必须是 10 到 360 的整数;它仍然只是生成目标,不是成品长度保证。

实测终态节选。

{
  "success": true,
  "task_id": "1a01d321-6780-4d8e-8612-02a0fad33102",
  "trace_id": "ffddaa23-a3dd-44de-aa4e-58a6e3f1ca2c",
  "data": [
    {
      "id": "8603c0f3-a396-455c-b945-fb48e65bf014",
      "title": "Window Lights",
      "audio_url": "https://cdn.acedata2.cloud/suno/8603c0f3-a396-455c-b945-fb48e65bf014.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 89.48
    },
    {
      "id": "50487a72-bc9c-4511-93d7-e2949dfb00c0",
      "title": "Window Lights",
      "audio_url": "https://cdn.acedata2.cloud/suno/50487a72-bc9c-4511-93d7-e2949dfb00c0.mp3",
      "model": "chirp-v6",
      "state": "succeeded",
      "duration": 89.56
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

Add Instrumental 功能

Add Instrumental 可以给清唱配乐。在官网 Create → Songs → Advanced 通过 + Audio → Upload 导入清唱,在音频卡片右上角选择 Edit instruments。API 使用上传返回的 audio_id。 Suno Upload API

Suno 官网用演示曲定位 Edit instruments 模式与波形

下方实测请求使用上传的清唱音频。

上传后,记录返回的 data.audio_id。

{
  "success": true,
  "task_id": "68d3a7d4-8b16-4339-a16f-df245819cbaf",
  "data": {
    "audio_id": "1f360814-4115-42d9-b196-9d513f4cd6fa"
  }
}

本例的上传结果是 audio_id: 1f360814-4115-42d9-b196-9d513f4cd6fa。还需要填写下面的参数。

  • action:内容为 underpainting。
  • underpainting_start:对上传的歌曲进行添加伴奏的起始时间,默认值是 0。
  • underpainting_end:对上传的歌曲进行添加伴奏的终点时间,必须小于歌曲的总时长。
  • audio_id:上传的清唱无配音的歌曲 ID。
  • style:伴奏的风格,最好是不用歌词 毕竟是配音。

对应的 Python 代码如下。

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "underpainting",
    "model": "chirp-v6",
    "audio_id": "1f360814-4115-42d9-b196-9d513f4cd6fa",
    "style": "Soft acoustic folk, fingerpicked guitar",
    "underpainting_end": 20,
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

点击运行,可以发现会得到一个结果,如下:

{
  "success": true,
  "task_id": "ad95f427-f6bd-4cea-901a-83ce4b35c547",
  "trace_id": "866ab30e-e1bd-4572-adad-3db9cdaf1036",
  "data": [
    {
      "id": "335eb864-7259-408f-930b-7b14f48704e6",
      "title": "Morning on the Porch",
      "audio_url": "https://cdn.acedata2.cloud/suno/335eb864-7259-408f-930b-7b14f48704e6.mp3",
      "created_at": "2026-11-30T18:14:21.553Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar",
      "duration": 20
    },
    {
      "id": "0eda172d-6284-411c-9cfb-7428ed571707",
      "title": "Morning on the Porch",
      "audio_url": "https://cdn.acedata2.cloud/suno/0eda172d-6284-411c-9cfb-7428ed571707.mp3",
      "created_at": "2026-11-30T18:14:21.553Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk, fingerpicked guitar",
      "duration": 19.56
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

这样就完成了对上传的清唱无配音歌曲进行配乐的操作,结果与上文类似。

Add Vocals 功能

Add Vocals 可以为伴奏编写并演唱歌词。在官网 Create → Songs → Advanced 通过 + Audio → Upload 导入伴奏,在音频卡片上选择 Edit vocals,在下方 Lyrics 填写要演唱的歌词。API 使用上传返回的 audio_id。 Suno Upload API

Suno 官网 Edit vocals 模式及已填入示例歌词的 Lyrics 输入区

图中用演示曲定位选中的编辑模式。下方实测请求使用上传的伴奏音频。

上传后,记录返回的 data.audio_id。

{
  "success": true,
  "task_id": "8137181d-bafb-4cc3-aa9c-5db843d8815b",
  "data": {
    "audio_id": "48782d61-b915-447f-a042-f744d46fa7d9"
  }
}

这个示例的伴奏 audio_id 是 48782d61-b915-447f-a042-f744d46fa7d9。再填写下列参数。

  • action:内容为 overpainting。
  • overpainting_start:对上传的歌曲进行添加人声的起始时间,默认值是 0。
  • overpainting_end:对上传的歌曲进行添加人声的终点时间,必须小于歌曲的总时长。
  • audio_id:上传的伴奏 ID。
  • custom:填写歌词时可以显式开启自定义模式。
  • lyric:自定义模式下填写的歌词。
  • style:伴奏的风格。

对应的 Python 代码如下。

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "overpainting",
    "model": "chirp-v6",
    "audio_id": "48782d61-b915-447f-a042-f744d46fa7d9",
    "lyric": "Blue boats glide beyond the bay",
    "style": "Soft acoustic folk",
    "overpainting_end": 20,
    "custom": True,
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

点击运行,可以发现会得到一个结果,如下:

{
  "success": true,
  "task_id": "ba3841ca-651b-4ee7-86ed-f74184c3c66d",
  "trace_id": "ca82996b-d3e9-4295-a04f-f242ddc44616",
  "data": [
    {
      "id": "c8751c2c-802b-4a04-b6c1-442999148876",
      "title": "Morning on the Porch",
      "audio_url": "https://cdn.acedata2.cloud/suno/c8751c2c-802b-4a04-b6c1-442999148876.mp3",
      "created_at": "2026-11-30T18:14:21.639Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk",
      "duration": 21.96
    },
    {
      "id": "554e555d-c31a-4fb4-ab6f-9434f3863bfc",
      "title": "Morning on the Porch",
      "audio_url": "https://cdn.acedata2.cloud/suno/554e555d-c31a-4fb4-ab6f-9434f3863bfc.mp3",
      "created_at": "2026-11-30T18:14:21.639Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "style": "Soft acoustic folk",
      "duration": 19.44
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

添加人声后,从两个结果中选择所需的歌曲。

Remaster 功能

Remaster 可以重制已有歌曲。对应官网的 Edit → Remaster。弹窗里的 Variation 对应 variation_category。API 使用本应用可处理的源歌曲 ID。

Suno 官网 Remaster 弹窗的 Variation 强度选项

  • action:内容为 remaster。
  • audio_id:需要重新生成的歌曲 ID。
  • model:请求中省略该字段。
  • variation_category:重制强度,可填 subtle、normal(默认)或 high。

对应的 Python 代码如下。

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "remaster",
    "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
    "variation_category": "normal",
    "async": True,
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

成功时与其他歌曲操作一样,从 data[].id 和 data[].audio_url 取得重制结果。以下是一次重制测试查询到的失败终态节选。

{
  "success": false,
  "task_id": "add2ba31-609e-48ca-9933-5711a88067fe",
  "trace_id": "47579d6e-185f-462e-83d2-6c827675e58d",
  "error": {
    "code": "timeout",
    "message": "timeout while waiting for audio generation"
  }
}

如果重制超时,使用原 task_id 查询。需要排查时请保留 trace_id 和源歌曲 ID。

Mashup 混曲生成功能

Mashup 可以根据两首或更多参考歌曲生成混曲。在官网成品菜单选择 Remix → Mashup 后,可在音频卡片中选入两首歌曲。

Suno 官网 Mashup 音频卡片已选入两首参考歌曲

  • action:内容为 mashup。
  • mashup_audio_ids:至少两个参考歌曲的 ID。
  • prompt:可选,用来提示混曲的方向。

对应的 Python 代码如下。

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "mashup",
    "model": "chirp-v6",
    "mashup_audio_ids": ["3f8c1800-7a96-4a2b-811f-5fee716a9e32", "ebafbeeb-9bdb-4b28-9c03-6a09734ba6df"],
    "prompt": "Gentle acoustic folk",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

点击运行,可以发现会得到一个结果,如下:

{
  "success": true,
  "task_id": "5e229f57-5912-47fd-b7db-7a7b778de356",
  "trace_id": "0c86539d-5931-46fb-a19f-a57ee5e20cc4",
  "data": [
    {
      "id": "242ce421-8e5d-45c8-83d4-98fb7264a90a",
      "title": "Open Window Cello",
      "lyric": "[Instrumental]",
      "audio_url": "https://cdn.acedata2.cloud/suno/242ce421-8e5d-45c8-83d4-98fb7264a90a.mp3",
      "created_at": "2026-11-30T18:05:02.391Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "Gentle acoustic folk",
      "style": "Acoustic folk with a gentle 6/8 sway and fingerpicked guitar leading the pulse; verse feels sparse and intimate, pre-chorus opens with soft brushed percussion and warm low strings, chorus blooms into layered acoustic strums and a fragile hummed melody. Airy room vocals, light harmony doubles, reverse guitar swells, creaking chair detail, intimate close-mic mix with natural wood warmth., folk, gentle, acoustic",
      "duration": 187.96
    },
    {
      "id": "12fcfa48-fd9c-4b05-92e7-efef411b4804",
      "title": "Open Window Cello",
      "lyric": "[Instrumental]",
      "audio_url": "https://cdn.acedata2.cloud/suno/12fcfa48-fd9c-4b05-92e7-efef411b4804.mp3",
      "created_at": "2026-11-30T18:05:02.391Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "Gentle acoustic folk",
      "style": "Acoustic folk with a gentle 6/8 sway and fingerpicked guitar leading the pulse; verse feels sparse and intimate, pre-chorus opens with soft brushed percussion and warm low strings, chorus blooms into layered acoustic strums and a fragile hummed melody. Airy room vocals, light harmony doubles, reverse guitar swells, creaking chair detail, intimate close-mic mix with natural wood warmth., folk, gentle, acoustic",
      "duration": 198.76
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

这样就完成了对参考歌曲混曲生成的操作,结果与上文类似。

Samples 取样生成歌曲

这里的 samples 是单音频区间取样:从一首已有音频中选择起止时间,将该片段作为采样素材进行创作。它不同于下文使用 1 到 4 段完整参考音频的 Inspo 灵感创作功能。需要填写如下参数:

  • action:内容为 samples。
  • samples_start:取样开始时间(秒),默认为 0,不得小于 0。
  • samples_end:取样结束时间(秒),必填且必须大于开始时间。
  • audio_id:需要取样的参考歌曲的 ID。

对应官网 Remix → Sample this song。波形下方 Selection 的起止时间对应 samples_start 与 samples_end。使用当前歌曲的实际时长确定取样范围。

Suno 官网 Sample 表单中的 1.2 到 7.1 秒演示选区

下面的 API 实测选区为 1 到 7 秒。对应的 Python 代码如下。

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "samples",
    "model": "chirp-v6",
    "audio_id": "3f8c1800-7a96-4a2b-811f-5fee716a9e32",
    "samples_start": 1.0,
    "samples_end": 7.0,
    "prompt": "Sunlit folk and gentle hand percussion",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

点击运行,可以发现会得到一个结果,如下:

{
  "success": true,
  "task_id": "4bb808f2-c6ea-4739-8ea0-e57427e600fe",
  "trace_id": "7969e486-fd68-44e9-a605-2eeb9355caf8",
  "data": [
    {
      "id": "c0858070-d39a-4fd8-8722-61e816cdccc2",
      "title": "Cedar Morning",
      "lyric": "[Instrumental]",
      "audio_url": "https://cdn.acedata2.cloud/suno/c0858070-d39a-4fd8-8722-61e816cdccc2.mp3",
      "created_at": "2026-11-30T18:05:01.689Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "Sunlit folk and gentle hand percussion",
      "style": "Folk with a sunlit 92 BPM sway, brushed acoustic guitar carrying the verse, soft hand percussion and upright bass joining on the lift; chorus opens with harmony guitar strums, airy mandolin filigree, and a warm shaker pulse. Bridge strips to fingerpicked guitar and thumb taps, then final pass blooms with tambourine and subtle group hums. Bright, intimate, wood-grain mix., folk, gentle",
      "duration": 152.8
    },
    {
      "id": "7618fbbe-caf7-4754-bd3f-170022069174",
      "title": "Cedar Morning",
      "lyric": "[Instrumental]",
      "audio_url": "https://cdn.acedata2.cloud/suno/7618fbbe-caf7-4754-bd3f-170022069174.mp3",
      "created_at": "2026-11-30T18:05:01.689Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "Sunlit folk and gentle hand percussion",
      "style": "Folk with a sunlit 92 BPM sway, brushed acoustic guitar carrying the verse, soft hand percussion and upright bass joining on the lift; chorus opens with harmony guitar strums, airy mandolin filigree, and a warm shaker pulse. Bridge strips to fingerpicked guitar and thumb taps, then final pass blooms with tambourine and subtle group hums. Bright, intimate, wood-grain mix., folk, gentle",
      "duration": 168
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

这样就完成了取样生成歌曲的操作,结果与上文类似。

Inspo 灵感创作功能

Inspo 灵感创作功能可以根据 1 到 4 段完整参考音频生成新的音乐,支持拖拽或上传音频作为灵感来源。API 使用现有 inspo action:客户端提供公开可访问的音频 URL,服务会自动完成参考音频准备和创作,无需客户端分别读取歌词、风格或时长再组装请求。它不同于上文的区间取样,也不同于复刻原曲风格的 Cover。使用时需要填写如下参数:

  • action:内容为 inspo。
  • audio_urls:参考音频的 URL 列表,需提供 1 到 4 个公开可访问的音频地址。
  • model:使用的模型,推荐 chirp-v6。
  • prompt:歌词或创作提示词(可选)。
  • instrumental:设为 true 时按纯音乐请求生成,不使用歌词。
  • persona_id:在支持该组合的服务通道上使用指定声音;参考音频会在准备阶段绑定到该声音所需的资源环境。
  • lyric_prompt:当 custom=true 且未提供 lyric 时,用于自动生成歌词。

说明:参考音频需为公开可访问的音频文件。若参考音频与平台曲库中的已知录音完全匹配,Suno 可能会因版权校验而拒绝生成,建议使用自有或由 Suno 生成的音频作为灵感来源。

在官网可以从歌曲菜单 Remix → Use as inspiration 进入音频卡片的 Inspo 模式。还可以把其他音轨拖到卡片下方作为整段参考。

Suno 官网 Inspo 音频卡片上的参考曲目和剩余添加位置

对应的 Python 代码:

import os

import requests

url = "https://api.orchats.repoingest.com/suno/audios"
headers = {
    "accept": "application/json",
    "authorization": f"Bearer {os.environ['API_KEY']}",
    "content-type": "application/json",
}
payload = {
    "action": "inspo",
    "model": "chirp-v6",
    "audio_urls": ["https://cdn.acedata2.cloud/suno/3f8c1800-7a96-4a2b-811f-5fee716a9e32.mp3", "https://cdn.acedata2.cloud/suno/e4218e38-3e6f-4e47-93d8-bb15bedcafbd.mp3"],
    "prompt": "Rework these references as warm acoustic folk with soft vocals",
}

response = requests.post(url, json=payload, headers=headers, timeout=180)
print(response.text)

下面是 V6 灵感创作的实测终态节选。

{
  "success": true,
  "task_id": "a6fd0b9c-811a-4b67-af38-37c7de46849e",
  "trace_id": "f3cc2e70-ca82-45a6-af06-6c14340cdef6",
  "data": [
    {
      "id": "386bfdc1-5606-45fa-8077-6cba30355382",
      "title": "Come Home by the Water",
      "lyric": "[Verse 1]\nWindow lights across the bay\nGuide the boats that drift away\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/386bfdc1-5606-45fa-8077-6cba30355382.mp3",
      "created_at": "2026-11-30T18:06:25.242Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "Rework these references as warm acoustic folk with soft vocals",
      "style": "Warm acoustic folk, intimate fingerpicked steel-string guitar, soft brushed percussion, mellow upright bass, subtle close harmony, gentle female lead vocal, calm unhurried pulse, organic room ambience, restrained dynamics with a fuller final refrain, natural close-miked mix",
      "duration": 264.8
    },
    {
      "id": "0ab926b9-ca32-41a6-83fc-e7fffdf8607c",
      "title": "Fold the Stars into the Sea",
      "lyric": "[Verse]\nWindow lights across the bay\nGuide the boats that drift away\nBring the morning home to me\nFold the stars into the sea",
      "audio_url": "https://cdn.acedata2.cloud/suno/0ab926b9-ca32-41a6-83fc-e7fffdf8607c.mp3",
      "created_at": "2026-11-30T18:06:25.242Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "Rework these references as warm acoustic folk with soft vocals",
      "style": "Warm acoustic folk, intimate soft female lead vocal, fingerpicked steel-string guitar and mellow strummed acoustic guitar, subtle upright bass, restrained brushed percussion, close natural vocal with light room ambience. Begin with sparse guitar and voice, gradually add bass and soft percussion, open into a tender chorus, then settle into a quiet guitar-led outro; organic, warm, uncluttered mix.",
      "duration": 208.4
    }
  ],
  "cost": {
    "amount": 0.504,
    "currency": "credit",
    "list_amount": 0.56
  }
}

这样就完成了灵感创作的操作,返回结果与普通生成歌曲一致。

异步回调

由于 Suno 生成音乐的时间相对较长,大约需要 1-2 分钟,如果 API 长时间无响应,HTTP 请求会一直保持连接,导致额外的系统资源消耗,所以本 API 也提供了异步回调的支持。

整体流程是:客户端发起请求的时候,额外指定一个 callback_url 字段,客户端发起 API 请求之后,API 会立马返回一个结果,包含一个 task_id 的字段信息,代表当前的任务 ID。当任务完成之后,生成音乐的结果会通过 POST JSON 的形式发送到客户端指定的 callback_url,其中也包括了 task_id 字段,这样任务结果就可以通过 ID 关联起来了。

下面我们通过示例来了解下具体怎样操作。

准备一个能接收 POST JSON 的 Webhook 地址,将其传给 callback_url。只设置 callback_url 就会异步提交,也可以同时设置 async: true。

curl -sS -X POST 'https://api.orchats.repoingest.com/suno/audios' \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{
  "action": "generate",
  "model": "chirp-v6",
  "prompt": "A song for Christmas",
  "callback_url": "https://example.com/webhooks/suno"
}'

点击运行,可以发现会立即得到一个结果,如下:

{
  "task_id": "c409f30d-4b2f-4ad9-8ae7-f394e367713d"
}

任务完成后,服务器将终态 JSON 发送到配置的回调地址。以下使用本指南的实测歌曲结果展示终态结构。

{
  "success": true,
  "task_id": "c409f30d-4b2f-4ad9-8ae7-f394e367713d",
  "trace_id": "f9ff7920-2b74-4c69-867b-183cd41166fa",
  "data": [
    {
      "id": "15b56d7a-1ad1-4dc6-bc74-79b102caceeb",
      "title": "Room for One More Chair",
      "lyric": "[Verse 1]\nThe kettle sings, the window steams\nA paper chain hangs slightly crooked\nYou set the old tin on the shelf\nAnd laugh at how the years have kept it",
      "audio_url": "https://cdn.acedata2.cloud/suno/15b56d7a-1ad1-4dc6-bc74-79b102caceeb.mp3",
      "created_at": "2026-12-01T09:02:22.466Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "A song for Christmas",
      "style": "Cinematic Christmas pop with film-score scale, a steady four-on-the-floor pulse, driving syncopated percussion, and a repeating cello ostinato. Begin with intimate piano and close, warm lead vocals; build through layered strings, brass swells, and wordless choir accents into a wide, uplifting final chorus. Polished, spacious mix with clear vocal focus and dynamic section lifts.",
      "duration": 231.96
    },
    {
      "id": "555bf85a-907c-4573-b6f3-e816c04aabb9",
      "title": "Always Room for More",
      "lyric": "[Intro]\n[Wordless vocals]\nOh—ah, oh—ah\n[Verse 1]\nSnow gathers softly on the windowpane",
      "audio_url": "https://cdn.acedata2.cloud/suno/555bf85a-907c-4573-b6f3-e816c04aabb9.mp3",
      "created_at": "2026-12-01T09:02:22.466Z",
      "model": "chirp-v6",
      "state": "succeeded",
      "prompt": "A song for Christmas",
      "style": "Cinematic Christmas pop with marathon-film scale, syncopated rhythmic drive, cello ostinato, four-on-the-floor pulse, and wordless vocal drops. Begin with a restrained cello figure and distant wordless voices; build into a broad, uplifting chorus with layered strings, punchy percussion, and a clear lead vocal. Use a brief countdown-style dropout before the final chorus, then finish with a full, resolved orchestral-pop ending. Polished, spacious mix with strong low-end and crisp rhythmic detail.",
      "duration": 231.2
    }
  ]
}

按 task_id 关联任务,并对重复回调去重。回调中 success 为 false 时,从 error 读取失败原因。只有 async: true 时,可通过 Suno Tasks 免费查询。

当然我们也可以通过流式调用来获取结果,我们只需要将请求头里面的accept的值设置为application/x-ndjson即可,下面用一个示例输入作为示范:

curl -NsS -X POST 'https://api.orchats.repoingest.com/suno/audios' \
  -H "Authorization: Bearer $API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/x-ndjson' \
  -d '{
  "action": "generate",
  "model": "chirp-v6",
  "prompt": "A song for Christmas"
}'

等待过程中我们可以得到以下输出:

{"success":true,"task_id":"c409f30d-4b2f-4ad9-8ae7-f394e367713d","data":[{"id":"15b56d7a-1ad1-4dc6-bc74-79b102caceeb","lyric":"A song for Christmas","created_at":"2026-12-01T09:02:22.466Z","model":"chirp-v6","state":"pending","prompt":"A song for Christmas"},{"id":"555bf85a-907c-4573-b6f3-e816c04aabb9","lyric":"A song for Christmas","created_at":"2026-12-01T09:02:22.466Z","model":"chirp-v6","state":"pending","prompt":"A song for Christmas"}]}
{"success":true,"task_id":"c409f30d-4b2f-4ad9-8ae7-f394e367713d","trace_id":"f9ff7920-2b74-4c69-867b-183cd41166fa","data":[{"id":"15b56d7a-1ad1-4dc6-bc74-79b102caceeb","title":"Room for One More Chair","lyric":"[Verse 1]\nThe kettle sings, the window steams\nA paper chain hangs slightly crooked\nYou set the old tin on the shelf\nAnd laugh at how the years have kept it","audio_url":"https://cdn.acedata2.cloud/suno/15b56d7a-1ad1-4dc6-bc74-79b102caceeb.mp3","created_at":"2026-12-01T09:02:22.466Z","model":"chirp-v6","state":"succeeded","prompt":"A song for Christmas","style":"Cinematic Christmas pop with film-score scale, a steady four-on-the-floor pulse, driving syncopated percussion, and a repeating cello ostinato. Begin with intimate piano and close, warm lead vocals; build through layered strings, brass swells, and wordless choir accents into a wide, uplifting final chorus. Polished, spacious mix with clear vocal focus and dynamic section lifts.","duration":231.96},{"id":"555bf85a-907c-4573-b6f3-e816c04aabb9","title":"Always Room for More","lyric":"[Intro]\n[Wordless vocals]\nOh—ah, oh—ah\n[Verse 1]\nSnow gathers softly on the windowpane","audio_url":"https://cdn.acedata2.cloud/suno/555bf85a-907c-4573-b6f3-e816c04aabb9.mp3","created_at":"2026-12-01T09:02:22.466Z","model":"chirp-v6","state":"succeeded","prompt":"A song for Christmas","style":"Cinematic Christmas pop with marathon-film scale, syncopated rhythmic drive, cello ostinato, four-on-the-floor pulse, and wordless vocal drops. Begin with a restrained cello figure and distant wordless voices; build into a broad, uplifting chorus with layered strings, punchy percussion, and a clear lead vocal. Use a brief countdown-style dropout before the final chorus, then finish with a full, resolved orchestral-pop ending. Polished, spacious mix with strong low-end and crisp rhythmic detail.","duration":231.2}],"cost":{"amount":0.504,"currency":"credit","list_amount":0.56}}

每行是独立的 JSON 对象,使用相同的 task_id。处理中也可能返回 success: true,请结合歌曲状态识别进度。这里展示 V6 实测的首条进度和末条终态。若连接中断,优先使用原任务 ID 查询终态。

错误处理

如果发生错误,您将得到类似如下的错误信息:

{
  "success": false,
  "error": {
    "code": "forbidden",
    "message": "Song Description contained artist name: eminem"
  },
  "trace_id": "9bb7c2f4-3b7b-4965-b50a-f663874b1b6f",
  "task_id": "9bb3a2a6-c438-436d-a9f3-fa466abc077c"
}

下面是 HTTP Status Code, error.code, error.message 的列表:

style 长度限制随模型而异;若返回长度错误,请缩短内容,并以响应中的限制为准。

Status Code error.code error.message
400 bad_request The song id does not exist or has been taken offline.
400 bad_request Prompt too long.
400 bad_request Tags too long.
400 bad_request Uploaded audio matches existing work of art.
400 bad_request instrumental must be a boolean
400 bad_request Title too long.
400 bad_request Topic too long.
400 bad_request style must be less than or equal 120
400 bad_request custom must be a boolean
400 bad_request audio_id is required when extend audio
400 bad_request continue_at is required when extend audio
400 bad_request continue_at must be a number greater than 0
400 bad_request lyric is required when extend audio and instrumental is false
400 bad_request prompt is required when generate audio
400 bad_request lyric is required when generate custom audio
403 forbidden Prompt likely malformed
403 forbidden Prompt likely copyrighted
403 forbidden Prompt contained inappropriate material
403 forbidden Song Description flagged for moderation
403 forbidden Song Description contained artist name
403 forbidden Tags contained artist name
403 forbidden Lyrics contained copyrighted material
403 forbidden Song Description contained producer tag
403 forbidden Prompt flagged for moderation
429 too_many_requests Too many requests. Please try again later.
500 api_error Unable to generate lyrics from song description
500 api_error job failed with unknown error
500 api_error service under maintenance, generation paused
500 api_error the account may have been offline
500 suno_processing_unavailable Music processing is unavailable. Contact support with the trace ID.
500 suno_model_unavailable The selected model is unavailable for this operation. Contact support with the trace ID.
500 suno_processing_failed Music processing returned no audio. Contact support with the trace ID.
504 timeout timeout while waiting for audio generation

对于明确尚未受理的临时限流,平台可能在本次请求的时间预算内等待后进行有限次数重试。若最终仍返回 429(too_many_requests),请稍后再试;失败请求不收费。

使用 async=true 或 callback_url 时,收到 task_id 仅表示任务已创建,不代表生成成功。请通过回调或 Suno Tasks API 确认原任务的最终结果;在终态明确前不要重复提交,以免创建重复任务。