{
"name": "Fal.ai Veo 3.1 image to video subworkflow",
"nodes": [
{
"parameters": {
"workflowInputs": {
"values": [
{
"name": "prompt"
},
{
"name": "image_base64"
},
{
"name": "aspect_ratio"
},
{
"name": "resolution"
},
{
"name": "generate_audio",
"type": "boolean"
}
]
}
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
-800,
16
],
"id": "bcf8db0e-9859-4e02-9367-7dc61b62eea2",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"method": "POST",
"url": "https://queue.fal.run/fal-ai/veo3.1/fast/image-to-video",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{\n JSON.stringify({\n prompt: $json.prompt,\n image_url: $json.image_base64,\n aspect_ratio: $json.aspect_ratio || '16:9',\n generate_audio: $json.generate_audio || false,\n resolution: $json.resolution || '1080p'\n }, null, 2)\n}}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-608,
16
],
"id": "1f4210c5-7665-413f-a8dd-59d639a64a87",
"name": "⚠️ Generate video",
"credentials": {
"httpHeaderAuth": {
"id": "BUYuOe8V0hqLtA02",
"name": "fal.ai"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
-384,
16
],
"id": "019a70f1-41ba-4df9-a7ff-b93d59ec7a49",
"name": "Wait for video",
"webhookId": "820d3040-1059-489d-983c-1c2ce58c3a58"
},
{
"parameters": {
"url": "={{ $('⚠️ Generate video').item.json.status_url }}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-192,
16
],
"id": "6de63b0f-1746-4dd0-bc14-5255e9278e51",
"name": "⚠️ Get status of the video",
"credentials": {
"httpHeaderAuth": {
"id": "BUYuOe8V0hqLtA02",
"name": "fal.ai"
}
}
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $json.status }}",
"rightValue": "COMPLETED",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "6fc5bea4-1567-474b-bfca-5394eb303217"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "COMPLETED"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "0882f634-2472-4d24-a1c3-a39f0cd94855",
"leftValue": "={{ $json.status }}",
"rightValue": "IN_PROGRESS",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "IN_PROGRESS"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "e6c8b207-13ac-4537-8c5c-677039bc2fef",
"leftValue": "={{ $json.status }}",
"rightValue": "IN_QUEUE",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "IN_QUEUE"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
0,
0
],
"id": "f7003e1e-267d-437a-bcc7-8eda0d5f10f5",
"name": "Video status"
},
{
"parameters": {
"url": "={{ $('⚠️ Generate video').item.json.response_url }}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
208,
16
],
"id": "a634bfa1-8eb8-4eba-8cd1-c252ff61fc26",
"name": "Get the video",
"alwaysOutputData": false,
"retryOnFail": true,
"credentials": {
"httpHeaderAuth": {
"id": "BUYuOe8V0hqLtA02",
"name": "fal.ai"
}
}
},
{
"parameters": {
"url": "={{ $json.video.url }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
384,
16
],
"id": "435f2b9e-0bc9-448e-815d-c0583b1174fe",
"name": "Download the video"
}
],
"pinData": {},
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "⚠️ Generate video",
"type": "main",
"index": 0
}
]
]
},
"⚠️ Generate video": {
"main": [
[
{
"node": "Wait for video",
"type": "main",
"index": 0
}
]
]
},
"Wait for video": {
"main": [
[
{
"node": "⚠️ Get status of the video",
"type": "main",
"index": 0
}
]
]
},
"⚠️ Get status of the video": {
"main": [
[
{
"node": "Video status",
"type": "main",
"index": 0
}
]
]
},
"Video status": {
"main": [
[
{
"node": "Get the video",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait for video",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait for video",
"type": "main",
"index": 0
}
]
]
},
"Get the video": {
"main": [
[
{
"node": "Download the video",
"type": "main",
"index": 0
}
]
]
},
"Download the video": {
"main": [
[]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "262fcf75-2bc0-44bf-9c21-6b5dd32cf699",
"meta": {
"instanceId": "636db6b6ab21a21c6458e2137f340e33dc3e49f5a1c560c8d1e2372c227cf40e"
},
"id": "csjah07VqeSWIUn0",
"tags": []
}