圖像配色重混器
上傳一張圖像,選擇想要的氛圍與配色,一次生成 4、9 或 16 種獨特變化,僅需一次 Nano Banana Pro 生成。
關於
圖像配色重混器是一個精簡的 ComfyUI 工作流程,能將單一輸入圖像依你選定的氛圍與配色,產生 4、9 或 16 種配色變化。設計目標是快速探索主題配色,同時保持原始版面不變——非常適合標誌、圖示、海報、包裝或 UI 模擬等需要幾何結構不變的應用。
技術上,流程簡潔高效:LoadImage 匯入來源圖像,傳入自訂節點進行重混。該節點會包裝你的配色與氛圍設定,並發送一次 Nano Banana Pro API 請求,然後將單次生成結果展開為多種配色輸出。SaveImage 會將每個變化存檔。
您提供的內容
- 正在讀取工作流程
在 ComfyUI 中執行。 此工作流程無法在此頁面上執行。請在已載入所有內容的 Comfy Cloud 中開啟,或下載到您自己的 ComfyUI。
在 Cloud 中試用試試範例
工作流程內部
節點圖的唯讀預覽。請在 Comfy Cloud 中開啟,或下載後編輯節點。
Loading the graph
Open full-size workflow preview- 作者
- Rob
需要自訂節點
- 正在讀取工作流程
從程式碼使用此工作流程
可行時會根據工作流程圖和輸入內容產生;否則會顯示儲存的範例。執行可能產生費用的程式碼前,請檢查認證資訊和端點。
What you need
- Runs on
- Comfy Cloud
- 金鑰
- COMFY_API_KEY
需要付費 Cloud 方案與點數。
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"5001": {
"class_type": "LoadImage",
"inputs": {
"image": "a49747fc512ec7b188134f2686d48e9f86b1d893a23df133ea72d94137ff4a8e.png"
},
"_meta": {
"title": "Load Image"
}
},
"5003": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-tiles",
"images": [
"5002:2032",
0
]
},
"_meta": {
"title": "Save Tiles"
}
},
"5002:2001": {
"class_type": "CustomCombo",
"inputs": {
"choice": "4x4"
},
"_meta": {
"title": "grid_size"
}
},
"5002:2006": {
"class_type": "StringCompare",
"inputs": {
"case_sensitive": False,
"mode": "Starts With",
"string_a": [
"5002:2001",
0
],
"string_b": "2x2"
},
"_meta": {
"title": "is \"2x2\"?"
}
},
"5002:2007": {
"class_type": "StringCompare",
"inputs": {
"case_sensitive": False,
"mode": "Starts With",
"string_a": [
"5002:2001",
0
],
"string_b": "3x3"
},
"_meta": {
"title": "is \"3x3\"?"
}
},
"5002:2009": {
"class_type": "ImageScaleToTotalPixels",
"inputs": {
"image": [
"5001",
0
],
"megapixels": 1,
"resolution_steps": 1,
"upscale_method": "nearest-exact"
},
"_meta": {
"title": "Scale Input"
}
},
"5002:2010:1": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row0 stitch0"
}
},
"5002:2010:2": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row1 stitch0"
}
},
"5002:2010:3": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"5002:2010:1",
0
],
"image2": [
"5002:2010:2",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "col stitch0"
}
},
"5002:2011:101": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row0 stitch0"
}
},
"5002:2011:102": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2011:101",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row0 stitch1"
}
},
"5002:2011:103": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row1 stitch0"
}
},
"5002:2011:104": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2011:103",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row1 stitch1"
}
},
"5002:2011:105": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row2 stitch0"
}
},
"5002:2011:106": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2011:105",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row2 stitch1"
}
},
"5002:2011:107": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"5002:2011:102",
0
],
"image2": [
"5002:2011:104",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "col stitch0"
}
},
"5002:2011:108": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"5002:2011:107",
0
],
"image2": [
"5002:2011:106",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "col stitch1"
}
},
"5002:2012:251": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row0 stitch0"
}
},
"5002:2012:252": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2012:251",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row0 stitch1"
}
},
"5002:2012:253": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2012:252",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row0 stitch2"
}
},
"5002:2012:254": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row1 stitch0"
}
},
"5002:2012:255": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2012:254",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row1 stitch1"
}
},
"5002:2012:256": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2012:255",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row1 stitch2"
}
},
"5002:2012:257": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row2 stitch0"
}
},
"5002:2012:258": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2012:257",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row2 stitch1"
}
},
"5002:2012:259": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2012:258",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row2 stitch2"
}
},
"5002:2012:260": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2009",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row3 stitch0"
}
},
"5002:2012:261": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2012:260",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row3 stitch1"
}
},
"5002:2012:262": {
"class_type": "ImageStitch",
"inputs": {
"direction": "right",
"image1": [
"5002:2012:261",
0
],
"image2": [
"5002:2009",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "row3 stitch2"
}
},
"5002:2012:263": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"5002:2012:253",
0
],
"image2": [
"5002:2012:256",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "col stitch0"
}
},
"5002:2012:264": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"5002:2012:263",
0
],
"image2": [
"5002:2012:259",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "col stitch1"
}
},
"5002:2012:265": {
"class_type": "ImageStitch",
"inputs": {
"direction": "down",
"image1": [
"5002:2012:264",
0
],
"image2": [
"5002:2012:262",
0
],
"match_image_size": True,
"spacing_color": "white",
"spacing_width": 0
},
"_meta": {
"title": "col stitch2"
}
},
"5002:2013": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5002:2012:265",
0
],
"on_true": [
"5002:2011:108",
0
],
"switch": [
"5002:2007",
0
]
},
"_meta": {
"title": "stitch 3v4"
}
},
"5002:2014": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5002:2013",
0
],
"on_true": [
"5002:2010:3",
0
],
"switch": [
"5002:2006",
0
]
},
"_meta": {
"title": "stitch final"
}
},
"5002:2015": {
"class_type": "ResizeImageMaskNode",
"inputs": {
"input": [
"5002:2014",
0
],
"resize_type": "scale longer dimension",
"resize_type.longer_size": 4096,
"scale_method": "lanczos"
},
"_meta": {
"title": "Resize 2048"
}
},
"5002:2016": {
"class_type": "RegexReplace",
"inputs": {
"case_insensitive": True,
"count": 0,
"dotall": False,
"multiline": False,
"regex_pattern": "{grid_size}",
"replace": [
"5002:2001",
0
],
"string": [
"5002:5012",
0
]
},
"_meta": {
"title": "Replace {aspect_ratio}"
}
},
"5002:2017": {
"class_type": "GeminiImage2Node",
"inputs": {
"aspect_ratio": "auto",
"images": [
"5002:2015",
0
],
"model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
"prompt": [
"5002:2016",
0
],
"resolution": "4K",
"response_modalities": "IMAGE+TEXT",
"seed": 545823223985451,
"system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests."
},
"_meta": {
"title": "Nano Banana Pro"
}
},
"5002:2020:501": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"5002:2017",
0
]
},
"_meta": {
"title": "Get Size"
}
},
"5002:2020:502": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2020:501",
0
],
"b": 0,
"value": "a/2"
},
"_meta": {
"title": "W/2"
}
},
"5002:2020:503": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2020:501",
1
],
"b": 0,
"value": "a/2"
},
"_meta": {
"title": "H/2"
}
},
"5002:2020:504": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2020:501",
0
],
"b": 0,
"value": "a/2*1"
},
"_meta": {
"title": "x col 1"
}
},
"5002:2020:505": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2020:501",
1
],
"b": 0,
"value": "a/2*1"
},
"_meta": {
"title": "y row 1"
}
},
"5002:2020:506": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2020:503",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2020:502",
0
],
"x": 0,
"y": 0
},
"_meta": {
"title": "[0,0]"
}
},
"5002:2020:507": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2020:503",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2020:502",
0
],
"x": [
"5002:2020:504",
0
],
"y": 0
},
"_meta": {
"title": "[0,1]"
}
},
"5002:2020:508": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2020:503",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2020:502",
0
],
"x": 0,
"y": [
"5002:2020:505",
0
]
},
"_meta": {
"title": "[1,0]"
}
},
"5002:2020:509": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2020:503",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2020:502",
0
],
"x": [
"5002:2020:504",
0
],
"y": [
"5002:2020:505",
0
]
},
"_meta": {
"title": "[1,1]"
}
},
"5002:2020:510": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"5002:2020:506",
0
],
"image_2": [
"5002:2020:507",
0
],
"image_3": [
"5002:2020:508",
0
],
"image_4": [
"5002:2020:509",
0
],
"inputcount": 4
},
"_meta": {
"title": "Batch 2x2"
}
},
"5002:2021:701": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"5002:2017",
0
]
},
"_meta": {
"title": "Get Size"
}
},
"5002:2021:702": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2021:701",
0
],
"b": 0,
"value": "a/3"
},
"_meta": {
"title": "W/3"
}
},
"5002:2021:703": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2021:701",
1
],
"b": 0,
"value": "a/3"
},
"_meta": {
"title": "H/3"
}
},
"5002:2021:704": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2021:701",
0
],
"b": 0,
"value": "a/3*1"
},
"_meta": {
"title": "x col 1"
}
},
"5002:2021:705": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2021:701",
0
],
"b": 0,
"value": "a/3*2"
},
"_meta": {
"title": "x col 2"
}
},
"5002:2021:706": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2021:701",
1
],
"b": 0,
"value": "a/3*1"
},
"_meta": {
"title": "y row 1"
}
},
"5002:2021:707": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2021:701",
1
],
"b": 0,
"value": "a/3*2"
},
"_meta": {
"title": "y row 2"
}
},
"5002:2021:708": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": 0,
"y": 0
},
"_meta": {
"title": "[0,0]"
}
},
"5002:2021:709": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": [
"5002:2021:704",
0
],
"y": 0
},
"_meta": {
"title": "[0,1]"
}
},
"5002:2021:710": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": [
"5002:2021:705",
0
],
"y": 0
},
"_meta": {
"title": "[0,2]"
}
},
"5002:2021:711": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": 0,
"y": [
"5002:2021:706",
0
]
},
"_meta": {
"title": "[1,0]"
}
},
"5002:2021:712": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": [
"5002:2021:704",
0
],
"y": [
"5002:2021:706",
0
]
},
"_meta": {
"title": "[1,1]"
}
},
"5002:2021:713": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": [
"5002:2021:705",
0
],
"y": [
"5002:2021:706",
0
]
},
"_meta": {
"title": "[1,2]"
}
},
"5002:2021:714": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": 0,
"y": [
"5002:2021:707",
0
]
},
"_meta": {
"title": "[2,0]"
}
},
"5002:2021:715": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": [
"5002:2021:704",
0
],
"y": [
"5002:2021:707",
0
]
},
"_meta": {
"title": "[2,1]"
}
},
"5002:2021:716": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2021:703",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2021:702",
0
],
"x": [
"5002:2021:705",
0
],
"y": [
"5002:2021:707",
0
]
},
"_meta": {
"title": "[2,2]"
}
},
"5002:2021:717": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"5002:2021:708",
0
],
"image_2": [
"5002:2021:709",
0
],
"image_3": [
"5002:2021:710",
0
],
"image_4": [
"5002:2021:711",
0
],
"image_5": [
"5002:2021:712",
0
],
"image_6": [
"5002:2021:713",
0
],
"image_7": [
"5002:2021:714",
0
],
"image_8": [
"5002:2021:715",
0
],
"image_9": [
"5002:2021:716",
0
],
"inputcount": 9
},
"_meta": {
"title": "Batch 3x3"
}
},
"5002:2022:1001": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"5002:2017",
0
]
},
"_meta": {
"title": "Get Size"
}
},
"5002:2022:1002": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2022:1001",
0
],
"b": 0,
"value": "a/4"
},
"_meta": {
"title": "W/4"
}
},
"5002:2022:1003": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2022:1001",
1
],
"b": 0,
"value": "a/4"
},
"_meta": {
"title": "H/4"
}
},
"5002:2022:1004": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2022:1001",
0
],
"b": 0,
"value": "a/4*1"
},
"_meta": {
"title": "x col 1"
}
},
"5002:2022:1005": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2022:1001",
0
],
"b": 0,
"value": "a/4*2"
},
"_meta": {
"title": "x col 2"
}
},
"5002:2022:1006": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2022:1001",
0
],
"b": 0,
"value": "a/4*3"
},
"_meta": {
"title": "x col 3"
}
},
"5002:2022:1007": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2022:1001",
1
],
"b": 0,
"value": "a/4*1"
},
"_meta": {
"title": "y row 1"
}
},
"5002:2022:1008": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2022:1001",
1
],
"b": 0,
"value": "a/4*2"
},
"_meta": {
"title": "y row 2"
}
},
"5002:2022:1009": {
"class_type": "SimpleMath+",
"inputs": {
"a": [
"5002:2022:1001",
1
],
"b": 0,
"value": "a/4*3"
},
"_meta": {
"title": "y row 3"
}
},
"5002:2022:1010": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": 0,
"y": 0
},
"_meta": {
"title": "[0,0]"
}
},
"5002:2022:1011": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1004",
0
],
"y": 0
},
"_meta": {
"title": "[0,1]"
}
},
"5002:2022:1012": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1005",
0
],
"y": 0
},
"_meta": {
"title": "[0,2]"
}
},
"5002:2022:1013": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1006",
0
],
"y": 0
},
"_meta": {
"title": "[0,3]"
}
},
"5002:2022:1014": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": 0,
"y": [
"5002:2022:1007",
0
]
},
"_meta": {
"title": "[1,0]"
}
},
"5002:2022:1015": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1004",
0
],
"y": [
"5002:2022:1007",
0
]
},
"_meta": {
"title": "[1,1]"
}
},
"5002:2022:1016": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1005",
0
],
"y": [
"5002:2022:1007",
0
]
},
"_meta": {
"title": "[1,2]"
}
},
"5002:2022:1017": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1006",
0
],
"y": [
"5002:2022:1007",
0
]
},
"_meta": {
"title": "[1,3]"
}
},
"5002:2022:1018": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": 0,
"y": [
"5002:2022:1008",
0
]
},
"_meta": {
"title": "[2,0]"
}
},
"5002:2022:1019": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1004",
0
],
"y": [
"5002:2022:1008",
0
]
},
"_meta": {
"title": "[2,1]"
}
},
"5002:2022:1020": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1005",
0
],
"y": [
"5002:2022:1008",
0
]
},
"_meta": {
"title": "[2,2]"
}
},
"5002:2022:1021": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1006",
0
],
"y": [
"5002:2022:1008",
0
]
},
"_meta": {
"title": "[2,3]"
}
},
"5002:2022:1022": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": 0,
"y": [
"5002:2022:1009",
0
]
},
"_meta": {
"title": "[3,0]"
}
},
"5002:2022:1023": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1004",
0
],
"y": [
"5002:2022:1009",
0
]
},
"_meta": {
"title": "[3,1]"
}
},
"5002:2022:1024": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1005",
0
],
"y": [
"5002:2022:1009",
0
]
},
"_meta": {
"title": "[3,2]"
}
},
"5002:2022:1025": {
"class_type": "ImageCrop",
"inputs": {
"height": [
"5002:2022:1003",
0
],
"image": [
"5002:2017",
0
],
"width": [
"5002:2022:1002",
0
],
"x": [
"5002:2022:1006",
0
],
"y": [
"5002:2022:1009",
0
]
},
"_meta": {
"title": "[3,3]"
}
},
"5002:2022:1026": {
"class_type": "ImageBatchMulti",
"inputs": {
"image_1": [
"5002:2022:1010",
0
],
"image_10": [
"5002:2022:1019",
0
],
"image_11": [
"5002:2022:1020",
0
],
"image_12": [
"5002:2022:1021",
0
],
"image_13": [
"5002:2022:1022",
0
],
"image_14": [
"5002:2022:1023",
0
],
"image_15": [
"5002:2022:1024",
0
],
"image_16": [
"5002:2022:1025",
0
],
"image_2": [
"5002:2022:1011",
0
],
"image_3": [
"5002:2022:1012",
0
],
"image_4": [
"5002:2022:1013",
0
],
"image_5": [
"5002:2022:1014",
0
],
"image_6": [
"5002:2022:1015",
0
],
"image_7": [
"5002:2022:1016",
0
],
"image_8": [
"5002:2022:1017",
0
],
"image_9": [
"5002:2022:1018",
0
],
"inputcount": 16
},
"_meta": {
"title": "Batch 4x4"
}
},
"5002:2031": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5002:2022:1026",
0
],
"on_true": [
"5002:2021:717",
0
],
"switch": [
"5002:2007",
0
]
},
"_meta": {
"title": "images 3v4"
}
},
"5002:2032": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"5002:2031",
0
],
"on_true": [
"5002:2020:510",
0
],
"switch": [
"5002:2006",
0
]
},
"_meta": {
"title": "images final"
}
},
"5002:5006": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"5002:2017",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"5002:5012": {
"class_type": "RegexReplace",
"inputs": {
"case_insensitive": True,
"count": 0,
"dotall": False,
"multiline": False,
"regex_pattern": "{user_prompt}",
"replace": "For each individual grid image, remix the color palettes while retaining the composition of the input. The aesthetic is ethereal with pastel gradients.",
"string": "Maintain the identity, composition, aspect ratio and text from the {grid_size} grid input image.\n\n{user_prompt}"
},
"_meta": {
"title": "Replace Text (Regex)"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)問答
僅進行配色重映射。形狀、構圖與文字位置都會保留,只會改變配色與整體氛圍。建議使用乾淨、對比明顯的來源圖像以獲得最佳效果。
重混節點針對方陣(2x2、3x3、4x4)最佳化,這樣能平衡比較效果並提升批次效率,且僅需一次 Nano Banana 生成。
不需要。此流程不包含 LoadCheckpoint 節點。自訂重混節點會將生成步驟交由 Nano Banana API 處理,然後展開為多種配色變化。
打開重混節點(5772692b-9d2a-4a1f-b676-71b8fd315078),輸入氛圍文字(如「溫暖復古」)與配色細節(配色名稱或 hex 代碼,依節點 UI 而定)。若節點支援預設方案,也可直接選用。
相關工作流程
- Nano Banana Pro, Gemini3 Pro Image Preview, Google
Create a character turnaround
- Qwen-Image-Edit
Change a material
- Qwen-Image-Edit
See your subject from a new angle
- Flux.2 Dev, Flux
Create a product mockup
- Nano Banana Pro
Try an outfit on a character
- Seedream
Put your product in a new scene
- SSeedVR2
Upscale and restore detail
- Nano Banana Pro
Sharpen a product photo
- Topaz
Upscale an illustration
- HHitPaw
Restore portrait detail
- FLUX.1 Fill
Edit a selected region
- FLUX.1 Fill
Extend an image’s borders