fix(api-nodes): fixed price badge for Kling V3 model in the Motion Control node (#13790)

Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
Alexander Piskun 2026-05-07 21:55:09 +03:00 committed by Jedrzej Kosinski
parent 2aa72d2164
commit cf4d0da57b

View File

@ -2787,11 +2787,15 @@ class MotionControl(IO.ComfyNode):
], ],
is_api_node=True, is_api_node=True,
price_badge=IO.PriceBadge( price_badge=IO.PriceBadge(
depends_on=IO.PriceBadgeDepends(widgets=["mode"]), depends_on=IO.PriceBadgeDepends(widgets=["mode", "model"]),
expr=""" expr="""
( (
$prices := {"std": 0.07, "pro": 0.112}; $prices := {
{"type":"usd","usd": $lookup($prices, widgets.mode), "format":{"suffix":"/second"}} "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"}}
) )
""", """,
), ),