Merge branch 'master' into feat/api-nodes/NanoBanana2-autogrow-v2
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled

This commit is contained in:
Alexander Piskun 2026-05-07 21:57:21 +03:00 committed by GitHub
commit e5057dde6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"}}
) )
""", """,
), ),