From ac5a230e911aff94c580eff11e31cd867e028c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=CC=A7ag=CC=86an=20Kiraz?= Date: Thu, 25 Jun 2026 18:01:43 +0300 Subject: [PATCH] feat: add fast/high mode to flux outpaint node BFL added a `mode` parameter to flux-tools/outpainting-v1 (2026-06-09) selecting the quality/speed tradeoff. Expose it as a combo defaulting to "high" (the API default) and only send it when set to "fast", so the default request body stays unchanged. --- nodes/flux_tools.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nodes/flux_tools.py b/nodes/flux_tools.py index 9fce492..3d2a186 100644 --- a/nodes/flux_tools.py +++ b/nodes/flux_tools.py @@ -193,6 +193,18 @@ class FluxOutpaint(BaseFlux): ), }, ), + "mode": ( + ["high", "fast"], + { + "default": "high", + "tooltip": ( + "Quality/speed tradeoff. 'high' (default) gives highest fidelity and best prompt " + "adherence. 'fast' is significantly faster for naturally extending scenes " + "(landscapes, backgrounds, textures, products) and requires base64 images, " + "placed reference >=64px per side, aspect ratio <=8:1, canvas+padding <=4MP." + ), + }, + ), "config": ( "BFL_CONFIG", {"tooltip": "Optional Flux Config (BFL) override for x-key, base URL, and region."}, @@ -211,6 +223,7 @@ class FluxOutpaint(BaseFlux): reference_offset_x=0, reference_offset_y=0, auto_crop=False, + mode="high", config=None, ): arguments = { @@ -226,6 +239,8 @@ class FluxOutpaint(BaseFlux): arguments["prompt"] = prompt if auto_crop: arguments["auto_crop"] = auto_crop + if mode != "high": + arguments["mode"] = mode return super().generate_image("flux-tools/outpainting-v1", arguments, config)