{
  "name": "Generate videos from images with Wan 2.2 I2V A14B AI model",
  "nodes": [
    {
      "id": "62169d10-c3c2-49b8-9050-d793e2c48958",
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        64,
        144
      ]
    },
    {
      "id": "b42446f1-00b5-4abb-9639-0e97af8ce83e",
      "name": "Set API Key",
      "type": "n8n-nodes-base.set",
      "position": [
        288,
        144
      ]
    },
    {
      "id": "7b5d2158-7631-47aa-975c-a6c8ea5b8543",
      "name": "Create Prediction",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        144
      ]
    },
    {
      "id": "9c376789-4f39-4ee8-bc78-49c42a5aa5f5",
      "name": "Extract Prediction ID",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        144
      ]
    },
    {
      "id": "71fb8671-0d70-47e3-a45f-8cb62bb80ccf",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        944,
        144
      ]
    },
    {
      "id": "8b1ed7ea-db50-4c92-8019-aa43d17e3262",
      "name": "Check Prediction Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1168,
        144
      ]
    },
    {
      "id": "86833c6c-0a12-4f48-9f57-298b653c67ba",
      "name": "Check If Complete",
      "type": "n8n-nodes-base.if",
      "position": [
        1392,
        144
      ]
    },
    {
      "id": "72d21cdf-e106-4f85-9409-3389f9a9cd67",
      "name": "Process Result",
      "type": "n8n-nodes-base.code",
      "position": [
        1664,
        48
      ]
    },
    {
      "id": "0163e0e0-c791-4b69-9a38-83f918376276",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -352
      ],
      "parameters": {
        "width": 438,
        "height": 703,
        "content": "## 🟢 Section 1: Start & Authentication\n\n🔗 **Nodes:**\n1️⃣ **On clicking 'execute' (Manual Trigger)**\n▶️ Starts the workflow manually when you click *Execute Workflow*.\n\n2️⃣ **Set API Key**\n🔑 Stores you"
      }
    },
    {
      "id": "286e3fa1-79c9-48e8-a533-e6ae80ae9949",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        -736
      ],
      "parameters": {
        "width": 1300,
        "height": 320,
        "content": "=======================================\n            WORKFLOW ASSISTANCE\n=======================================\nFor any questions or support, please contact:\n    Yaron@nofluff.online\n\nExplore more tip"
      }
    },
    {
      "id": "ca94e4d9-06d8-497c-949c-ec6a000621a7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        -400
      ],
      "parameters": {
        "width": 1289,
        "height": 2654,
        "content": "# Generate Videos from Images with Wan 2.2 I2V A14B AI Model\n\n### 🌍 Overview\n\nThis workflow connects **n8n** with **Replicate’s Wan-Video model** to generate **video content from an image + prompt**.\n"
      }
    },
    {
      "id": "82ce2bd7-4222-4eba-9436-329bccce63c7",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        -608
      ],
      "parameters": {
        "width": 406,
        "height": 959,
        "content": "## 🔵 Section 2: Send Video Generation Request\n\n🔗 **Nodes:**\n3️⃣ **Create Prediction (HTTP Request)**\n📤 Sends a request to Replicate API → `/v1/predictions`\n\n* Model: `wan-video/wan-2.2-i2v-a14b`\n* Inp"
      }
    },
    {
      "id": "414a8529-fa76-47ea-aa02-d4946c2608e8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        -448
      ],
      "parameters": {
        "width": 598,
        "height": 799,
        "content": "## 🟣 Section 3: Polling & Status Check\n\n🔗 **Nodes:**\n5️⃣ **Wait (2 sec)**\n⏳ Adds a short delay before checking progress.\n\n* Prevents API spam\n\n6️⃣ **Check Prediction Status (HTTP Request)**\n🔄 Calls Re"
      }
    },
    {
      "id": "6f55a04b-2fe4-4f44-8991-39ec6732cbe1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        -432
      ],
      "parameters": {
        "width": 326,
        "height": 783,
        "content": "## 🟡 Section 4: Process Final Result\n\n🔗 **Nodes:**\n8️⃣ **Process Result (Code)**\n📥 Once complete, extracts:\n\n* ✅ Status\n* 🎞️ Output video URL\n* 📊 Generation metrics\n* ⏱️ Timestamps (created\\_at, compl"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Check Prediction Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set API Key": {
      "main": [
        [
          {
            "node": "Create Prediction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Complete": {
      "main": [
        [
          {
            "node": "Process Result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Prediction": {
      "main": [
        [
          {
            "node": "Extract Prediction ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Prediction ID": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Set API Key",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Prediction Status": {
      "main": [
        [
          {
            "node": "Check If Complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}