suno
Ceci est unContent Creation, Multimodal AIworkflow d'automatisation du domainecontenant 10 nœuds.Utilise principalement des nœuds comme If, Set, Wait, FormTrigger, HttpRequest. Générer de la musique IA avec Suno V3.5 via l'API KIE.ai et une interface de formulaire
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
Nœuds utilisés (10)
Catégorie
{
"id": "Xy6Z4ILzWvspQx9A",
"meta": {
"instanceId": "96dc772dec50f4b3e9db480fd23a2dd3197bc6a1ccc3bc733e2d5ea6d97363ea"
},
"name": "suno",
"tags": [],
"nodes": [
{
"id": "c023c89f-d3ec-4903-b655-417229115049",
"name": "Note adhésive3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-640,
-1020
],
"parameters": {
"color": 3,
"width": 780,
"height": 780,
"content": "## Overview\nThis workflow allows users to generate AI music using the KIE. ai API integrated with the Suno V3.5 model. It provides a simple form interface for inputting parameters like music prompts, styles, and titles. The system automatically submits the request to the API, monitors the generation status in real time until completion, and retrieves the final music output. This is perfect for musicians, content creators, or developers looking to automate custom music creation with support for various modes and intelligent generation.\n\n## Prerequisites\n- A KIE. ai account and API key: Create an account at [KIE.ai](https://kie.ai) and obtain your API key.\n- An active n8n instance (self-hosted or cloud-based) with support for HTTP requests and form submissions.\n- Familiarity with AI music prompts to optimize results, such as describing mood, instruments, and rhythm.\n\n## Setup Instructions\n1. **Get API Key**: Sign up at KIE. ai and generate your API key. Keep it secure and input it in the form—do not disclose it to others.\n2. **Import Workflow**: Copy the JSON from this template and import it into your n8n editor.\n3. **Configure the Form**: In the form node, set fields for:\n - `prompt`: Describe the music content (e.g., \"A calm and relaxing piano track with soft melodies\").\n - `style`: Specify the genre (e.g., \"Classical\", \"Jazz\", \"Pop\").\n - `title`: Provide a title for the generated music (max 80 characters).\n - `api_key`: Your KIE. ai key.\n4. **Test the Workflow**:\n - Click \"Execute Workflow\" in n8n to activate the form.\n - Access the form URL, fill in the parameters, and submit.\n - The workflow will send a POST request to the API, wait and poll every 10 seconds for status updates, and display the music file once ready.\n5. **View Results**: The output node formats the results, showing playable music files.\n\n## Customization Guidance\n- **Refine Prompts**: For better results, include detailed descriptions like emotions, rhythm, instruments, or lyrics. Example: `\"A peaceful piano meditation track with gentle waves in the background.\" `\n\n\n"
},
"typeVersion": 1
},
{
"id": "90dbb64f-cf81-4336-ab05-791d95a00bf9",
"name": "Note adhésive6",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
-1060
],
"parameters": {
"width": 640,
"height": 120,
"content": "## STEP 1 - GET API KEY (YOURAPIKEY)\n- Create an account [here](https://kie.ai/) and obtain API KEY.\n- It will be used in on form submission.\n- Important: Please keep your key safe and do not disclose it to others."
},
"typeVersion": 1
},
{
"id": "3a1b8f97-5961-454b-bc07-e89592bdcd72",
"name": "Note adhésive",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
-920
],
"parameters": {
"width": 640,
"height": 180,
"content": "## STEP 2 - Usage process\n1. **Start Workflow**: Click the \"Execute workflow\" button to begin the task.\n2. **Fill Form**: Complete all required fields in the popup form.\n3. **Submit**: Click the \"Submit\" button to send your request.\n4. **Close Window**: You can close the form window after successful submission.\n5. **Wait for Generation**: The system automatically checks status every 10 seconds.\n6. **Get Results**: Music files will be displayed automatically when generation is complete."
},
"typeVersion": 1
},
{
"id": "28acd80e-afe7-4b5e-9c6e-961ede22a0c5",
"name": "Note adhésive1",
"type": "n8n-nodes-base.stickyNote",
"position": [
280,
-720
],
"parameters": {
"width": 640,
"height": 500,
"content": "## STEP 3 - AI Music Generator - Parameter Usage Guide\n1. **Prompt** (Music Description)\n - Purpose: Describe the music content you want to generate.\n - Example: \"A calm and relaxing piano track with soft melodies\".\n - Character Limit: Maximum 3000 characters.\n - Tips:\n More detailed descriptions lead to better results.\n Include emotions, rhythm, instruments, etc.\n In current mode, this description will be used as lyrics content.\n2. **Style** (Music Style)\n - Purpose: Specify the music genre or style.\n - Example: \"Classical\", \"Jazz\", \"Pop\", \"Electronic\", \"Rock\".\n - Character Limit: Maximum 200 characters.\n - Common Styles: Classical,Jazz,Pop,Electronic,Rock,Hip-hop.\n3. **Title** (Music Title)\n - Purpose: Set a title for the generated music.\n - Example: \"Peaceful Piano Meditation\".\n - Character Limit: Maximum 80 characters.\n - Usage: Title will be displayed in player interfaces and filenames.\n4. **Api_key** (API Key)\n - This is what you get in the first step."
},
"typeVersion": 1
},
{
"id": "fabb015f-e732-46a0-b86e-696f3a9f6b70",
"name": "Soumettre les paramètres de génération musicale",
"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": "Envoyer la requête de génération musicale à 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": "Attendre le traitement de la musique",
"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": "Vérifier l'état de génération musicale",
"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": "Vérifier si la génération musicale est terminée",
"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": "Formater et afficher les résultats musicaux",
"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": {
"b6d1e752-d1ad-42fc-a1c5-ead97f4b39e9": {
"main": [
[
{
"node": "48da77f5-6c09-46e6-a465-6a67040cbeb0",
"type": "main",
"index": 0
}
]
]
},
"48da77f5-6c09-46e6-a465-6a67040cbeb0": {
"main": [
[
{
"node": "dbfa987d-7342-432a-97a5-078b7dc9d6d2",
"type": "main",
"index": 0
}
]
]
},
"dbfa987d-7342-432a-97a5-078b7dc9d6d2": {
"main": [
[
{
"node": "239877dd-a026-45b2-a09a-de430c0bb982",
"type": "main",
"index": 0
}
],
[
{
"node": "b6d1e752-d1ad-42fc-a1c5-ead97f4b39e9",
"type": "main",
"index": 0
}
]
]
},
"fabb015f-e732-46a0-b86e-696f3a9f6b70": {
"main": [
[
{
"node": "a9fbbb31-9479-4594-85bb-f0e5b2f57c82",
"type": "main",
"index": 0
}
]
]
},
"a9fbbb31-9479-4594-85bb-f0e5b2f57c82": {
"main": [
[
{
"node": "b6d1e752-d1ad-42fc-a1c5-ead97f4b39e9",
"type": "main",
"index": 0
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - Création de contenu, IA Multimodale
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
yichao zeng
@zengyichaoPartager ce workflow