Generate text-to-video and image-to-video clips with Kling 2.6 via KIE.AI
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls api.kie.ai over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Text to Video Parameters (Edit Fields (Set)): sets 4 fields: prompt, sound, duration…
- Submit Video Generation Request (HTTP Request): calls api.kie.ai (POST)
- Wait: waits 5 seconds
- Check Video Generation Status (HTTP Request): calls api.kie.ai
- Switch: routes items into 5 branches
- Extract Video URL (Code): runs custom JavaScript code
- Download Video File (HTTP Request): calls an HTTP API
- Set Prompt & Image Url (Edit Fields (Set)): sets 4 fields: prompt, duration, image_urls…
- Submit Video Generation (HTTP Request): calls api.kie.ai (POST)
- Wait: waits 5 seconds
…plus 4 more steps. See the full node list below.
HTTP calls to: api.kie.ai
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set
From the author
This n8n template provides a comprehensive suite of Kling 2.6 video generation capabilities through the KIE.AI API. The workflow includes two independent video generation workflows: text-to-video and image-to-video. Each workflow can be used independently to…