This workflow connects n8n with Replicateβs Wan-Video model to generate video content from an image + prompt.
It handles:
π 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.
YOUR_REPLICATE_API_KEYπ‘ Beginner Benefit :
β
No need to hardcode API keys in every request
β
Easy to swap keys for different accounts
π Nodes:
3οΈβ£ Create Prediction (HTTP Request)
π€ Sends a request to Replicate API β /v1/predictions
Model: wan-video/wan-2.2-i2v-a14b
Input Parameters:
prompt β your text descriptionimage β input video/image URLseed β reproducibilitynum_frames β 81 framessample_shift β 5sample_steps β 30frames_per_second β 164οΈβ£ 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
π 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
π Nodes:
8οΈβ£ Process Result (Code)
π₯ Once complete, extracts:
Final output = direct video URL you can download/share π₯
| Section | What Happens | Why Itβs Useful |
|---|---|---|
| π’ Auth | Manual Trigger + API Key | Secure, easy start |
| π΅ Send | Create Prediction + Extract ID | Kicks off video generation |
| π£ Poll | Wait + Check Status + IF | Auto-checks progress until done |
| π‘ Result | Process Result | Gives final video link + metadata |
β¨ 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.


