Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Remove kling-v2 from Kling Image Generation node (#15676)

Alexander Piskun784462cbbd2a
diff --git a/comfy_api_nodes/nodes_kling.py b/comfy_api_nodes/nodes_kling.py
index bbeabead1..1bbec1d1f 100644
--- a/comfy_api_nodes/nodes_kling.py
+++ b/comfy_api_nodes/nodes_kling.py
@@ -1866,7 +1866,7 @@ class KlingImageGenerationNode(IO.ComfyNode):
tooltip="Subject reference similarity",
advanced=True,
),
- IO.Combo.Input("model_name", options=["kling-v3", "kling-v2"]),
+ IO.Combo.Input("model_name", options=["kling-v3"]),
IO.Combo.Input(
"aspect_ratio",
options=[i.value for i in KlingImageGenAspectRatio],
@@ -1902,13 +1902,8 @@ class KlingImageGenerationNode(IO.ComfyNode):
],
is_api_node=True,
price_badge=IO.PriceBadge(
- depends_on=IO.PriceBadgeDepends(widgets=["model_name", "n"]),
- expr="""
- (
- $base := $contains(widgets.model_name,"kling-v3") ? 0.028 : 0.014;
- {"type":"usd","usd": $base * widgets.n}
- )
- """,
+ depends_on=IO.PriceBadgeDepends(widgets=["n"]),
+ expr="""{"type":"usd","usd": 0.028 * widgets.n}""",
),
)