{
  "name": "Generate text, image, and video-to-video clips with WAN 2.6 via KIE.AI",
  "nodes": [
    {
      "id": "30e55c89-981a-4e19-8745-8c72110bc735",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        928
      ],
      "parameters": {
        "width": 528,
        "height": 640,
        "content": "## Muhammad Farooq Iqbal - Automation Expert & n8n Creator\n\nI am a passionate automation expert and recognized n8n Creator specializing in intelligent workflow automation. With extensive experience in"
      }
    },
    {
      "id": "f95aa621-36a8-47e0-8f47-9712cb6f3487",
      "name": "Submit Video Generation Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1616,
        560
      ]
    },
    {
      "id": "146f02fd-0f20-468c-aac9-a1e34c4bd87b",
      "name": "Switch Video Generation Status",
      "type": "n8n-nodes-base.switch",
      "position": [
        2240,
        512
      ]
    },
    {
      "id": "5ef6cbca-c4b5-4a9a-a2c2-8ebd477d2d2e",
      "name": "Check Video Generation Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2016,
        560
      ]
    },
    {
      "id": "f67aafe5-661d-4a90-9022-9b30421bac08",
      "name": "Wait for Video Generation",
      "type": "n8n-nodes-base.wait",
      "position": [
        1856,
        560
      ]
    },
    {
      "id": "45fd425c-2900-438a-a0c9-9a79fb7f5534",
      "name": "Extract Video URL",
      "type": "n8n-nodes-base.code",
      "position": [
        2448,
        528
      ]
    },
    {
      "id": "8055f1ce-2ced-42a4-9a6e-501f1c4ec833",
      "name": "Download Video File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2624,
        528
      ]
    },
    {
      "id": "9e38d0df-8af9-46d5-b004-ee2f0167dee8",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1184,
        560
      ]
    },
    {
      "id": "1e767905-f274-446e-ba97-586abda74e20",
      "name": "Set Video Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        1392,
        560
      ]
    },
    {
      "id": "3f7653d5-7dfa-4b18-9870-0cc900124c34",
      "name": "Text-to-Video Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        368
      ],
      "parameters": {
        "width": 1728,
        "height": 512,
        "content": "**Text-to-Video Workflow**\n\nGenerates videos from text prompts using WAN 2.6. Set your parameters, submit the request, and the workflow polls for completion before downloading."
      }
    },
    {
      "id": "6c50889b-086e-487a-9f1d-0c4a311cda20",
      "name": "Video-to-Video Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        1488
      ],
      "parameters": {
        "width": 1728,
        "height": 512,
        "content": "**Video-to-Video Workflow**\n\nTransforms existing videos using WAN 2.6. Provide a video URL and prompt, then the workflow handles generation and download."
      }
    },
    {
      "id": "94bfa5af-5a85-421f-a59b-0bbc9097f108",
      "name": "Set Video URL and Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        1440,
        1696
      ]
    },
    {
      "id": "b76f18f8-5d7f-452d-891f-c52409d000b7",
      "name": "Submit Video Generation",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1632,
        1696
      ]
    },
    {
      "id": "b62633c3-c33d-4098-9e1d-d2b002c1999e",
      "name": "Wait for Video-to-Video Generation",
      "type": "n8n-nodes-base.wait",
      "position": [
        1872,
        1696
      ]
    },
    {
      "id": "ebe97690-3ce2-41d9-8cc6-b1d6c91b99a3",
      "name": "Check Video Generation",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2032,
        1696
      ]
    },
    {
      "id": "20e3f708-ca7a-4b18-a9bb-95c014fd5aa8",
      "name": "Switch Video Generation",
      "type": "n8n-nodes-base.switch",
      "position": [
        2256,
        1648
      ]
    },
    {
      "id": "1b8cc478-1277-49f9-bbc9-555bb267a5c9",
      "name": "Video URL",
      "type": "n8n-nodes-base.code",
      "position": [
        2496,
        1664
      ]
    },
    {
      "id": "0f4dd138-eed4-4b10-973a-697205ebcb49",
      "name": "Download Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2672,
        1664
      ]
    },
    {
      "id": "be0b1bdd-7284-4f04-9ac2-9c9a5382d698",
      "name": "Image-to-Video Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        928
      ],
      "parameters": {
        "width": 1728,
        "height": 512,
        "content": "**Image-to-Video Workflow**\n\nAnimates existing images into videos using WAN 2.6. Provide an image URL and prompt, then the workflow handles generation and download."
      }
    },
    {
      "id": "e2782d2f-248c-4581-b625-e656a57b354e",
      "name": "Set Prompt & Image Url",
      "type": "n8n-nodes-base.set",
      "position": [
        1424,
        1104
      ]
    },
    {
      "id": "c45072ae-5772-4713-a1dc-8e5c3922eb23",
      "name": "Submit Video Generation a",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1648,
        1104
      ]
    },
    {
      "id": "c2a697bd-e2ee-475c-81e0-6b5fd34edefd",
      "name": "Wait for Image-to-Video Generation",
      "type": "n8n-nodes-base.wait",
      "position": [
        1872,
        1104
      ]
    },
    {
      "id": "7480e077-79a2-47ae-b459-1aac077ba263",
      "name": "Switch Image-to-Video Status",
      "type": "n8n-nodes-base.switch",
      "position": [
        2256,
        1056
      ]
    },
    {
      "id": "3033778e-0ddc-4b89-bd13-cadb82dac9c3",
      "name": "Check Video Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2032,
        1104
      ]
    },
    {
      "id": "5fb15592-8ad7-4874-8e32-69dc21b499d3",
      "name": "Video URL1",
      "type": "n8n-nodes-base.code",
      "position": [
        2480,
        1072
      ]
    },
    {
      "id": "5c5c99d9-65a7-4522-8f41-2350d11d82dd",
      "name": "Download Video1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2640,
        1072
      ]
    },
    {
      "id": "5448d710-b8c4-4cd5-a730-1f3bd9797754",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        368
      ],
      "parameters": {
        "width": 640,
        "height": 512,
        "content": "## How it works\n\nThis workflow generates videos using WAN 2.6 AI through the KIE.AI API. You can create videos three ways: text-to-video (from descriptions), image-to-video (animate images), or video-"
      }
    }
  ],
  "connections": {
    "Video URL": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video URL1": {
      "main": [
        [
          {
            "node": "Download Video1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Video URL": {
      "main": [
        [
          {
            "node": "Download Video File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Video Status": {
      "main": [
        [
          {
            "node": "Switch Image-to-Video Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Video Parameters": {
      "main": [
        [
          {
            "node": "Submit Video Generation Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Video Generation": {
      "main": [
        [
          {
            "node": "Switch Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Prompt & Image Url": {
      "main": [
        [
          {
            "node": "Submit Video Generation a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Submit Video Generation": {
      "main": [
        [
          {
            "node": "Wait for Video-to-Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch Video Generation": {
      "main": [
        [
          {
            "node": "Submit Video Generation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Video URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Video-to-Video Generation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Video-to-Video Generation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Video-to-Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Video URL and Prompt": {
      "main": [
        [
          {
            "node": "Submit Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Submit Video Generation a": {
      "main": [
        [
          {
            "node": "Wait for Image-to-Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Video Generation": {
      "main": [
        [
          {
            "node": "Check Video Generation Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch Image-to-Video Status": {
      "main": [
        [
          {
            "node": "Submit Video Generation a",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Video URL1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Image-to-Video Generation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Image-to-Video Generation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Image-to-Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Video Generation Status": {
      "main": [
        [
          {
            "node": "Switch Video Generation Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch Video Generation Status": {
      "main": [
        [
          {
            "node": "Submit Video Generation Request",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract Video URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Video Generation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Video Generation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Submit Video Generation Request": {
      "main": [
        [
          {
            "node": "Wait for Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Image-to-Video Generation": {
      "main": [
        [
          {
            "node": "Check Video Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Video-to-Video Generation": {
      "main": [
        [
          {
            "node": "Check Video Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set Video Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}