Comfyui-Kling-Wrapper Examples
This directory contains importable ComfyUI workflow JSON examples and small Python API snippets for Comfyui-Kling-Wrapper.
Before running the workflows
- Create and fill in
config.local.jsonin the repository root before importing the workflows. - You can copy
config.example.jsonin the repository root as a starting template. - The provider is configured globally in
config.local.jsonand is intentionally not exposed as a node widget. Use"provider_default": "official"for Kling or"provider_default": "tencent_vod"for Tencent VOD. - For Tencent VOD workflows, set
provider_defaulttotencent_vodand configuretencent_secret_id,tencent_secret_key, andtencent_sub_app_id, or use theTENCENTCLOUD_SECRET_IDandTENCENTCLOUD_SECRET_KEYenvironment variables. - Replace placeholder filenames such as
example_portrait.png,example_subject_front.png,example_subject_ref_1.png,example_cloth.png,example_scene.png,example_lipsync_source.mp4,example_lipsync_audio.wav, andexample_voice_reference.mp3with files that exist in your ComfyUI input directory. - Replace placeholder URLs such as
https://example.com/reference-motion.mp4with real URLs when needed. - Native preset and cloned voices are available for
kling-v2-6; the active API rejectsvoice_listforkling-v3. kling-v3-omniis visible in the video generation dropdowns for comparison withkling-v3;kling-video-o1remains hidden until live endpoint support is confirmed.
Important workflow notes
05_comfyui_kling_wrapper_text2video_v26_sound.jsonis the native audio example and is built aroundkling-v2-6.06_comfyui_kling_wrapper_advanced_element_subject_to_image2video.jsonrequires 1 frontal portrait plus 1-3 additional photos of the same subject. Background or scene images do not count as advanced-element reference images.- If you need both subject binding and speech, generate the bound video first and then add speech with the lip-sync or audio nodes.
kling-v3-omnican combinecustom_voice_idorcustom_voice_listwithelement_list; older models still keep stricter local guards.Motion Controlaccepts either a direct http(s) reference-video URL or uploaded/local video workflow inputs. For local media, use a video loader node that provides eitherVIDEOorreference_video_framesplusreference_video_info. Setdurationtoautoif you want it to match the uploaded motion reference length.Lip Syncnow callsidentify-faceandadvanced-lip-sync; leaveface_idempty to use the first detected face.Avataraccepts one and only one ofAUDIO,audio_id,audio_file, oraudio_url.Image2Video.custom_voice_idis the single-custom-voice path. For multiple voices, connectCustom Voice List Builder.custom_voice_listtoImage2Video.custom_voice_list, setsound=on, and use ordered markers such as<<<voice_1>>>and<<<voice_2>>>.
Included files
01_comfyui_kling_wrapper_image_generation_v3.json: basic image generation with a verifiedkling-v3preset.02_comfyui_kling_wrapper_text2video_v3_intelligence.json: text-to-video withkling-v3intelligent multi-shot mode.03_comfyui_kling_wrapper_image2video_v3.json: single-image to video using the visible 3.0-era model set.04_comfyui_kling_wrapper_multi_images_to_video_v3.json: multi-image identity-consistent video generation.05_comfyui_kling_wrapper_text2video_v26_sound.json:kling-v2-6talking-head example with native voice presets.06_comfyui_kling_wrapper_advanced_element_subject_to_image2video.json: advanced custom element creation pluselement_listbinding in image-to-video.07_comfyui_kling_wrapper_motion_control_v26.json: motion-control workflow centered on a reference image plus uploaded reference-video inputs.08_comfyui_kling_wrapper_virtual_try_on.json: virtual try-on image workflow.09_comfyui_kling_wrapper_image_expand.json: image expansion workflow.10_comfyui_kling_wrapper_video_extend_chain.json: clip generation followed by video extension.11_comfyui_kling_wrapper_text_to_audio.json: text-to-audio workflow.12_comfyui_kling_wrapper_video_to_audio.json: video-to-audio workflow.13_comfyui_kling_wrapper_lip_sync_from_text.json: lip-sync workflow driven by text input.14_comfyui_kling_wrapper_effects_single_image.json: single-image effects workflow.15_comfyui_kling_wrapper_advanced_element_subject_with_video2audio_music.json: advanced subject binding followed byVideo2Audioto add generated music/ambience to the result.16_comfyui_kling_wrapper_video_character_to_image2video.json: create avideo_characterelement from a publicvideo_url, then bind that element intoImage2Video.17_comfyui_kling_wrapper_lip_sync_from_uploaded_audio_video.json: advanced lip-sync workflow using directLoadAudioandLoadVideouploads.18_comfyui_kling_wrapper_custom_voice_tts_preview.json: create a custom voice and preview its returnedtrial_url.19_comfyui_kling_wrapper_avatar_from_uploaded_audio_image.json: create an Avatar video from one image and uploaded audio.20_comfyui_kling_wrapper_custom_voice_image2video.json: clone a voice and connect itsvoice_idto Kling v2.6 image-to-video.21_tencent_vod_text2video.json: minimal Tencent VOD text-to-video workflow.22_tencent_vod_image2video.json: minimal Tencent VOD image-to-video workflow.23_tencent_vod_multi_images_to_video.json: Tencent VOD multi-image reference generation.24_tencent_vod_motion_control.json: Tencent VOD motion-control workflow.25_tencent_vod_multimodal_video_edit.json: Tencent VOD 3.0-Omni video editing with an image reference.26_tencent_vod_advanced_element_create.json: Tencent VOD advanced subject creation.27_tencent_vod_custom_voice_create.json: Tencent VOD custom voice creation and trial preview.28_comfyui_kling_wrapper_clothing_dupe.json: official Kling Clothing Dupe workflow using uploaded video, product/model images, and BGM audio.api_examples.py: small Python snippets that mirror the same upgraded API wrappers.