🎬 Generate videos from images with Wan 2.2 I2V A14B AI model

⚑ 3,733 views · 🎬 Content Creation & Video

Description

Generate Videos from Images with Wan 2.2 I2V A14B AI Model

🌍 Overview

This workflow connects n8n with Replicate’s Wan-Video model to generate video content from an image + prompt. It handles:


🟒 Section 1: Start & Authentication

πŸ”— Nodes: 1️⃣ On clicking β€˜execute’ (Manual Trigger) ▢️ Starts the workflow manually when you click Execute Workflow.

2️⃣ Set API Key πŸ”‘ Stores your Replicate API Key securely inside n8n.

πŸ’‘ Beginner Benefit: βœ… No need to hardcode API keys in every request βœ… Easy to swap keys for different accounts


πŸ”΅ Section 2: Send Video Generation Request

πŸ”— Nodes: 3️⃣ Create Prediction (HTTP Request) πŸ“€ Sends a request to Replicate API β†’ /v1/predictions

4️⃣ Extract Prediction ID (Code) πŸ†” Pulls out the prediction ID + status from Replicate’s response. This ID is needed for polling until the video finishes generating.

πŸ’‘ Beginner Benefit: βœ… Automates the API call to generate video βœ… Extracts ID β†’ avoids manual copy-paste


🟣 Section 3: Polling & Status Check

πŸ”— Nodes: 5️⃣ Wait (2 sec) ⏳ Adds a short delay before checking progress.

6️⃣ Check Prediction Status (HTTP Request) πŸ”„ Calls Replicate API β†’ /v1/predictions/{id}

7️⃣ Check If Complete (IF Node) ❓ Compares status β†’ succeeded or not

πŸ’‘ Beginner Benefit: βœ… Automatic re-checking β†’ you don’t need to refresh manually βœ… Works until result is ready


🟑 Section 4: Process Final Result

πŸ”— Nodes: 8️⃣ Process Result (Code) πŸ“₯ Once complete, extracts:

Final output = direct video URL you can download/share πŸŽ₯


πŸ“Š Final Overview

SectionWhat HappensWhy It’s Useful
🟒 AuthManual Trigger + API KeySecure, easy start
πŸ”΅ SendCreate Prediction + Extract IDKicks off video generation
🟣 PollWait + Check Status + IFAuto-checks progress until done
🟑 ResultProcess ResultGives final video link + metadata

πŸš€ Why This Workflow Rocks


✨ With this workflow, you’ve got a personal AI video generator inside n8n β€” all you need to do is provide a prompt + input image/video, and you’ll get a fresh AI video link back.


πŸ”— Nodes Used

HTTP Request

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup