From c8a3041bf9b2008c2733c66580fcb88dadb4dc89 Mon Sep 17 00:00:00 2001 From: bigcat88 Date: Thu, 7 May 2026 09:19:47 +0300 Subject: [PATCH] fix: adjust price badges Signed-off-by: bigcat88 --- comfy_api_nodes/nodes_grok.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy_api_nodes/nodes_grok.py b/comfy_api_nodes/nodes_grok.py index 9b4ba4808..dd5d7e249 100644 --- a/comfy_api_nodes/nodes_grok.py +++ b/comfy_api_nodes/nodes_grok.py @@ -120,7 +120,7 @@ class GrokImageNode(IO.ComfyNode): expr=""" ( $rate := widgets.model = "grok-imagine-image-quality" - ? (widgets.resolution = "1k" ? 0.04 : 0.05) + ? (widgets.resolution = "1k" ? 0.05 : 0.07) : ($contains(widgets.model, "pro") ? 0.07 : 0.02); {"type":"usd","usd": $rate * widgets.number_of_images} ) @@ -246,7 +246,7 @@ class GrokImageEditNode(IO.ComfyNode): $isQualityModel := widgets.model = "grok-imagine-image-quality"; $isPro := $contains(widgets.model, "pro"); $rate := $isQualityModel - ? (widgets.resolution = "1k" ? 0.04 : 0.05) + ? (widgets.resolution = "1k" ? 0.05 : 0.07) : ($isPro ? 0.07 : 0.02); $base := $isQualityModel ? 0.01 : 0.002; $output := $rate * widgets.number_of_images;