From d8dd2ba4faed1f8f1dbf7b05b4dc266334a450db Mon Sep 17 00:00:00 2001 From: bigcat88 Date: Wed, 10 Jun 2026 20:24:55 +0300 Subject: [PATCH 1/2] [Partner Nodes] feat: enable Bria Replace Background, lower prices Signed-off-by: bigcat88 --- comfy_api_nodes/nodes_bria.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/comfy_api_nodes/nodes_bria.py b/comfy_api_nodes/nodes_bria.py index e138fafa975b..5e5ef13a7d42 100644 --- a/comfy_api_nodes/nodes_bria.py +++ b/comfy_api_nodes/nodes_bria.py @@ -289,7 +289,7 @@ def define_schema(cls): ], is_api_node=True, price_badge=IO.PriceBadge( - expr="""{"type":"usd","usd":0.14,"format":{"suffix":"/second"}}""", + expr="""{"type":"usd","usd":0.0044,"format":{"suffix":"/second"}}""", ), ) @@ -357,7 +357,7 @@ def define_schema(cls): ], is_api_node=True, price_badge=IO.PriceBadge( - expr="""{"type":"usd","usd":0.14,"format":{"suffix":"/second"}}""", + expr="""{"type":"usd","usd":0.0044,"format":{"suffix":"/second"}}""", ), ) @@ -433,7 +433,7 @@ def define_schema(cls): ], is_api_node=True, price_badge=IO.PriceBadge( - expr="""{"type":"usd","usd":0.14,"format":{"suffix":"/second"}}""", + expr="""{"type":"usd","usd":0.0044,"format":{"suffix":"/second"}}""", ), ) @@ -452,7 +452,10 @@ async def execute( validate_video_duration(background_video, max_duration=60.0) background_url = await upload_video_to_comfyapi(cls, background_video, wait_label="Uploading background") else: - background_url = await upload_image_to_comfyapi(cls, background_image, wait_label="Uploading background") + # Bria's replace_background 500s on RGBA, so drop the alpha channel before upload. + background_url = await upload_image_to_comfyapi( + cls, background_image[:, :, :, :3], wait_label="Uploading background" + ) response = await sync_op( cls, ApiEndpoint(path="/proxy/bria/v2/video/edit/replace_background", method="POST"), @@ -530,7 +533,7 @@ def define_schema(cls): ], is_api_node=True, price_badge=IO.PriceBadge( - expr="""{"type":"usd","usd":0.14,"format":{"suffix":"/second"}}""", + expr="""{"type":"usd","usd":0.0044,"format":{"suffix":"/second"}}""", ), ) @@ -571,7 +574,7 @@ async def get_node_list(self) -> list[type[IO.ComfyNode]]: BriaRemoveImageBackground, BriaRemoveVideoBackground, BriaVideoGreenScreen, - # BriaVideoReplaceBackground, # server returns Status 500 when we pass background video + BriaVideoReplaceBackground, BriaTransparentVideoBackground, ] From 1fc0c878a390093551f4d06152ca02a04a7304b3 Mon Sep 17 00:00:00 2001 From: bigcat88 Date: Thu, 11 Jun 2026 13:35:28 +0300 Subject: [PATCH 2/2] [Partner Nodes] change price badge value Signed-off-by: bigcat88 --- comfy_api_nodes/nodes_bria.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comfy_api_nodes/nodes_bria.py b/comfy_api_nodes/nodes_bria.py index 5e5ef13a7d42..090154afb832 100644 --- a/comfy_api_nodes/nodes_bria.py +++ b/comfy_api_nodes/nodes_bria.py @@ -289,7 +289,7 @@ def define_schema(cls): ], is_api_node=True, price_badge=IO.PriceBadge( - expr="""{"type":"usd","usd":0.0044,"format":{"suffix":"/second"}}""", + expr="""{"type":"usd","usd":0.0042,"format":{"suffix":"/second"}}""", ), ) @@ -357,7 +357,7 @@ def define_schema(cls): ], is_api_node=True, price_badge=IO.PriceBadge( - expr="""{"type":"usd","usd":0.0044,"format":{"suffix":"/second"}}""", + expr="""{"type":"usd","usd":0.0042,"format":{"suffix":"/second"}}""", ), ) @@ -433,7 +433,7 @@ def define_schema(cls): ], is_api_node=True, price_badge=IO.PriceBadge( - expr="""{"type":"usd","usd":0.0044,"format":{"suffix":"/second"}}""", + expr="""{"type":"usd","usd":0.0042,"format":{"suffix":"/second"}}""", ), ) @@ -533,7 +533,7 @@ def define_schema(cls): ], is_api_node=True, price_badge=IO.PriceBadge( - expr="""{"type":"usd","usd":0.0044,"format":{"suffix":"/second"}}""", + expr="""{"type":"usd","usd":0.0042,"format":{"suffix":"/second"}}""", ), )