ComfyUI-KLingAI-API
Provide high-quality video and image generation capabilities, meeting creators' needs for creative content production and management through more convenient operations, richer functionalities, professional parameters, and stunning effects.
Nodes (15)
The KLing AI login node every other node in this pack needs
KLing's 100+ canned viral video templates, wired into ComfyUI
Turn a still into a KLing AI clip, with real camera moves
KLing's generative outpainting, one edge at a time
Text-to-image and face/subject-locked img2img from Kuaishou's cloud
The plain ComfyUI audio loader riding along in this pack
Turn a KLing result URL into an actual file on disk
Match a KLing video's mouth movement to any audio or text line
Feed your own voice track into KLing's Lip Sync node
Skip recording a voice, let KLing's TTS read the line
Generate a short sound clip from a text description via KLing
Pure text-to-video from KLing, with real camera control
Generate sound effects or a soundtrack for a video you already have
Keep a KLing clip going past its original ending
Put a garment on a person with two photos and one KLing API call
ComfyUI-KLingAI-API
This is a custom node for ComfyUI that allows you to use the KLing AI API directly in ComfyUI. KLing AI API is based on top of KLing AI. For more information, see KLing AI API Documentation.
Requirements
Before using this node, you need to have a KLing AI API key.
Installation
Installing manually
-
Navigate to the
ComfyUI/custom_nodesdirectory. -
Clone this repository:
git clone https://github.com/KwaiVGI/ComfyUI-KLingAI-API -
Install the dependencies:
- Windows (ComfyUI portable):
python -m pip install -r ComfyUI\custom_nodes\ComfyUI-KLingAI-API\requirements.txt - Linux or MacOS:
cd ComfyUI-KLingAI-API && pip install -r requirements.txt
-
If you don't want to expose your key, you can add it into the
config.inifile and keep it empty in the node. -
Start ComfyUI and enjoy using the KLing AI API node!
Nodes
Client
This node is used to create a KLing AI client.
Image Generator
This node is used to generate an image given a text prompt.
<p align="center"> <img src="./examples/image_generation.png" alt="image_generation"> </p>Text2Video
This node is used to generate a video given a text prompt.
<p align="center"> <img src="./examples/text2video.png" alt="text2video"> </p>Image2Video
This node is used to generate a video given an image.
<p align="center"> <img src="./examples/image2video.png" alt="image2video"> </p>Kolors Virtual Try-On
This node is used to display the try-on effect.
<p align="center"> <img src="./examples/kolors_virtual_try_on.png" alt="text2video"> </p>Video Extend
This node is used to extend a video.
<p align="center"> <img src="./examples/video_extend.png" alt="video_extend"> </p>Lip Sync
This node is used to generate a lip sync video.
<p align="center"> <img src="./examples/lip_sync.png" alt="lip_sync"> </p>Effects
You can achieve different special effects based on the effect_scene.
<p align="center"> <img src="./examples/video_effects.png" alt="lip_sync"> </p>ImageExpander
This node is used to expand a image.
<p align="center"> <img src="./examples/image_expand.png" alt="image_expand"> </p>Video2AudioNode
This node is used to generate a audio from video.
<p align="center"> <img src="./examples/video2audio.png" alt="video2audio"> </p>TextToAudioNode
This node is used to generate a audio from text.
<p align="center"> <img src="./examples/text2audio.png" alt="text2audio"> </p>Pricing
For pricing, follow KLing AI Pricing.