Generate text-to-video and image-to-video clips with Kling 2.6 via KIE.AI
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
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
What it does
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 create videos from different input types, making it perfect for content creators, marketers, and video production teams. Use cases are many: Create videos from text descriptions without any input media, transform static images into animated videos, generate engaging video content for social media, automate video production workflows, create video variations from the same source, produce marketing videos at scale, repurpose content across different video formats, or streamline video creation pipelines for content teams! Good to know - The workflow includes two independent Kling 2.6 video generation capabilities via KIE.AI API: - Text-to-Video: Creates videos directly from text prompts without requiring input images or videos using kling-2.6/text-to-video model - Image-to-Video: Transforms static images into animated videos based on text prompts using kling-2.6/image-to-video model - Each workflow can be used independently based on your input type and needs - Supports customizable aspect ratios: 9:16 (vertical), 16:9 (landscape), 1:1 (square), 4:3 (classic) - Supports customizable duration options (e.g., 5, 10, or 15 seconds) - Sound control: Enable or disable sound in generated videos - Text-to-video creates videos purely from text descriptions - no media input required - Image-to-video animates static images with customizable prompts for style and movement - KIE.AI pricing: Check current rates at https://kie.ai/ for video generation costs - Processing time: Varies based on video length and KIE.AI queue, typically 1-5 minutes for generation - Media requirements: Image files must be publicly accessible via URL (HTTPS recommended) - Supported image formats: PNG, JPG, JPEG, WEBP - Automatic polling system handles processing status checks and retries for all workflows How it works The template includes two independent workflows that can be used separately based on your input type: 1. Text-to-Video (Top Section): 1. Video Parameters Setup: Set prompt, duration, aspect ratio (e.g., "9:16", "16:9"), and sound (true/false) in 'Set Text to Video Parameters' node 2. Video Generation Submission: Parameters are submitted to KIE.AI API using kling-2.6/text-to-video model 3. Processing Wait: Workflow waits 5 seconds, then polls the generation status 4. Status Check: Checks if video generation is complete, queuing, generating, or failed 5. Polling Loop: If still processing, workflow waits and checks again until completion 6. Video URL Extraction: Once complete, extracts the generated video file URL from the API response 7. Video Download: Downloads the generated video file for local use 2. Image-to-Video (Bottom Section): 1. Video Parameters Setup: Set prompt, image URL, duration, and sound (true/false) in 'Set Prompt & Image Url' node 2. Video Generation Submission: Parameters are submitted to KIE.AI API using kling-2.6/image-to-video model 3. Processing Wait: Workflow waits 5 seconds, then polls the generation status 4. Status Check: Checks if video generation is complete, queuing, generating, or failed 5. Polling Loop: If still processing, workflow waits and checks again until completion 6. Video URL Extraction: Once complete, extracts the generated video file URL from the API response 7. Video Download: Downloads the generated video file for local use All workflows automatically handle different processing states (queuing, generating, success, fail) and retry polling until video generation is complete. Each workflow operates independently, allowing you to use only the video generation type you need. How to use 1. Setup Credentials: - Configure KIE.AI API key as HTTP Bearer Auth credential (used for both workflows) 2. Choose Your Workflow: - For Text-to-Video: Update 'Set Text to Video