1
Shared 2/4/2026
7 views
Visual Workflow
JSON Code
{
"id": "O40XQxkBF4EYgeS0",
"meta": {
"instanceId": "8e5aa95c0552a76b6f87328dfd800de4d3cc8f008434bf9076c4dfb3cb935d83"
},
"name": "Kie.ai VEO3.1 fast image to video subworkflow",
"tags": [],
"nodes": [
{
"id": "afab59b3-7a55-43c9-b563-9d371444482f",
"name": "When Executed by Another Workflow",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-1120,
32
],
"parameters": {
"workflowInputs": {
"values": [
{
"name": "video_prompt"
},
{
"name": "aspect_ratio"
},
{
"name": "imageUrls",
"type": "array"
},
{
"name": "generationType"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "bdde0b90-0968-4850-8f20-4c247a7d0213",
"name": "Wait2",
"type": "n8n-nodes-base.wait",
"position": [
-64,
176
],
"webhookId": "27d6af3b-2323-4a22-b5e2-4756473827a8",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "3f417a71-945e-4525-b2bf-c89be280ae90",
"name": "Edit Fields14",
"type": "n8n-nodes-base.set",
"position": [
112,
176
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "81d332c2-2e17-43d9-bf85-a7fba1d8598b",
"name": "data.taskId",
"type": "string",
"value": "={{ $json.data.taskId }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "6e6091a9-1518-430a-813a-44e2d837719f",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"position": [
-416,
0
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Completed",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "7e51e0bd-c19b-4e57-bd46-885e531aff52",
"operator": {
"type": "number",
"operation": "equals"
},
"leftValue": "={{ $json.data.successFlag }}",
"rightValue": 1
}
]
},
"renameOutput": true
},
{
"outputKey": "Failed",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "d3a0615b-8384-4ec3-b18b-daae9e6a350b",
"operator": {
"type": "number",
"operation": "equals"
},
"leftValue": "={{ $json.data.successFlag }}",
"rightValue": 3
}
]
},
"renameOutput": true
},
{
"outputKey": "Failed",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "2495be20-ec23-4de3-a53f-baa79d75862e",
"operator": {
"type": "number",
"operation": "equals"
},
"leftValue": "={{ $json.data.successFlag }}",
"rightValue": 2
}
]
},
"renameOutput": true
},
{
"outputKey": "Retry",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "4c1dba3d-a788-4205-bb9e-51b0aa892c61",
"operator": {
"type": "number",
"operation": "equals"
},
"leftValue": "={{ $json.data.successFlag }}",
"rightValue": 0
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "a1412841-eeb7-43d6-971e-68840cc56933",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"position": [
-208,
-96
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "921e029e-6808-401a-8f1f-df59fcc8a78f",
"name": "resultUrls",
"type": "string",
"value": "={{ $json.data.response.resultUrls.find(item => true) }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "9f3a854e-7dd4-407b-8cd9-168a1985e4df",
"name": "Submit generation request",
"type": "n8n-nodes-base.httpRequest",
"position": [
-896,
32
],
"parameters": {
"url": "https://api.kie.ai/api/v1/veo/generate",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "=prompt",
"value": "={{ $json.video_prompt }}"
},
{
"name": "=model",
"value": "=veo3_fast"
},
{
"name": "=aspectRatio",
"value": "={{ $json.aspect_ratio }}"
},
{
"name": "=imageUrls",
"value": "={{ $json.imageUrls }}"
},
{
"name": "generationType",
"value": "={{ $json.generationType }}"
},
{
"name": "enableFallback",
"value": "={{ true }}"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "ghhDmIje8kw9sST9",
"name": "Kie.ai"
}
},
"typeVersion": 4.2
},
{
"id": "1b101998-aa8d-4da1-8bf5-f0edf53840d0",
"name": "Get request status",
"type": "n8n-nodes-base.httpRequest",
"position": [
-640,
32
],
"parameters": {
"url": "=https://api.kie.ai/api/v1/veo/record-info",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "taskId",
"value": "={{ $json.data.taskId }}"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "ghhDmIje8kw9sST9",
"name": "Kie.ai"
}
},
"typeVersion": 4.2
},
{
"id": "2ca83e17-2368-4b5e-934f-af6155589bd2",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1744,
-16
],
"parameters": {
"width": 480,
"height": 288,
"content": "### Generation Types\t\n\n• TEXT_2_VIDEO — Text-to-video: using text prompts only\n• FIRST_AND_LAST_FRAMES_2_VIDEO — First and last frames to video: generate transition videos using two images\n• REFERENCE_2_VIDEO — Material-to-video: based on material images (only supports Fast model and 16:9 aspect ratio)\n\n### Aspect Ratio\n16:9 for landscape\n9:16 for portrait"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {
"Submit generation request": [
{
"json": {
"msg": "success",
"code": 200,
"data": {
"taskId": "49334927a3aeae13762f58fc5be5bc90"
}
}
}
],
"When Executed by Another Workflow": [
{
"json": {
"imageUrls": [
"http://res.cloudinary.com/dkbpv8ynm/image/upload/v1761327955/momlavcb9txdihsudkr9.png",
"http://res.cloudinary.com/dkbpv8ynm/image/upload/v1761327952/rcl0hioca0r4zndckg3s.png",
"http://res.cloudinary.com/dkbpv8ynm/image/upload/v1761327951/mcevireamzkxsxk67gwv.png"
],
"aspect_ratio": "16:9",
"video_prompt": "In bright, diffuse daylight at Prestige Motors, Elena stands next to the front of the vibrant red Genesis GV70, featuring its bold crest grille, quad LED lamps, and dark sport wheels. She’s friendly, exuding confidence, and says: 'Add advanced Genesis safety and luxury to your daily drive—come take the GV70 for a spin today!'",
"generationType": "REFERENCE_2_VIDEO"
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "3583a523-2eff-45d9-8690-393c4950b822",
"connections": {
"Wait2": {
"main": [
[
{
"node": "Edit Fields14",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
],
[],
[],
[
{
"node": "Wait2",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields14": {
"main": [
[
{
"node": "Get request status",
"type": "main",
"index": 0
}
]
]
},
"Get request status": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
]
]
},
"Submit generation request": {
"main": [
[
{
"node": "Get request status",
"type": "main",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Submit generation request",
"type": "main",
"index": 0
}
]
]
}
}
}