The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
feat(api-nodes): enable Kling 3.0 Motion Control (#12785)
Alexander Piskun9cdfd7403bc4
diff --git a/comfy_api_nodes/apis/kling.py b/comfy_api_nodes/apis/kling.pyindex a5bd5f1d3..fe0f97cb3 100644--- a/comfy_api_nodes/apis/kling.py+++ b/comfy_api_nodes/apis/kling.py@@ -148,3 +148,4 @@ class MotionControlRequest(BaseModel):keep_original_sound: str = Field(...)character_orientation: str = Field(...)mode: str = Field(..., description="'pro' or 'std'")+ model_name: str = Field(...)diff --git a/comfy_api_nodes/nodes_kling.py b/comfy_api_nodes/nodes_kling.pyindex 74fa078ff..8963c335d 100644--- a/comfy_api_nodes/nodes_kling.py+++ b/comfy_api_nodes/nodes_kling.py@@ -2747,6 +2747,7 @@ class MotionControl(IO.ComfyNode):"but the character orientation matches the reference image (camera/other details via prompt).",),IO.Combo.Input("mode", options=["pro", "std"]),+ IO.Combo.Input("model", options=["kling-v3", "kling-v2-6"], optional=True),],outputs=[IO.Video.Output(),@@ -2777,6 +2778,7 @@ class MotionControl(IO.ComfyNode):keep_original_sound: bool,character_orientation: str,mode: str,+ model: str = "kling-v2-6",) -> IO.NodeOutput:validate_string(prompt, max_length=2500)validate_image_dimensions(reference_image, min_width=340, min_height=340)@@ -2797,6 +2799,7 @@ class MotionControl(IO.ComfyNode):keep_original_sound="yes" if keep_original_sound else "no",character_orientation=character_orientation,mode=mode,+ model_name=model,),)if response.code: