The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix(api-nodes): fixed price badge for Kling V3 model in the Motion Control node (#13790)
Alexander Piskunc945a433ae09
diff --git a/comfy_api_nodes/nodes_kling.py b/comfy_api_nodes/nodes_kling.pyindex efd58fac3..7586f1816 100644--- a/comfy_api_nodes/nodes_kling.py+++ b/comfy_api_nodes/nodes_kling.py@@ -2787,11 +2787,15 @@ class MotionControl(IO.ComfyNode):],is_api_node=True,price_badge=IO.PriceBadge(- depends_on=IO.PriceBadgeDepends(widgets=["mode"]),+ depends_on=IO.PriceBadgeDepends(widgets=["mode", "model"]),expr="""(- $prices := {"std": 0.07, "pro": 0.112};- {"type":"usd","usd": $lookup($prices, widgets.mode), "format":{"suffix":"/second"}}+ $prices := {+ "kling-v3": {"std": 0.126, "pro": 0.168},+ "kling-v2-6": {"std": 0.07, "pro": 0.112}+ };+ $modelPrices := $lookup($prices, widgets.model);+ {"type":"usd","usd": $lookup($modelPrices, widgets.mode), "format":{"suffix":"/second"}})""",),