suno
中级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 10 个节点。主要使用 If, Set, Wait, FormTrigger, HttpRequest 等节点。 使用KIE.ai API和表单界面通过Suno V3.5生成AI音乐
前置要求
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "Xy6Z4ILzWvspQx9A",
"meta": {
"instanceId": "96dc772dec50f4b3e9db480fd23a2dd3197bc6a1ccc3bc733e2d5ea6d97363ea"
},
"name": "suno",
"tags": [],
"nodes": [
{
"id": "c023c89f-d3ec-4903-b655-417229115049",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-640,
-1020
],
"parameters": {
"color": 3,
"width": 780,
"height": 780,
"content": "## 概述"
},
"typeVersion": 1
},
{
"id": "90dbb64f-cf81-4336-ab05-791d95a00bf9",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
-1060
],
"parameters": {
"width": 640,
"height": 120,
"content": "## 步骤 1 - 获取 API 密钥 (YOURAPIKEY)"
},
"typeVersion": 1
},
{
"id": "3a1b8f97-5961-454b-bc07-e89592bdcd72",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
-920
],
"parameters": {
"width": 640,
"height": 180,
"content": "## 步骤 2 - 使用流程"
},
"typeVersion": 1
},
{
"id": "28acd80e-afe7-4b5e-9c6e-961ede22a0c5",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
-720
],
"parameters": {
"width": 640,
"height": 500,
"content": "## 步骤 3 - AI 音乐生成器 - 参数使用指南"
},
"typeVersion": 1
},
{
"id": "fabb015f-e732-46a0-b86e-696f3a9f6b70",
"name": "提交音乐生成参数",
"type": "n8n-nodes-base.formTrigger",
"position": [
-320,
-140
],
"webhookId": "791b190b-2acc-4d10-b593-c1929e67686c",
"parameters": {
"options": {},
"formTitle": "AI music generator",
"formFields": {
"values": [
{
"fieldLabel": "prompt"
},
{
"fieldLabel": "style"
},
{
"fieldLabel": "title"
},
{
"fieldLabel": "api_key"
}
]
},
"formDescription": "Please fill in the following information to generate your music"
},
"typeVersion": 2.2
},
{
"id": "a9fbbb31-9479-4594-85bb-f0e5b2f57c82",
"name": "向 KIE.ai API 发送音乐生成请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
-100,
-140
],
"parameters": {
"url": "https://api.kie.ai/api/v1/generate",
"method": "POST",
"options": {},
"jsonBody": "{\n \"prompt\": \"{{$json.prompt}}\",\n \"style\": \"{{$json.style}}\",\n \"title\": \"{{$json.title}}\",\n \"customMode\": true,\n \"instrumental\": false,\n \"model\": \"V3_5\",\n \"callBackUrl\": \"https://api.example.com/callback\",\n \"negativeTags\": \"\"\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "=Bearer {{$json.api_key}}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "b6d1e752-d1ad-42fc-a1c5-ead97f4b39e9",
"name": "等待音乐处理",
"type": "n8n-nodes-base.wait",
"position": [
140,
-140
],
"webhookId": "efca324d-e98a-469c-90f6-41082f44fb75",
"parameters": {
"amount": 10
},
"typeVersion": 1.1
},
{
"id": "48da77f5-6c09-46e6-a465-6a67040cbeb0",
"name": "轮询音乐生成状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
500,
-140
],
"parameters": {
"url": "https://api.kie.ai/api/v1/generate/record-info",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "taskId",
"value": "={{$json.data.taskId}}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "=Bearer {{$node[\"Submit Music Generation Parameters\"].json[\"api_key\"]}}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "dbfa987d-7342-432a-97a5-078b7dc9d6d2",
"name": "检查音乐生成是否完成",
"type": "n8n-nodes-base.if",
"position": [
320,
80
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "loose"
},
"combinator": "and",
"conditions": [
{
"id": "faf4bf4c-8a8e-49a3-b62a-14a4af0b7dfb",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "true",
"rightValue": "={{$json.data.status == \"SUCCESS\"}}"
}
]
},
"looseTypeValidation": true
},
"typeVersion": 2.2
},
{
"id": "239877dd-a026-45b2-a09a-de430c0bb982",
"name": "格式化并显示音乐结果",
"type": "n8n-nodes-base.set",
"position": [
600,
60
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "73bdb28d-6b86-47d5-98d2-4647600a11bd",
"name": "audioUrl1",
"type": "string",
"value": "={{$json.data.response.sunoData[0].audioUrl}}"
},
{
"id": "3f468fe2-189d-40a1-805d-9090b93bfe6e",
"name": "audioUrl2",
"type": "string",
"value": "={{ $json.data.response.sunoData[1].audioUrl }}"
}
]
}
},
"typeVersion": 3.4
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a65abf3d-dfef-4b6d-ada0-399c9631d13d",
"connections": {
"Wait for Music Processing": {
"main": [
[
{
"node": "Poll Music Generation Status",
"type": "main",
"index": 0
}
]
]
},
"Poll Music Generation Status": {
"main": [
[
{
"node": "Check if Music Generation Complete",
"type": "main",
"index": 0
}
]
]
},
"Check if Music Generation Complete": {
"main": [
[
{
"node": "Format and Display Music Results",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait for Music Processing",
"type": "main",
"index": 0
}
]
]
},
"Submit Music Generation Parameters": {
"main": [
[
{
"node": "Send Music Generation Request to KIE.ai API",
"type": "main",
"index": 0
}
]
]
},
"Send Music Generation Request to KIE.ai API": {
"main": [
[
{
"node": "Wait for Music Processing",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Veo
使用KIE.AI Veo3从文本提示生成AI视频
If
Set
Wait
+3
10 节点yichao zeng
内容创作
mj
使用KIE.AI Midjourney API生成AI图像和视频
If
Set
Wait
+3
10 节点damo
杂项
香蕉
使用KIE.AI Nano Banana API生成角色一致的AI图像
If
Set
Wait
+3
10 节点damo
杂项
Recap AI - Veo 3.1 电商产品动画生成器
基于Veo 3.1的电商产品目录AI视频生成器
If
Set
Wait
+10
18 节点Lucas Walter
内容创作
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+27
125 节点Daniel Ng
内容创作
自动化本地线索查找与冷邮件发送
使用 Apify、AI 和 Gmail 自动查找本地线索并发送冷邮件
If
Set
Wait
+10
18 节点Meak
内容创作