{"id":"a5737f51-c91c-4848-ad42-2c38f0173b50","extra":{"ds":{"scale":0.47362440744767204,"offset":[762.3294888170461,1010.8665049475289]},"groupNodes":{"Edit":{"links":[[6,0,1,0,72,"CONDITIONING"],[0,0,1,1,66,"*"],[3,0,2,0,69,"LATENT"],[10,0,2,1,76,"VAE"],[8,0,3,0,74,"MODEL"],[4,0,3,1,70,"CONDITIONING"],[7,0,3,2,73,"CONDITIONING"],[0,0,3,3,66,"*"],[1,0,4,0,67,"CONDITIONING"],[2,0,5,0,68,"IMAGE"],[9,0,6,0,75,"CLIP"],[9,0,7,0,75,"CLIP"]],"nodes":[{"id":-1,"pos":[2354.87890625,-127.23468780517578],"mode":0,"size":[75,26],"type":"Reroute","flags":{},"index":0,"order":20,"inputs":[{"link":null,"name":"","type":"*"}],"outputs":[{"name":"","type":"*","links":null}],"properties":{"horizontal":false,"showOutputText":false}},{"id":-1,"pos":[2730,-220],"mode":0,"size":[197.712890625,46],"type":"ReferenceLatent","flags":{},"index":1,"order":22,"inputs":[{"link":null,"name":"conditioning","type":"CONDITIONING","localized_name":"conditioning"},{"link":null,"name":"latent","type":"LATENT","shape":7,"localized_name":"latent"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[],"localized_name":"CONDITIONING"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"ReferenceLatent"},"widgets_values":[]},{"id":-1,"pos":[3270,-110],"mode":0,"size":[210,46],"type":"VAEDecode","flags":{},"index":2,"order":25,"inputs":[{"link":null,"name":"samples","type":"LATENT","localized_name":"samples"},{"link":null,"name":"vae","type":"VAE","localized_name":"vae"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[],"slot_index":0,"localized_name":"IMAGE"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":-1,"pos":[2930,-110],"mode":0,"size":[315,262],"type":"KSampler","flags":{},"index":3,"order":24,"inputs":[{"link":null,"name":"model","type":"MODEL","localized_name":"model"},{"link":null,"name":"positive","type":"CONDITIONING","localized_name":"positive"},{"link":null,"name":"negative","type":"CONDITIONING","localized_name":"negative"},{"link":null,"name":"latent_image","type":"LATENT","localized_name":"latent_image"},{"link":null,"name":"seed","type":"INT","widget":{"name":"seed"},"localized_name":"seed"},{"link":null,"name":"steps","type":"INT","widget":{"name":"steps"},"localized_name":"steps"},{"link":null,"name":"cfg","type":"FLOAT","widget":{"name":"cfg"},"localized_name":"cfg"},{"link":null,"name":"sampler_name","type":"COMBO","widget":{"name":"sampler_name"},"localized_name":"sampler_name"},{"link":null,"name":"scheduler","type":"COMBO","widget":{"name":"scheduler"},"localized_name":"scheduler"},{"link":null,"name":"denoise","type":"FLOAT","widget":{"name":"denoise"},"localized_name":"denoise"}],"outputs":[{"name":"LATENT","type":"LATENT","links":[],"slot_index":0,"localized_name":"LATENT"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"KSampler"},"widgets_values":[972054013131369,"fixed",20,1,"euler","simple",1]},{"id":-1,"pos":[2940,-220],"mode":0,"size":[211.60000610351562,58],"type":"FluxGuidance","flags":{},"index":4,"order":23,"inputs":[{"link":null,"name":"conditioning","type":"CONDITIONING","localized_name":"conditioning"},{"link":null,"name":"guidance","type":"FLOAT","widget":{"name":"guidance"},"localized_name":"guidance"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[],"slot_index":0,"localized_name":"CONDITIONING"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"FluxGuidance"},"widgets_values":[2.5]},{"id":-1,"pos":[3490,-110],"mode":0,"size":[985.3012084960938,1060.3828125],"type":"SaveImage","flags":{},"index":5,"order":26,"inputs":[{"link":null,"name":"images","type":"IMAGE","localized_name":"images"},{"link":null,"name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"localized_name":"filename_prefix"}],"outputs":[],"properties":{"ver":"0.3.38","cnr_id":"comfy-core"},"widgets_values":["ComfyUI"]},{"id":-1,"pos":[2500,-110],"mode":0,"size":[422.84503173828125,164.31304931640625],"type":"CLIPTextEncode","color":"#232","flags":{},"index":6,"order":12,"title":"CLIP Text Encode (Positive Prompt)","inputs":[{"link":null,"name":"clip","type":"CLIP","localized_name":"clip"},{"link":null,"name":"text","type":"STRING","widget":{"name":"text"},"localized_name":"text"}],"bgcolor":"#353","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[],"slot_index":0,"localized_name":"CONDITIONING"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"CLIPTextEncode"},"widgets_values":["there is a bright light"]},{"id":-1,"pos":[2504.1435546875,97.9598617553711],"mode":0,"size":[422.84503173828125,164.31304931640625],"type":"CLIPTextEncode","color":"#322","flags":{"collapsed":true},"index":7,"order":13,"title":"CLIP Text Encode (Negative Prompt)","inputs":[{"link":null,"name":"clip","type":"CLIP","localized_name":"clip"},{"link":null,"name":"text","type":"STRING","widget":{"name":"text"},"localized_name":"text"}],"bgcolor":"#533","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[],"slot_index":0,"localized_name":"CONDITIONING"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"CLIPTextEncode"},"widgets_values":[""]},{"id":-1,"pos":[2630,-370],"mode":0,"size":[270,82],"type":"UNETLoader","color":"#223","flags":{},"index":8,"order":6,"inputs":[{"link":null,"name":"unet_name","type":"COMBO","widget":{"name":"unet_name"},"localized_name":"unet_name"},{"link":null,"name":"weight_dtype","type":"COMBO","widget":{"name":"weight_dtype"},"localized_name":"weight_dtype"}],"bgcolor":"#335","outputs":[{"name":"MODEL","type":"MODEL","links":[],"localized_name":"MODEL"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"UNETLoader"},"widgets_values":["preliminary-dev-kontext.sft","default"]},{"id":-1,"pos":[2100,-290],"mode":0,"size":[337.76861572265625,130],"type":"DualCLIPLoader","color":"#223","flags":{},"index":9,"order":8,"inputs":[{"link":null,"name":"clip_name1","type":"COMBO","widget":{"name":"clip_name1"},"localized_name":"clip_name1"},{"link":null,"name":"clip_name2","type":"COMBO","widget":{"name":"clip_name2"},"localized_name":"clip_name2"},{"link":null,"name":"type","type":"COMBO","widget":{"name":"type"},"localized_name":"type"},{"link":null,"name":"device","type":"COMBO","shape":7,"widget":{"name":"device"},"localized_name":"device"}],"bgcolor":"#335","outputs":[{"name":"CLIP","type":"CLIP","links":[],"localized_name":"CLIP"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"DualCLIPLoader"},"widgets_values":["clip_l.safetensors","t5xxl_fp16.safetensors","flux","default"]},{"id":-1,"pos":[2960,-370],"mode":0,"size":[270,58],"type":"VAELoader","color":"#223","flags":{},"index":10,"order":7,"inputs":[{"link":null,"name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"localized_name":"vae_name"}],"bgcolor":"#335","outputs":[{"name":"VAE","type":"VAE","links":[],"localized_name":"VAE"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"VAELoader"},"widgets_values":["ae.safetensors"]}],"config":{"0":{},"1":{},"2":{"output":{"0":{"visible":true}}},"3":{"input":{"cfg":{"visible":false},"denoise":{"visible":false}},"output":{"0":{"visible":true}}},"4":{},"5":{},"6":{},"7":{"input":{"text":{"visible":false}}},"8":{},"9":{"input":{"type":{"visible":false}}},"10":{}},"external":[]},"NUNCHAKU_MODEL":{"links":[[2,0,3,0,121,"MODEL"]],"nodes":[{"id":-1,"pos":[2234.466064453125,100.24667358398438],"mode":0,"size":[337.76861572265625,58],"type":"VAELoader","color":"#223","flags":{},"index":0,"order":6,"inputs":[{"link":null,"name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"localized_name":"vae_name"}],"bgcolor":"#335","outputs":[{"name":"VAE","type":"VAE","links":[],"localized_name":"VAE"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","models":[{"url":"https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors","name":"ae.safetensors","directory":"vae"}],"Node name for S&R":"VAELoader"},"widgets_values":["ae.safetensors"]},{"id":-1,"pos":[2234.466064453125,-79.75340270996094],"mode":0,"size":[337.76861572265625,130],"type":"DualCLIPLoader","color":"#223","flags":{},"index":1,"order":7,"inputs":[{"link":null,"name":"clip_name1","type":"COMBO","widget":{"name":"clip_name1"},"localized_name":"clip_name1"},{"link":null,"name":"clip_name2","type":"COMBO","widget":{"name":"clip_name2"},"localized_name":"clip_name2"},{"link":null,"name":"type","type":"COMBO","widget":{"name":"type"},"localized_name":"type"},{"link":null,"name":"device","type":"COMBO","shape":7,"widget":{"name":"device"},"localized_name":"device"}],"bgcolor":"#335","outputs":[{"name":"CLIP","type":"CLIP","links":[],"localized_name":"CLIP"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","models":[{"url":"https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors","name":"clip_l.safetensors","directory":"text_encoders"},{"url":"https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn_scaled.safetensors","name":"t5xxl_fp8_e4m3fn_scaled.safetensors","directory":"text_encoders"}],"Node name for S&R":"DualCLIPLoader"},"widgets_values":["clip_l.safetensors","t5xxl_fp8_e4m3fn_scaled.safetensors","flux","default"]},{"id":-1,"pos":[2249.30029296875,-455.0816955566406],"mode":0,"size":[275.7613220214844,202],"type":"NunchakuFluxDiTLoader","color":"#223","flags":{},"index":2,"order":15,"inputs":[{"link":null,"name":"model_path","type":"COMBO","widget":{"name":"model_path"},"localized_name":"model_path"},{"link":null,"name":"cache_threshold","type":"FLOAT","widget":{"name":"cache_threshold"},"localized_name":"cache_threshold"},{"link":null,"name":"attention","type":"COMBO","widget":{"name":"attention"},"localized_name":"attention"},{"link":null,"name":"cpu_offload","type":"COMBO","widget":{"name":"cpu_offload"},"localized_name":"cpu_offload"},{"link":null,"name":"device_id","type":"INT","widget":{"name":"device_id"},"localized_name":"device_id"},{"link":null,"name":"data_type","type":"COMBO","widget":{"name":"data_type"},"localized_name":"data_type"},{"link":null,"name":"i2f_mode","type":"COMBO","shape":7,"widget":{"name":"i2f_mode"},"localized_name":"i2f_mode"}],"bgcolor":"#335","outputs":[{"name":"MODEL","type":"MODEL","links":[],"localized_name":"MODEL"}],"properties":{"ver":"3b2c771cf2f4e62f97c284bfd8f594482c5f8bc0","cnr_id":"ComfyUI-nunchaku","Node name for S&R":"NunchakuFluxDiTLoader"},"widgets_values":["svdq-int4_r32-flux.1-kontext-dev.safetensors",0,"nunchaku-fp16","auto",0,"bfloat16","enabled"]},{"id":-1,"pos":[2251.943603515625,-198.2259063720703],"mode":0,"size":[300.6851501464844,82],"type":"NunchakuFluxLoraLoader","color":"#223","flags":{},"index":3,"order":27,"inputs":[{"link":null,"name":"model","type":"MODEL","localized_name":"model"},{"link":null,"name":"lora_name","type":"COMBO","widget":{"name":"lora_name"},"localized_name":"lora_name"},{"link":null,"name":"lora_strength","type":"FLOAT","widget":{"name":"lora_strength"},"localized_name":"lora_strength"}],"bgcolor":"#335","outputs":[{"name":"MODEL","type":"MODEL","links":[],"localized_name":"MODEL"}],"properties":{"ver":"3b2c771cf2f4e62f97c284bfd8f594482c5f8bc0","cnr_id":"ComfyUI-nunchaku","Node name for S&R":"NunchakuFluxLoraLoader"},"widgets_values":["flux.1-turbo-alpha.safetensors",1]}],"external":[[0,0,"VAE"],[1,0,"CLIP"],[3,0,"MODEL"]]},"FLUX.1 Kontext Image Edit":{"links":[[6,0,1,0,72,"CONDITIONING"],[0,0,1,1,66,"*"],[3,0,2,0,69,"LATENT"],[10,0,2,1,76,"VAE"],[8,0,3,0,74,"MODEL"],[4,0,3,1,70,"CONDITIONING"],[7,0,3,2,73,"CONDITIONING"],[0,0,3,3,66,"*"],[1,0,4,0,67,"CONDITIONING"],[2,0,5,0,68,"IMAGE"],[9,0,6,0,75,"CLIP"],[9,0,7,0,75,"CLIP"]],"nodes":[{"id":-1,"pos":[2354.87890625,-127.23468780517578],"mode":0,"size":[75,26],"type":"Reroute","flags":{},"index":0,"order":20,"inputs":[{"link":null,"name":"","type":"*"}],"outputs":[{"name":"","type":"*","links":null}],"properties":{"horizontal":false,"showOutputText":false}},{"id":-1,"pos":[2730,-220],"mode":0,"size":[197.712890625,46],"type":"ReferenceLatent","flags":{},"index":1,"order":22,"inputs":[{"link":null,"name":"conditioning","type":"CONDITIONING","localized_name":"conditioning"},{"link":null,"name":"latent","type":"LATENT","shape":7,"localized_name":"latent"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[],"localized_name":"CONDITIONING"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"ReferenceLatent"},"widgets_values":[]},{"id":-1,"pos":[3270,-110],"mode":0,"size":[210,46],"type":"VAEDecode","flags":{},"index":2,"order":25,"inputs":[{"link":null,"name":"samples","type":"LATENT","localized_name":"samples"},{"link":null,"name":"vae","type":"VAE","localized_name":"vae"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[],"slot_index":0,"localized_name":"IMAGE"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":-1,"pos":[2930,-110],"mode":0,"size":[315,262],"type":"KSampler","flags":{},"index":3,"order":24,"inputs":[{"link":null,"name":"model","type":"MODEL","localized_name":"model"},{"link":null,"name":"positive","type":"CONDITIONING","localized_name":"positive"},{"link":null,"name":"negative","type":"CONDITIONING","localized_name":"negative"},{"link":null,"name":"latent_image","type":"LATENT","localized_name":"latent_image"},{"link":null,"name":"seed","type":"INT","widget":{"name":"seed"},"localized_name":"seed"},{"link":null,"name":"steps","type":"INT","widget":{"name":"steps"},"localized_name":"steps"},{"link":null,"name":"cfg","type":"FLOAT","widget":{"name":"cfg"},"localized_name":"cfg"},{"link":null,"name":"sampler_name","type":"COMBO","widget":{"name":"sampler_name"},"localized_name":"sampler_name"},{"link":null,"name":"scheduler","type":"COMBO","widget":{"name":"scheduler"},"localized_name":"scheduler"},{"link":null,"name":"denoise","type":"FLOAT","widget":{"name":"denoise"},"localized_name":"denoise"}],"outputs":[{"name":"LATENT","type":"LATENT","links":[],"slot_index":0,"localized_name":"LATENT"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"KSampler"},"widgets_values":[972054013131369,"fixed",20,1,"euler","simple",1]},{"id":-1,"pos":[2940,-220],"mode":0,"size":[211.60000610351562,58],"type":"FluxGuidance","flags":{},"index":4,"order":23,"inputs":[{"link":null,"name":"conditioning","type":"CONDITIONING","localized_name":"conditioning"},{"link":null,"name":"guidance","type":"FLOAT","widget":{"name":"guidance"},"localized_name":"guidance"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[],"slot_index":0,"localized_name":"CONDITIONING"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"FluxGuidance"},"widgets_values":[2.5]},{"id":-1,"pos":[3490,-110],"mode":0,"size":[985.3012084960938,1060.3828125],"type":"SaveImage","flags":{},"index":5,"order":26,"inputs":[{"link":null,"name":"images","type":"IMAGE","localized_name":"images"},{"link":null,"name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"localized_name":"filename_prefix"}],"outputs":[],"properties":{"ver":"0.3.38","cnr_id":"comfy-core"},"widgets_values":["ComfyUI"]},{"id":-1,"pos":[2500,-110],"mode":0,"size":[422.84503173828125,164.31304931640625],"type":"CLIPTextEncode","color":"#232","flags":{},"index":6,"order":12,"title":"CLIP Text Encode (Positive Prompt)","inputs":[{"link":null,"name":"clip","type":"CLIP","localized_name":"clip"},{"link":null,"name":"text","type":"STRING","widget":{"name":"text"},"localized_name":"text"}],"bgcolor":"#353","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[],"slot_index":0,"localized_name":"CONDITIONING"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"CLIPTextEncode"},"widgets_values":["there is a bright light"]},{"id":-1,"pos":[2504.1435546875,97.9598617553711],"mode":0,"size":[422.84503173828125,164.31304931640625],"type":"CLIPTextEncode","color":"#322","flags":{"collapsed":true},"index":7,"order":13,"title":"CLIP Text Encode (Negative Prompt)","inputs":[{"link":null,"name":"clip","type":"CLIP","localized_name":"clip"},{"link":null,"name":"text","type":"STRING","widget":{"name":"text"},"localized_name":"text"}],"bgcolor":"#533","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[],"slot_index":0,"localized_name":"CONDITIONING"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"CLIPTextEncode"},"widgets_values":[""]},{"id":-1,"pos":[2630,-370],"mode":0,"size":[270,82],"type":"UNETLoader","color":"#223","flags":{},"index":8,"order":6,"inputs":[{"link":null,"name":"unet_name","type":"COMBO","widget":{"name":"unet_name"},"localized_name":"unet_name"},{"link":null,"name":"weight_dtype","type":"COMBO","widget":{"name":"weight_dtype"},"localized_name":"weight_dtype"}],"bgcolor":"#335","outputs":[{"name":"MODEL","type":"MODEL","links":[],"localized_name":"MODEL"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"UNETLoader"},"widgets_values":["preliminary-dev-kontext.sft","default"]},{"id":-1,"pos":[2100,-290],"mode":0,"size":[337.76861572265625,130],"type":"DualCLIPLoader","color":"#223","flags":{},"index":9,"order":8,"inputs":[{"link":null,"name":"clip_name1","type":"COMBO","widget":{"name":"clip_name1"},"localized_name":"clip_name1"},{"link":null,"name":"clip_name2","type":"COMBO","widget":{"name":"clip_name2"},"localized_name":"clip_name2"},{"link":null,"name":"type","type":"COMBO","widget":{"name":"type"},"localized_name":"type"},{"link":null,"name":"device","type":"COMBO","shape":7,"widget":{"name":"device"},"localized_name":"device"}],"bgcolor":"#335","outputs":[{"name":"CLIP","type":"CLIP","links":[],"localized_name":"CLIP"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"DualCLIPLoader"},"widgets_values":["clip_l.safetensors","t5xxl_fp16.safetensors","flux","default"]},{"id":-1,"pos":[2960,-370],"mode":0,"size":[270,58],"type":"VAELoader","color":"#223","flags":{},"index":10,"order":7,"inputs":[{"link":null,"name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"localized_name":"vae_name"}],"bgcolor":"#335","outputs":[{"name":"VAE","type":"VAE","links":[],"localized_name":"VAE"}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"VAELoader"},"widgets_values":["ae.safetensors"]}],"config":{"0":{},"1":{},"2":{"output":{"0":{"visible":true}}},"3":{"input":{"cfg":{"visible":false},"denoise":{"visible":false}},"output":{"0":{"visible":true}}},"4":{},"5":{},"6":{},"7":{"input":{"text":{"visible":false}}},"8":{},"9":{"input":{"type":{"visible":false}}},"10":{}},"external":[]}},"frontendVersion":"1.23.4","VHS_MetadataImage":true,"VHS_latentpreview":false,"VHS_KeepIntermediate":true,"VHS_latentpreviewrate":0},"links":[[23,8,0,9,0,"IMAGE"],[38,39,0,42,1,"LATENT"],[69,40,0,39,0,"IMAGE"],[73,85,0,86,0,"IMAGE"],[74,86,0,88,1,"LATENT"],[80,42,0,88,0,"CONDITIONING"],[96,101,0,85,0,"IMAGE"],[102,111,0,109,0,"IMAGE"],[115,109,0,123,0,"IMAGE"],[118,124,0,30,1,"INT"],[119,124,0,27,0,"INT"],[120,124,0,96,0,"*"],[121,124,1,30,2,"INT"],[122,124,1,27,1,"INT"],[123,124,1,97,0,"*"],[129,128,2,30,0,"MODEL"],[130,128,1,6,0,"CLIP"],[131,128,0,8,1,"VAE"],[132,128,0,39,1,"VAE"],[133,128,0,86,1,"VAE"],[137,101,0,111,1,"IMAGE"],[138,88,0,26,0,"CONDITIONING"],[140,6,0,42,0,"CONDITIONING"],[150,136,0,134,0,"*"],[152,137,0,135,1,"STRING"],[153,133,0,136,0,"*"],[154,111,0,136,1,"IMAGE"],[155,134,1,6,1,"STRING"],[156,30,0,138,0,"MODEL"],[157,26,0,138,1,"CONDITIONING"],[158,127,0,138,2,"CONDITIONING"],[160,138,0,8,0,"LATENT"],[161,70,0,138,4,"INT"],[162,6,0,127,0,"CONDITIONING"],[164,27,0,138,3,"LATENT"],[165,140,0,135,0,"STRING"],[166,135,0,136,4,"STRING"],[208,67,0,153,0,"IMAGE"],[209,124,0,153,2,"INT"],[210,124,1,153,3,"INT"],[211,153,0,154,0,"IMAGE"],[213,124,0,155,2,"INT"],[214,124,1,155,3,"INT"],[215,155,0,156,0,"IMAGE"],[217,87,0,155,0,"IMAGE"],[219,141,0,101,0,"IMAGE"],[220,153,0,111,0,"IMAGE"],[221,153,0,40,0,"IMAGE"],[222,87,0,158,0,"*"]],"nodes":[{"id":86,"pos":[1327.7210693359375,309.91204833984375],"mode":0,"size":[140,46],"type":"VAEEncode","color":"#223","flags":{},"order":32,"inputs":[{"link":73,"name":"pixels","type":"IMAGE","label":"pixels"},{"link":133,"name":"vae","type":"VAE","label":"vae"}],"bgcolor":"#335","outputs":[{"name":"LATENT","type":"LATENT","label":"LATENT","links":[74]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"VAEEncode"},"widgets_values":[]},{"id":42,"pos":[931.261474609375,423.2713623046875],"mode":0,"size":[211.60000610351562,46],"type":"ReferenceLatent","color":"#223","flags":{},"order":38,"inputs":[{"link":140,"name":"conditioning","type":"CONDITIONING","label":"conditioning"},{"link":38,"name":"latent","type":"LATENT","label":"latent","shape":7}],"bgcolor":"#335","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","label":"CONDITIONING","links":[80]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"ReferenceLatent"},"widgets_values":[]},{"id":76,"pos":[-1264.469970703125,185.66558837890625],"mode":0,"size":[510,400],"type":"MarkdownNote","color":"#223","flags":{},"order":0,"title":"Model links","inputs":[],"bgcolor":"#335","outputs":[],"properties":{},"widgets_values":["## Flux Kontext MODELS\n**diffusion model**\n\n- [flux1-dev-kontext_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/flux1-kontext-dev_ComfyUI/resolve/main/split_files/diffusion_models/flux1-dev-kontext_fp8_scaled.safetensors)\n\n**vae**\n\n- [ae.safetensors](https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/blob/main/split_files/vae/ae.safetensors)\n\n**text encoder**\n\n- [clip_l.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/blob/main/clip_l.safetensors)\n- [t5xxl_fp16.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors) or [t5xxl_fp8_e4m3fn_scaled.safetensors](https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn_scaled.safetensors)\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 diffusion_models/\n│   │   └── flux1-dev-kontext_fp8_scaled.safetensors\n│   ├── 📂 vae/\n│   │   └── ae.safetensor\n│   └── 📂 text_encoders/\n│       ├── clip_l.safetensors\n│       └── t5xxl_fp16.safetensors 或者 t5xxl_fp8_e4m3fn_scaled.safetensors\n```\n"]},{"id":97,"pos":[362.3786315917969,-347.3416748046875],"mode":0,"size":[210,88],"type":"PreviewAny","color":"#223","flags":{},"order":21,"title":"h","inputs":[{"link":123,"name":"source","type":"*"}],"bgcolor":"#335","outputs":[],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"PreviewAny"},"widgets_values":[]},{"id":88,"pos":[1284.67529296875,417.93011474609375],"mode":0,"size":[211.60000610351562,46],"type":"ReferenceLatent","color":"#223","flags":{},"order":40,"inputs":[{"link":80,"name":"conditioning","type":"CONDITIONING","label":"conditioning"},{"link":74,"name":"latent","type":"LATENT","label":"latent","shape":7}],"bgcolor":"#335","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","label":"CONDITIONING","links":[138]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"ReferenceLatent"},"widgets_values":[]},{"id":111,"pos":[1612.011474609375,-397.69427490234375],"mode":0,"size":[270,150],"type":"ImageStitch","color":"#223","flags":{},"order":30,"inputs":[{"link":220,"name":"image1","type":"IMAGE"},{"link":137,"name":"image2","type":"IMAGE","shape":7}],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","links":[102,154]}],"properties":{"ver":"0.3.40","cnr_id":"comfy-core","Node name for S&R":"ImageStitch"},"widgets_values":["right",true,0,"white"]},{"id":134,"pos":[-677.130126953125,43.49173355102539],"mode":0,"size":[447.3528747558594,310.99517822265625],"type":"LLMToolkitTextGeneratorStream","color":"#223","flags":{},"order":36,"inputs":[{"link":150,"name":"context","type":"*","shape":7}],"bgcolor":"#335","outputs":[{"name":"context","type":"*","links":[]},{"name":"text","type":"STRING","links":[155]}],"properties":{"ver":"1.0.2","cnr_id":"llm-toolkit","Node name for S&R":"LLMToolkitTextGeneratorStream"},"widgets_values":["gpt-4.1-mini","Write a detailed description of a futuristic city.","Create the character from Image 2 in a realistic style, using the muscular physique, detailed skin texture, and lifelike lighting from Image 1. Preserve the character's iconic green tunic, hat, brown boots, and leather belts with realistic fabric and leather textures. Maintain the original pose and sword-and-shield stance while converting facial features and hair to a natural human appearance, blending fantasy elements with the realism evident in Image 1.","Make the girl hold the staff in her right hand, positioning it naturally with her fingers wrapped around the shaft and the top ornament visible. Place the book securely under her left arm, angled to fit the arm's curve realistically. Restyle both the staff and book with matching lighting, shadows, and textures to blend seamlessly with the scene, preserving her pose, facial expression, and overall composition exactly as in Image 1."]},{"id":131,"pos":[-66.5099868774414,-447.21185302734375],"mode":0,"size":[334.0944519042969,132.49005126953125],"type":"MarkdownNote","color":"#232","flags":{},"order":1,"title":"SIZES","inputs":[],"bgcolor":"#353","outputs":[],"properties":{},"widgets_values":["\"IMG\": \n\n\"Horizontal\": \n\n\"HQ\": (1600, 900), \n\"MQ\": (1280, 720), \n\"LQ\": (1024, 576)},\n            \n\"Vertical\":   \n\"HQ\": (900, 1600), \n\"MQ\": (720, 1280), \n\"LQ\": (576, 1024)\n            \n\"Squarish\":   \n\"HQ\": (1600, 1600), \n\"MQ\": (1024, 1024), \n\"LQ\": (512, 512)\n            \n\"Cinematic\":  \n\"HQ\": (1600, 688), \n\"MQ\": (1280, 550), \n\"LQ\": (1024, 440), \n        \n"]},{"id":132,"pos":[-1256.4454345703125,-344.1705322265625],"mode":0,"size":[419.16943359375,275.8766784667969],"type":"Note","color":"#223","flags":{},"order":2,"title":"Guide","inputs":[],"bgcolor":"#335","outputs":[],"properties":{},"widgets_values":["\n1-. SELLECT SIZE\n\n2-.CONSTRUCT YOUR PROMPT \n\n3-.SELECT THE REFERENCES BY ENABLE/DISSABLE CONCEPTS IMAGES\n\n4-.PRESS RUN\n\nYOU CAN USE THIS WORKFLOW WITH UP tO THREE iMAGES DISSABLE THE gROUPS CONCEPTS YOU DON'T NEED \n\nConcept1-. FIRST IMAGE IS THE MAIN SUBJECT YOU WANT TO EDIT OR WORK FROM\n\nConcept2-. SECOND IS FOR A PROP OR COSTUME OR A STYLE YOU WANT TO REPLICATE\n\ndISSABLE CONCEPT2 GROUP TO USE ONLY ONE REFERENCE\nDISSABLE Background removal if you want to keep the bg information"]},{"id":102,"pos":[-1248.0086669921875,-22.100133895874023],"mode":0,"size":[390.7500915527344,159.8812713623047],"type":"MarkdownNote","color":"#223","flags":{},"order":3,"inputs":[],"bgcolor":"#335","outputs":[],"properties":{},"widgets_values":["Download the model from [HuggingFace](https://huggingface.co/mit-han-lab/nunchaku-flux.1-kontext-dev) or [ModelScope](https://modelscope.cn/models/Lmxyy1999/nunchaku-flux.1-kontext-dev).\n\n- Use the **FP4** variant if you're running on **Blackwell (50-series) GPUs**.\n- Otherwise, choose the **INT4** version for better compatibility.\n\nYou can adjust the `cache_threshold` parameter to balance **image quality** and **inference speed**. A value of `0.12` typically offers a good trade-off.\n\nEnable `cpu_offload` to **save GPU memory** if you're running into memory limits.\n\nThe Turbo LoRA can be found at this [HuggingFace Repo](https://huggingface.co/alimama-creative/FLUX.1-Turbo-Alpha)."]},{"id":70,"pos":[-83.88156127929688,239.82498168945312],"mode":0,"size":[400,200],"type":"ComfyUIDeployExternalNumberInt","color":"#232","flags":{"collapsed":true},"order":4,"inputs":[],"bgcolor":"#353","outputs":[{"name":"value","type":"INT","links":[161]}],"properties":{"ver":"089bad55605392860e59476a4c2765bfc772750b","cnr_id":"comfyui-deploy","Node name for S&R":"ComfyUIDeployExternalNumberInt"},"widgets_values":["noise_seed",2147483225,"",""]},{"id":109,"pos":[1613.786376953125,-473.7441101074219],"mode":0,"size":[270,30],"type":"FluxKontextImageScale","color":"#223","flags":{"collapsed":false},"order":33,"inputs":[{"link":102,"name":"image","type":"IMAGE"}],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","links":[115]}],"properties":{"ver":"0.3.38","cnr_id":"comfy-core","Node name for S&R":"FluxKontextImageScale"},"widgets_values":[]},{"id":115,"pos":[1611.7578125,-195.20407104492188],"mode":0,"size":[282.76934814453125,220.15380859375],"type":"MarkdownNote","color":"#223","flags":{},"order":5,"title":"About multiple images reference","inputs":[],"bgcolor":"#335","outputs":[],"properties":{},"widgets_values":["[English] In addition to using **Image Stitch** to combine two images at a time, you can also encode individual images, then concatenate multiple latent conditions using the **ReferenceLatent** node, thus achieving the purpose of referencing multiple images. You can use the **EmptySD3LatentImage** node on the right to connect to **KSamper** and customize the size of the **latent_image**.\n\n[中文] 除了使用 **Image Stitch** 将两个两个图像拼合之外，你同样可以将单独的图像 encode 之后，将多个 latent 条件使用 **ReferenceLatent** 节点串联，从而实现多张图像参考的目的。可以使用右边的 **EmptySD3LatentImage** 节点连接到 **KSamper**来自定义 **latent_image** 的尺寸"]},{"id":123,"pos":[1952.6175537109375,-382.1723937988281],"mode":0,"size":[313.1206970214844,302.67950439453125],"type":"PreviewImage","color":"#223","flags":{},"order":35,"inputs":[{"link":115,"name":"images","type":"IMAGE"}],"bgcolor":"#335","outputs":[],"properties":{"ver":"0.3.40","cnr_id":"comfy-core","Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":26,"pos":[1330.21337890625,563.4288940429688],"mode":0,"size":[270,58],"type":"FluxGuidance","color":"#223","flags":{},"order":41,"inputs":[{"link":138,"name":"conditioning","type":"CONDITIONING","label":"conditioning"}],"bgcolor":"#335","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","label":"CONDITIONING","links":[157]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"FluxGuidance"},"widgets_values":[2.5]},{"id":30,"pos":[887.9183959960938,547.4077758789062],"mode":0,"size":[270,130],"type":"ModelSamplingFlux","color":"#223","flags":{},"order":19,"inputs":[{"link":129,"name":"model","type":"MODEL","label":"model"},{"link":118,"name":"width","type":"INT","widget":{"name":"width"}},{"link":121,"name":"height","type":"INT","widget":{"name":"height"}}],"bgcolor":"#335","outputs":[{"name":"MODEL","type":"MODEL","label":"MODEL","links":[156]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"ModelSamplingFlux"},"widgets_values":[1.3500000000000003,0.45000000000000007,1024,512]},{"id":127,"pos":[1374.321044921875,677.8544921875],"mode":0,"size":[240,26],"type":"ConditioningZeroOut","color":"#223","flags":{"collapsed":false},"order":39,"inputs":[{"link":162,"name":"conditioning","type":"CONDITIONING"}],"bgcolor":"#335","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[158]}],"properties":{"ver":"0.3.39","cnr_id":"comfy-core","Node name for S&R":"ConditioningZeroOut"},"widgets_values":[]},{"id":96,"pos":[360.3193359375,-481.0399169921875],"mode":0,"size":[210,88],"type":"PreviewAny","color":"#223","flags":{},"order":18,"title":"w","inputs":[{"link":120,"name":"source","type":"*"}],"bgcolor":"#335","outputs":[],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"PreviewAny"},"widgets_values":[]},{"id":94,"pos":[605.6663818359375,-489.8450012207031],"mode":0,"size":[227.1779022216797,196.51930236816406],"type":"Note","color":"#223","flags":{},"order":6,"inputs":[],"bgcolor":"#335","outputs":[],"properties":{},"widgets_values":["YOU CAN USE THIS WORKFLOW WITH UP tO TWO iMAGES DISSABLE THE gROUPS CONCEPTS YOU DON'T NEED \n\n1-. FIRST IMAGE IS THE MAIN SUBJECT YOU WANT TO EDIT OR WORK FROM\n\n2-. SECOND IS FOR A PROP OR COSTUME OR A STYLE YOU WANT TO REPLICATE\n\n3-. Dissable The BirefNet BACKGROUND Romover if you want to include the image BG"]},{"id":129,"pos":[-1681.726318359375,-361.2706298828125],"mode":0,"size":[386.6929626464844,971.653564453125],"type":"MarkdownNote","color":"#223","flags":{},"order":7,"title":"Flux Kontext Prompt Techniques","inputs":[],"bgcolor":"#335","outputs":[],"properties":{},"widgets_values":["\n## Flux Kontext Prompt Techniques\n\n### 1. Basic Modifications\n- Simple and direct: `\"Change the car color to red\"`\n- Maintain style: `\"Change to daytime while maintaining the same style of the painting\"`\n\n### 2. Style Transfer\n**Principles:**\n- Clearly name style: `\"Transform to Bauhaus art style\"`\n- Describe characteristics: `\"Transform to oil painting with visible brushstrokes, thick paint texture\"`\n- Preserve composition: `\"Change to Bauhaus style while maintaining the original composition\"`\n\n### 3. Character Consistency\n**Framework:**\n- Specific description: `\"The woman with short black hair\"` instead of \"she\"\n- Preserve features: `\"while maintaining the same facial features, hairstyle, and expression\"`\n- Step-by-step modifications: Change background first, then actions\n\n### 4. Text Editing\n- Use quotes: `\"Replace 'joy' with 'BFL'\"`\n- Maintain format: `\"Replace text while maintaining the same font style\"`\n\n## Common Problem Solutions\n\n### Character Changes Too Much\n❌ Wrong: `\"Transform the person into a Viking\"`\n✅ Correct: `\"Change the clothes to be a viking warrior while preserving facial features\"`\n\n### Composition Position Changes\n❌ Wrong: `\"Put him on a beach\"`\n✅ Correct: `\"Change the background to a beach while keeping the person in the exact same position, scale, and pose\"`\n\n### Style Application Inaccuracy\n❌ Wrong: `\"Make it a sketch\"`\n✅ Correct: `\"Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture\"`\n\n## Core Principles\n\n1. **Be Specific and Clear** - Use precise descriptions, avoid vague terms\n2. **Step-by-step Editing** - Break complex modifications into multiple simple steps\n3. **Explicit Preservation** - State what should remain unchanged\n4. **Verb Selection** - Use \"change\", \"replace\" rather than \"transform\"\n\n## Best Practice Templates\n\n**Object Modification:**\n`\"Change [object] to [new state], keep [content to preserve] unchanged\"`\n\n**Style Transfer:**\n`\"Transform to [specific style], while maintaining [composition/character/other] unchanged\"`\n\n**Background Replacement:**\n`\"Change the background to [new background], keep the subject in the exact same position and pose\"`\n\n**Text Editing:**\n`\"Replace '[original text]' with '[new text]', maintain the same font style\"`\n\n> **Remember:** The more specific, the better. Kontext excels at understanding detailed instructions and maintaining consistency. "]},{"id":9,"pos":[2042.1337890625,37.119407653808594],"mode":0,"size":[574.2508544921875,638.193603515625],"type":"SaveImage","color":"#223","flags":{},"order":44,"inputs":[{"link":23,"name":"images","type":"IMAGE","label":"images"}],"bgcolor":"#335","outputs":[],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"SaveImage"},"widgets_values":["comfydeploy_FAST_kontext_raw_"]},{"id":6,"pos":[342.7961120605469,-49.51755905151367],"mode":0,"size":[405.7644958496094,178.77420043945312],"type":"CLIPTextEncode","color":"#223","flags":{},"order":37,"title":"Positive Prompt","inputs":[{"link":130,"name":"clip","type":"CLIP","label":"clip"},{"link":155,"name":"text","type":"STRING","widget":{"name":"text"}}],"bgcolor":"#335","outputs":[{"name":"CONDITIONING","type":"CONDITIONING","label":"CONDITIONING","links":[140,162]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"CLIPTextEncode"},"widgets_values":["tHE MAGICAL GIRL IS HOLDING THE STAFF IN FRONT OF THE CASTLE TOWER"]},{"id":39,"pos":[971.1128540039062,303.54046630859375],"mode":0,"size":[140,46],"type":"VAEEncode","color":"#223","flags":{},"order":31,"inputs":[{"link":69,"name":"pixels","type":"IMAGE","label":"pixels"},{"link":132,"name":"vae","type":"VAE","label":"vae"}],"bgcolor":"#335","outputs":[{"name":"LATENT","type":"LATENT","label":"LATENT","links":[38]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"VAEEncode"},"widgets_values":[]},{"id":27,"pos":[466.3839111328125,-194.46539306640625],"mode":0,"size":[270,106],"type":"EmptySD3LatentImage","color":"#223","flags":{},"order":20,"inputs":[{"link":119,"name":"width","type":"INT","widget":{"name":"width"}},{"link":122,"name":"height","type":"INT","widget":{"name":"height"}}],"bgcolor":"#335","outputs":[{"name":"LATENT","type":"LATENT","label":"LATENT","links":[164]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"EmptySD3LatentImage"},"widgets_values":[1024,1536,1]},{"id":136,"pos":[-670.5059814453125,-312.2716979980469],"mode":0,"size":[429.72283935546875,293.3409423828125],"type":"PromptManager","color":"#223","flags":{},"order":34,"inputs":[{"link":153,"name":"context","type":"*","shape":7},{"link":154,"name":"image","type":"IMAGE","shape":7},{"link":null,"name":"mask","type":"MASK","shape":7},{"link":null,"name":"video","type":"IMAGE","shape":7},{"link":166,"name":"text_prompt","type":"STRING","shape":7,"widget":{"name":"text_prompt"}}],"bgcolor":"#335","outputs":[{"name":"context","type":"*","links":[150]}],"properties":{"ver":"3d82dbfe091d84868212e5f275deb5447fa4e659","cnr_id":"llm-toolkit","Node name for S&R":"PromptManager","widget_ue_connectable":{}},"widgets_values":["📏 Ultra-Compact System Prompt – Kontext Stitched-Image Editing\nRole: Produce one concise instruction for Kontext given:\n\nStitched input (largest tile = main image to edit; smaller tiles = references).\n\nTask type (one of: quick_edit · style_transfer · style_transform · text_edit · visual_cue).\n\nRules (87 tokens total)\n\n• Identify main subject in largest tile; keep pose, scale, identity.\n• Use smaller tiles only as style/obj/background cues.\n• For quick_edit → name exact change + preserve rest.\n• For style_transfer → “apply style of ref tile to ⟨area⟩, keep composition”.\n• For style_transform → describe new style traits, list what stays unchanged.\n• For text_edit → Replace 'old' with 'new', keep font/placement unless told.\n• For visual_cue → mention target region (“in the box”, “top-left corner”).\n• One or two sentences max,  ≤450 tokens, explicit nouns, no pronouns.\nOutput template:\n<instruction sentence(s)>\n","","",""]},{"id":135,"pos":[-519.83447265625,420.1432800292969],"mode":0,"size":[270,150],"type":"JoinStringMulti","color":"#223","flags":{},"order":17,"inputs":[{"link":165,"name":"string_1","type":"STRING"},{"link":152,"name":"string_2","type":"STRING"}],"bgcolor":"#335","outputs":[{"name":"string","type":"STRING","links":[166]}],"properties":{"ver":"f9118e0bbb39347ea7becb84ec03e397dfb4f644","cnr_id":"comfyui-kjnodes","Node name for S&R":"JoinStringMulti"},"widgets_values":[2," ",false,null]},{"id":140,"pos":[-674.702392578125,488.0023193359375],"mode":0,"size":[405.1305847167969,302.01422119140625],"type":"ComfyUIDeployExternalText","color":"#223","flags":{"collapsed":true},"order":8,"title":"SYSTEM","inputs":[],"bgcolor":"#335","outputs":[{"name":"text","type":"STRING","links":[165]}],"properties":{"ver":"b889f79baf9e099d5e54bd20bab4aa1e7c3296c0","cnr_id":"comfyui-deploy","Node name for S&R":"ComfyUIDeployExternalText","widget_ue_connectable":{}},"widgets_values":["SYSTEM_PROMPT"," You are Kontext, a master artist who converts editing requests into a single, flowing paragraph of exactly 70 words. Every user request arrives with two images:\n\nImage 1 – Subject. This is the frame that must be edited.\n\nImage 2 – Reference. Provide background, style, texture, palette, or any other visual attribute the task demands.\n\nTask-Resolution Logic\n• change/replace background → substitute Image 1’s backdrop; keep Image 1’s subject unchanged; set new backdrop from Image 2\n• restyle / apply style / transfer style → style-transfer onto Image 1; extract colours, brushwork, medium, lighting cues from Image 2\n• simple/object modification → edit only the named object in Image 1; ignore Image 2 unless explicitly referenced\n• text editing → replace characters or words in Image 1; copy fonts and formatting from Image 1; Image 2 unused unless asked\n\nIf multiple actions are needed, narrate them step-by-step within the 70-word limit.\n\nWriting Rules\n\nBe specific and clear – name objects, colours, styles precisely.\n\nExplicit preservation – state what remains unchanged (pose, facial features, composition).\n\nSequential editing – describe edits in logical order (background, then attire, then lighting).\n\nApproved verbs – change, replace, convert, adjust; avoid vague verbs like transform unless paired with detail.\n\nCharacter consistency – use clear identifiers (“the woman with short black hair”) and preserve features.\n\nQuotes for text edits – put new and old text in quotes; keep font and layout intact.\n\nBest-Practice Templates\nBackground replacement: “Change the background to [new setting] from Image 2, keep the subject in the exact same position and pose.”\nStyle transfer: “Convert Image 1 to [specific style from Image 2] while maintaining composition, proportions, and lighting.”\nObject modification: “Change [object] in Image 1 to [new state], keep all else unchanged.”\nText editing: “Replace ‘[original]’ with ‘[new]’, preserve original font and placement.”\n\nNow the user will pass the REQUEST:\n","MANUA_PROMPT ","You can enter a small prompt indicating what you want and the AI will create a good prompt for kontext following an appropiate rule and kontext task. \n\nIF there is no OPENAI_API_KEY on the machine secrets. You will need to enter your full prompt manually \n\nOtherwise you can use this to add a The Task to be preform by the model for example \"replace the cat from image1 with the dog on image2\" \n\nshe is wearing the same clothes but it has the logo on the swimsuit make sure it looks well integrated and part of the same material with the fabric and not just an overlay the logo should wrap with the swinsuit to the body of the model "]},{"id":133,"pos":[-672.8041381835938,-510.5657958984375],"mode":4,"size":[318.5337829589844,154],"type":"LLMToolkitProviderSelector","color":"#223","flags":{},"order":9,"inputs":[{"link":null,"name":"context","type":"*","shape":7}],"bgcolor":"#335","outputs":[{"name":"context","type":"*","links":[153]}],"properties":{"ver":"1.0.2","cnr_id":"llm-toolkit","llm_model":"Qwen/Qwen2.5-VL-3B-Instruct-AWQ","Node name for S&R":"LLMToolkitProviderSelector"},"widgets_values":["transformers","Qwen/Qwen2.5-VL-3B-Instruct-AWQ","localhost","11434",""]},{"id":8,"pos":[1675.590576171875,664.664306640625],"mode":0,"size":[140,46],"type":"VAEDecode","color":"#223","flags":{},"order":43,"inputs":[{"link":160,"name":"samples","type":"LATENT","label":"samples"},{"link":131,"name":"vae","type":"VAE","label":"vae"}],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","label":"IMAGE","links":[23]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":137,"pos":[-129.86720275878906,-13.221353530883789],"mode":0,"size":[405.1305847167969,302.01422119140625],"type":"ComfyUIDeployExternalText","color":"#232","flags":{},"order":10,"title":"PROMPT","inputs":[],"bgcolor":"#353","outputs":[{"name":"text","type":"STRING","links":[152]}],"properties":{"ver":"b889f79baf9e099d5e54bd20bab4aa1e7c3296c0","cnr_id":"comfyui-deploy","Node name for S&R":"ComfyUIDeployExternalText","widget_ue_connectable":{}},"widgets_values":["MANUAL_PROMPT","make the girl hold the staff on her right hand staff and hold the book under her left arm book and restyle the objects to be integrated on the image and look realistic","MANUAL_PROMPT ","make the girl hold the staff on her right hand staff and hold the book under her left arm book and restyle the objects to be integrated on the image and look realistic\n\n\n\nYou can enter a small prompt indicating what you want and the AI will create a good prompt for kontext following an appropiate rule and kontext task. \n\nIF there is no OPENAI_API_KEY on the machine secrets. You will need to enter your full prompt manually \n\nOtherwise you can use this to add a The Task to be preform by the model for example \"replace the cat from image1 with the dog on image2\" \n\nshe is wearing the same clothes but it has the logo on the swimsuit make sure it looks well integrated and part of the same material with the fabric and not just an overlay the logo should wrap with the swinsuit to the body of the model "]},{"id":138,"pos":[1642.68115234375,119.92922973632812],"mode":0,"size":[270,474],"type":"KSampler","color":"#223","flags":{},"order":42,"inputs":[{"link":156,"name":"model","type":"MODEL"},{"link":157,"name":"positive","type":"CONDITIONING"},{"link":158,"name":"negative","type":"CONDITIONING"},{"link":164,"name":"latent_image","type":"LATENT"},{"link":161,"name":"seed","type":"INT","widget":{"name":"seed"}}],"bgcolor":"#335","outputs":[{"name":"LATENT","type":"LATENT","links":[160]}],"properties":{"Node name for S&R":"KSampler"},"widgets_values":[157423625540564,"randomize",10,1,"euler","simple",1]},{"id":128,"pos":[346.3470153808594,199.25836181640625],"mode":0,"size":[270,410],"type":"workflow>NUNCHAKU_MODEL","color":"#223","flags":{},"order":11,"inputs":[],"bgcolor":"#335","outputs":[{"name":"VAE","type":"VAE","links":[131,132,133]},{"name":"CLIP","type":"CLIP","links":[130]},{"name":"MODEL","type":"MODEL","links":[129]}],"properties":{"Node name for S&R":"workflow>NUNCHAKU_MODEL"},"widgets_values":["ae.safetensors","clip_l.safetensors","t5xxl_fp16.safetensors","flux","default","nunchaku-flux.1-kontext-dev/svdq-int4_r32-flux.1-kontext-dev.safetensors",0.010000000000000002,"flash-attention2","auto",0,"bfloat16","enabled","FLUX.1-turbo-Alpha.safetensors",0.8500000000000002]},{"id":124,"pos":[-45.243186950683594,-202.26165771484375],"mode":0,"size":[301.4302673339844,126],"type":"ResolutionSelector","color":"#232","flags":{},"order":12,"inputs":[],"bgcolor":"#353","outputs":[{"name":"width","type":"INT","links":[118,119,120,209,213]},{"name":"height","type":"INT","links":[121,122,123,210,214]}],"properties":{"ver":"1.0.2","cnr_id":"llm-toolkit","Node name for S&R":"ResolutionSelector"},"widgets_values":["IMG","Vertical","MQ"]},{"id":156,"pos":[2691.5205078125,-611.2672119140625],"mode":0,"size":[140,246],"type":"PreviewImage","flags":{},"order":26,"inputs":[{"link":215,"name":"images","type":"IMAGE"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":153,"pos":[1034.745849609375,-87.70429229736328],"mode":0,"size":[270.5856628417969,286],"type":"ImageResizeKJv2","color":"#223","flags":{"collapsed":true},"order":24,"inputs":[{"link":208,"name":"image","type":"IMAGE"},{"link":null,"name":"mask","type":"MASK","shape":7},{"link":209,"name":"width","type":"INT","widget":{"name":"width"}},{"link":210,"name":"height","type":"INT","widget":{"name":"height"}}],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","links":[211,220,221]},{"name":"width","type":"INT","links":null},{"name":"height","type":"INT","links":null},{"name":"mask","type":"MASK","links":null}],"properties":{"Node name for S&R":"ImageResizeKJv2"},"widgets_values":[512,512,"nearest-exact","resize","0, 0, 0","center",2,"cpu"]},{"id":85,"pos":[1290.333984375,260.6885681152344],"mode":0,"size":[187.75448608398438,26],"type":"FluxKontextImageScale","color":"#223","flags":{"collapsed":true},"order":29,"inputs":[{"link":96,"name":"image","type":"IMAGE","label":"image"}],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","label":"IMAGE","links":[73]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"FluxKontextImageScale"},"widgets_values":[]},{"id":40,"pos":[940.7650146484375,270.0334777832031],"mode":0,"size":[187.75448608398438,34.338279724121094],"type":"FluxKontextImageScale","color":"#223","flags":{"collapsed":true},"order":28,"inputs":[{"link":221,"name":"image","type":"IMAGE","label":"image"}],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","label":"IMAGE","links":[69]}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"FluxKontextImageScale"},"widgets_values":[]},{"id":101,"pos":[1227.4219970703125,-46.484439849853516],"mode":0,"size":[340,254],"type":"BiRefNetRMBG","color":"#223","flags":{},"order":25,"inputs":[{"link":219,"name":"image","type":"IMAGE"},{"link":null,"name":"background_color","type":"COLOR","shape":7}],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","links":[96,137]},{"name":"MASK","type":"MASK","links":null},{"name":"MASK_IMAGE","type":"IMAGE","links":null}],"properties":{"ver":"8577848f31ed7dcf19b920451e7e90fad17cbc3b","cnr_id":"comfyui-rmbg","Node name for S&R":"BiRefNetRMBG"},"widgets_values":["BiRefNet-general",0,0,false,false,"Alpha"]},{"id":154,"pos":[2451.151123046875,-600.69287109375],"mode":0,"size":[140,246],"type":"PreviewImage","flags":{},"order":27,"inputs":[{"link":211,"name":"images","type":"IMAGE"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":158,"pos":[1576.70166015625,-736.9996337890625],"mode":4,"size":[75,26],"type":"Reroute","flags":{},"order":23,"inputs":[{"link":222,"name":"","type":"*"}],"outputs":[{"name":"","type":"IMAGE","links":null}],"properties":{"horizontal":false,"showOutputText":false}},{"id":155,"pos":[1379.557373046875,-96.87175750732422],"mode":0,"size":[270,286],"type":"ImageResizeKJv2","color":"#223","flags":{"collapsed":true},"order":22,"inputs":[{"link":217,"name":"image","type":"IMAGE"},{"link":null,"name":"mask","type":"MASK","shape":7},{"link":213,"name":"width","type":"INT","widget":{"name":"width"}},{"link":214,"name":"height","type":"INT","widget":{"name":"height"}}],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","links":[215]},{"name":"width","type":"INT","links":null},{"name":"height","type":"INT","links":null},{"name":"mask","type":"MASK","links":null}],"properties":{"Node name for S&R":"ImageResizeKJv2"},"widgets_values":[512,512,"nearest-exact","resize","0, 0, 0","center",2,"cpu"]},{"id":87,"pos":[1271.0023193359375,-929.7086181640625],"mode":0,"size":[274.080078125,314],"type":"LoadImage","color":"#223","flags":{},"order":13,"inputs":[],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","links":[217,222]},{"name":"MASK","type":"MASK","links":null}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"LoadImage"},"widgets_values":["72a92303-6e94-4796-b93f-5638ad6ec36a.jpg","image"]},{"id":67,"pos":[884.3648681640625,-475.2529296875],"mode":0,"size":[274.080078125,314],"type":"LoadImage","color":"#223","flags":{},"order":14,"inputs":[],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","links":[208]},{"name":"MASK","type":"MASK","links":null}],"properties":{"ver":"0.3.43","cnr_id":"comfy-core","Node name for S&R":"LoadImage"},"widgets_values":["fd7f544d-86fb-41b1-90f4-c8c685b8bc12.jpg","image"]},{"id":141,"pos":[1245.11376953125,-498.86517333984375],"mode":0,"size":[274.080078125,362],"type":"LoadImageOutput","color":"#223","flags":{},"order":15,"inputs":[],"bgcolor":"#335","outputs":[{"name":"IMAGE","type":"IMAGE","links":[219]},{"name":"MASK","type":"MASK","links":null}],"properties":{"Node name for S&R":"LoadImageOutput"},"widgets_values":["_output_images_will_be_put_here [output]",false,"refresh","image"]},{"id":159,"pos":[556.3155517578125,-1194.2506103515625],"mode":0,"size":[603.4553833007812,591.9759521484375],"type":"MarkdownNote","color":"#432","flags":{},"order":16,"inputs":[],"bgcolor":"#653","outputs":[],"properties":{},"widgets_values":["Here's the `.md` documentation with image steps:\n\n---\n\n# 🧩 Image Integration Workflow – Kontext I2I in ComfyUI\n\nThis guide shows a 3-step process to integrate objects (staff & book) into a main character image using ComfyUI and Kontext-style workflows.\n\n---\n\n## **Step 1: Setup Concept Nodes**\n\n![Step 1](chrome_8bMhkYwbeg.png)\n\n* Disable `Concept2` to isolate editing.\n* Load the **object assets** (staff + book) under `Concept1`.\n* Tweak them for realism and clarity before integration.\n\n---\n\n## **Step 2: Load and Prepare Images**\n\n![Step 2](chrome_tNC6frjc3B.png)\n\n* Load the **main character image** in `Concept1`.\n* Use resize/RMBG/other preprocessing nodes.\n* Load the refined staff + book version (from Step 1).\n\n---\n\n## **Step 3: Generate Final Integration**\n\n![Step 3](chrome_cCtK1i1bOs.png)\n\n* Enable `Concept2` to perform the full integration.\n* Output: character holding the enhanced assets with clean compositing.\n\n---\n\nYou can modify:\n\n* Pose or angle\n* Props and outfit\n* Style adaptation between concepts\n\nUse this process iteratively by switching one `Concept` at a time to refine before integration.\n\n---\n\nhttps://i.imgur.com/kAvnX2p.png\n"]}],"config":{},"groups":[{"id":1,"color":"#88A","flags":{},"title":"Compcept1","bounding":[848.9478759765625,-538.153076171875,360,1017.4244384765625],"font_size":24},{"id":2,"color":"#88A","flags":{},"title":"Compcept2","bounding":[1217.4219970703125,-572.4651489257812,360,1046.395263671875],"font_size":24},{"id":3,"color":"#88A","flags":{},"title":"PROMPT","bounding":[-687.130126953125,-574.5657958984375,467.3528747558594,1154.7088623046875],"font_size":24},{"id":4,"color":"#8A8","flags":{},"title":"USER_CONTROLS","bounding":[-144.83094787597656,-275.8616638183594,424.3004150390625,873.6792602539062],"font_size":24}],"version":0.4,"revision":0,"environment":{"gpu":"L40S","extra_args":"--use-sage-attention","run_timeout":300,"machine_hash":"ccc387e267dd0540e6c41034fc180b732d1ef2db352c083bbd48c6ad3192fe74","max_containers":1,"min_containers":0,"python_version":"3.11","comfyui_version":"e18f53cca9062cc6b165e16712772437b80333f2","disable_metadata":true,"prestart_command":"","scaledown_window":60,"base_docker_image":null,"docker_command_steps":{"steps":[{"id":"37e9a26b-f","data":"\n\n# Set CUDA architecture for L40s\nENV TORCH_CUDA_ARCH_LIST=8.9\n\n# Set up CUDA environment variables\nENV CUDA_HOME=/usr/local/cuda\nENV PATH=/usr/local/cuda/bin:${PATH}\nENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH:-}\nENV CUDA_LAUNCH_BLOCKING=1\nENV TORCH_USE_CUDA_DSA=1\n","type":"commands"},{"id":"2616be6e-f","data":"# Fix temp directory permissions for Modal\nRUN mkdir -p /tmp && chmod 1777 /tmp","type":"commands"},{"id":"fe097e03-d","data":"# Install system dependencies. Keeping this simple as the environment is Debian\n# and we are no longer compiling flash-attn from source.\nRUN apt-get update && \\\n    apt-get install -y --no-install-recommends \\\n    python3 \\\n    python3-pip \\\n    git \\\n    git-lfs \\\n    curl \\\n    aria2 \\\n    ffmpeg \\\n    poppler-utils \\\n    && rm -rf /var/lib/apt/lists/*","type":"commands"},{"id":"93215c56-4","data":"# Python environment setup\nRUN python3 -m pip install --upgrade pip setuptools wheel","type":"commands"},{"id":"ed33c547-8","data":"# Should be Already correct as per default image\n#RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu128","type":"commands"},{"id":"ecc8d520-7","data":"# Install ML dependencies\n# make sure Triton (the JIT‐based kernel compiler) is installed\nRUN pip install --no-cache-dir triton>=3.3.0\n\n# install SageAttention2 from PyPI (will pull a linux_x86_64 wheel—no nvcc needed)\nRUN pip install --no-cache-dir sageattention\n\nRUN pip3 install transformers ninja","type":"commands"},{"id":"c468aa20-6","data":"# FINAL FIX: Install the pre-compiled wheel directly. This avoids\n# the need for the nvcc compiler which is missing in the build environment.\nRUN pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu12torch2.6cxx11abiTRUE-cp311-cp311-linux_x86_64.whl","type":"commands"},{"id":"7a144547-0","data":"# NUNCHAKU\nRUN pip install https://github.com/mit-han-lab/nunchaku/releases/download/v0.3.2dev20250707/nunchaku-0.3.2.dev20250707+torch2.7-cp311-cp311-linux_x86_64.whl","type":"commands"},{"id":"6b52c0ac-0","data":{"url":"https://github.com/kijai/ComfyUI-KJNodes","hash":"5c19bd835a73fe49db91a02e0d61605269e3f0cf","meta":{"message":"typo","committer":{"date":"2025-07-06T20:57:29.000Z","name":"kijai","email":"40791699+kijai@users.noreply.github.com"},"commit_url":"https://github.com/kijai/ComfyUI-KJNodes/commit/5c19bd835a73fe49db91a02e0d61605269e3f0cf","latest_hash":"5c19bd835a73fe49db91a02e0d61605269e3f0cf","stargazers_count":1512},"name":"KJNodes for ComfyUI","files":[],"install_type":"git-clone"},"type":"custom-node"},{"id":"02184577-1","data":{"url":"https://github.com/1038lab/ComfyUI-RMBG","hash":"9fb0be165d317ff70d40c051199276cb06ffa07d","meta":{"message":"Update pyproject.toml","committer":{"date":"2025-07-02T06:23:54.000Z","name":"GitHub","email":"noreply@github.com"},"commit_url":"https://github.com/1038lab/ComfyUI-RMBG/commit/9fb0be165d317ff70d40c051199276cb06ffa07d","latest_hash":"9fb0be165d317ff70d40c051199276cb06ffa07d","stargazers_count":1124},"name":"ComfyUI-RMBG","files":[],"install_type":"git-clone"},"type":"custom-node"},{"id":"54bee516-7","data":{"url":"https://github.com/niknah/quick-connections","hash":"508f6575fc2d45c9f648d5dabb5b95c3e57b45ef","meta":{"message":"A possible fix for: https://github.com/niknah/quick-connections/issues/22\nThe default processUp might be crashi9ng.","committer":{"date":"2025-07-05T09:14:15.000Z","name":"niknah","email":"github@mail.niknah.com"},"commit_url":"https://github.com/niknah/quick-connections/commit/508f6575fc2d45c9f648d5dabb5b95c3e57b45ef","latest_hash":"508f6575fc2d45c9f648d5dabb5b95c3e57b45ef","stargazers_count":303},"name":"quick-connections","files":["https://github.com/niknah/quick-connections"],"install_type":"git-clone"},"type":"custom-node"},{"id":"comfyui-deploy","data":{"url":"https://github.com/BennyKok/comfyui-deploy","hash":"2a5223f2f0e1e68095f5fbe177be9d4f1116961b","meta":{"message":"fix","committer":{"date":"2025-06-29T07:43:12.000Z","name":"KarrixLee","email":"thomasdice1834793903@gmail.com"},"commit_url":"https://github.com/BennyKok/comfyui-deploy/commit/2a5223f2f0e1e68095f5fbe177be9d4f1116961b","latest_hash":"2a5223f2f0e1e68095f5fbe177be9d4f1116961b","stargazers_count":1367},"name":"ComfyUI Deploy","files":["https://github.com/BennyKok/comfyui-deploy"],"install_type":"git-clone"},"type":"custom-node"},{"id":"b9d11f3f-d","data":{"url":"https://github.com/rgthree/rgthree-comfy","hash":"f754c4765849aa748abb35a1f030a5ed6474a69b","meta":{"message":"Power Puter: Add for loop, and augassign capabilities.","committer":{"date":"2025-06-23T04:15:18.000Z","name":"rgthree","email":"regis.gaughan@gmail.com"},"commit_url":"https://github.com/rgthree/rgthree-comfy/commit/f754c4765849aa748abb35a1f030a5ed6474a69b","latest_hash":"f754c4765849aa748abb35a1f030a5ed6474a69b","stargazers_count":2027},"name":"rgthree's ComfyUI Nodes","files":[],"install_type":"git-clone"},"type":"custom-node"},{"id":"bb8b9795-3","data":{"url":"https://github.com/ChenDarYen/ComfyUI-NAG","hash":"25bd940444732e21726944d03893a2f6055f5392","meta":{"message":"Update README.md","committer":{"date":"2025-07-06T22:39:57.000Z","name":"GitHub","email":"noreply@github.com"},"commit_url":"https://github.com/ChenDarYen/ComfyUI-NAG/commit/25bd940444732e21726944d03893a2f6055f5392","latest_hash":"25bd940444732e21726944d03893a2f6055f5392","stargazers_count":142},"name":"ComfyUI-NAG","files":[],"install_type":"git-clone"},"type":"custom-node"},{"id":"1d0820b5-3","data":"WORKDIR /comfyui/custom_nodes\nRUN git clone https://github.com/mit-han-lab/ComfyUI-nunchaku nunchaku_nodes\nWORKDIR /comfyui","type":"commands"},{"id":"97f9b2a9-c","data":{"url":"https://github.com/mit-han-lab/ComfyUI-nunchaku","hash":"aee38dd7ee8f88bf5db0a7ce813da67a4f969c88","meta":{"message":"chore: release v0.3.3","committer":{"date":"2025-06-29T14:43:47.000Z","name":"GitHub","email":"noreply@github.com"},"latest_hash":"aee38dd7ee8f88bf5db0a7ce813da67a4f969c88"},"name":"ComfyUI-nunchaku","files":["https://github.com/mit-han-lab/ComfyUI-nunchaku"],"install_type":"git-clone"},"type":"custom-node"},{"id":"58918ce6-c","data":{"url":"https://github.com/if-ai/comfyui-llm-toolkit.git","hash":"6f180cc4003f7ba8034fb76a25fd1cdf93036b26","meta":{"message":"Add files via upload","committer":{"date":"2025-07-08T02:19:32.000Z","name":"GitHub","email":"noreply@github.com"},"commit_url":"https://github.com/if-ai/comfyui-llm-toolkit/commit/6f180cc4003f7ba8034fb76a25fd1cdf93036b26","latest_hash":"6f180cc4003f7ba8034fb76a25fd1cdf93036b26","stargazers_count":0},"name":"comfyui-llm-toolkit.git","files":["https://github.com/if-ai/comfyui-llm-toolkit.git"],"install_type":"git-clone"},"type":"custom-node"}]},"extra_docker_commands":[],"install_custom_node_with_gpu":false},"last_link_id":222,"last_node_id":159,"workflow_api":{"6":{"_meta":{"title":"Positive Prompt"},"inputs":{"clip":["128:1",0],"text":["134",1]},"class_type":"CLIPTextEncode"},"8":{"_meta":{"title":"VAE Decode"},"inputs":{"vae":["128:0",0],"samples":["138",0]},"class_type":"VAEDecode"},"9":{"_meta":{"title":"Save Image"},"inputs":{"images":["8",0],"filename_prefix":"comfydeploy_FAST_kontext_raw_"},"class_type":"SaveImage"},"26":{"_meta":{"title":"FluxGuidance"},"inputs":{"guidance":2.5,"conditioning":["88",0]},"class_type":"FluxGuidance"},"27":{"_meta":{"title":"EmptySD3LatentImage"},"inputs":{"width":["124",0],"height":["124",1],"batch_size":1},"class_type":"EmptySD3LatentImage"},"30":{"_meta":{"title":"ModelSamplingFlux"},"inputs":{"model":["128:3",0],"width":["124",0],"height":["124",1],"max_shift":1.3500000000000003,"base_shift":0.45000000000000007},"class_type":"ModelSamplingFlux"},"39":{"_meta":{"title":"VAE Encode"},"inputs":{"vae":["128:0",0],"pixels":["40",0]},"class_type":"VAEEncode"},"40":{"_meta":{"title":"FluxKontextImageScale"},"inputs":{"image":["153",0]},"class_type":"FluxKontextImageScale"},"42":{"_meta":{"title":"ReferenceLatent"},"inputs":{"latent":["39",0],"conditioning":["6",0]},"class_type":"ReferenceLatent"},"67":{"_meta":{"title":"Load Image"},"inputs":{"image":"fd7f544d-86fb-41b1-90f4-c8c685b8bc12.jpg"},"class_type":"LoadImage"},"70":{"_meta":{"title":"External Number Int (ComfyUI Deploy)"},"inputs":{"input_id":"noise_seed","description":"","display_name":"","default_value":2147483225},"class_type":"ComfyUIDeployExternalNumberInt"},"85":{"_meta":{"title":"FluxKontextImageScale"},"inputs":{"image":["101",0]},"class_type":"FluxKontextImageScale"},"86":{"_meta":{"title":"VAE Encode"},"inputs":{"vae":["128:0",0],"pixels":["85",0]},"class_type":"VAEEncode"},"87":{"_meta":{"title":"Load Image"},"inputs":{"image":"72a92303-6e94-4796-b93f-5638ad6ec36a.jpg"},"class_type":"LoadImage"},"88":{"_meta":{"title":"ReferenceLatent"},"inputs":{"latent":["86",0],"conditioning":["42",0]},"class_type":"ReferenceLatent"},"96":{"_meta":{"title":"w"},"inputs":{"source":["124",0],"preview":""},"class_type":"PreviewAny"},"97":{"_meta":{"title":"h"},"inputs":{"source":["124",1],"preview":""},"class_type":"PreviewAny"},"101":{"_meta":{"title":"BiRefNet Remove Background (RMBG)"},"inputs":{"image":["141",0],"model":"BiRefNet-general","mask_blur":0,"background":"Alpha","mask_offset":0,"invert_output":false,"refine_foreground":false},"class_type":"BiRefNetRMBG"},"109":{"_meta":{"title":"FluxKontextImageScale"},"inputs":{"image":["111",0]},"class_type":"FluxKontextImageScale"},"111":{"_meta":{"title":"Image Stitch"},"inputs":{"image1":["153",0],"image2":["101",0],"direction":"right","spacing_color":"white","spacing_width":0,"match_image_size":true},"class_type":"ImageStitch"},"123":{"_meta":{"title":"Preview Image"},"inputs":{"images":["109",0]},"class_type":"PreviewImage"},"124":{"_meta":{"title":"Resolution Selector (LLMToolkit)"},"inputs":{"mode":"IMG","quality":"MQ","aspect_ratio":"Vertical"},"class_type":"ResolutionSelector"},"127":{"_meta":{"title":"ConditioningZeroOut"},"inputs":{"conditioning":["6",0]},"class_type":"ConditioningZeroOut"},"134":{"_meta":{"title":"Generate Text Stream (LLMToolkit)"},"inputs":{"prompt":"Write a detailed description of a futuristic city.","context":["136",0],"llm_model":"gpt-4.1-mini","hide_thinking":"Create the character from Image 2 in a realistic style, using the muscular physique, detailed skin texture, and lifelike lighting from Image 1. Preserve the character's iconic green tunic, hat, brown boots, and leather belts with realistic fabric and leather textures. Maintain the original pose and sword-and-shield stance while converting facial features and hair to a natural human appearance, blending fantasy elements with the realism evident in Image 1.","LLMToolkitTextGeneratorStream_response":"Make the girl hold the staff in her right hand, positioning it naturally with her fingers wrapped around the shaft and the top ornament visible. Place the book securely under her left arm, angled to fit the arm's curve realistically. Restyle both the staff and book with matching lighting, shadows, and textures to blend seamlessly with the scene, preserving her pose, facial expression, and overall composition exactly as in Image 1."},"class_type":"LLMToolkitTextGeneratorStream"},"135":{"_meta":{"title":"Join String Multi"},"inputs":{"string_1":["140",0],"string_2":["137",0],"delimiter":" ","inputcount":2,"return_list":false,"Update inputs":null},"class_type":"JoinStringMulti"},"136":{"_meta":{"title":"Prompt Manager (LLMToolkit)"},"inputs":{"url":"","image":["111",0],"file_path":"","audio_path":"","text_prompt":["135",0]},"class_type":"PromptManager"},"137":{"_meta":{"title":"PROMPT"},"inputs":{"input_id":"MANUAL_PROMPT","description":"make the girl hold the staff on her right hand staff and hold the book under her left arm book and restyle the objects to be integrated on the image and look realistic\n\n\n\nYou can enter a small prompt indicating what you want and the AI will create a good prompt for kontext following an appropiate rule and kontext task. \n\nIF there is no OPENAI_API_KEY on the machine secrets. You will need to enter your full prompt manually \n\nOtherwise you can use this to add a The Task to be preform by the model for example \"replace the cat from image1 with the dog on image2\" \n\nshe is wearing the same clothes but it has the logo on the swimsuit make sure it looks well integrated and part of the same material with the fabric and not just an overlay the logo should wrap with the swinsuit to the body of the model ","display_name":"MANUAL_PROMPT ","default_value":"make the girl hold the staff on her right hand staff and hold the book under her left arm book and restyle the objects to be integrated on the image and look realistic"},"class_type":"ComfyUIDeployExternalText"},"138":{"_meta":{"title":"KSampler"},"inputs":{"cfg":1,"seed":["70",0],"model":["30",0],"steps":10,"denoise":1,"negative":["127",0],"positive":["26",0],"scheduler":"simple","latent_image":["27",0],"sampler_name":"euler"},"class_type":"KSampler"},"140":{"_meta":{"title":"SYSTEM"},"inputs":{"input_id":"SYSTEM_PROMPT","description":"You can enter a small prompt indicating what you want and the AI will create a good prompt for kontext following an appropiate rule and kontext task. \n\nIF there is no OPENAI_API_KEY on the machine secrets. You will need to enter your full prompt manually \n\nOtherwise you can use this to add a The Task to be preform by the model for example \"replace the cat from image1 with the dog on image2\" \n\nshe is wearing the same clothes but it has the logo on the swimsuit make sure it looks well integrated and part of the same material with the fabric and not just an overlay the logo should wrap with the swinsuit to the body of the model ","display_name":"MANUA_PROMPT ","default_value":" You are Kontext, a master artist who converts editing requests into a single, flowing paragraph of exactly 70 words. Every user request arrives with two images:\n\nImage 1 – Subject. This is the frame that must be edited.\n\nImage 2 – Reference. Provide background, style, texture, palette, or any other visual attribute the task demands.\n\nTask-Resolution Logic\n• change/replace background → substitute Image 1’s backdrop; keep Image 1’s subject unchanged; set new backdrop from Image 2\n• restyle / apply style / transfer style → style-transfer onto Image 1; extract colours, brushwork, medium, lighting cues from Image 2\n• simple/object modification → edit only the named object in Image 1; ignore Image 2 unless explicitly referenced\n• text editing → replace characters or words in Image 1; copy fonts and formatting from Image 1; Image 2 unused unless asked\n\nIf multiple actions are needed, narrate them step-by-step within the 70-word limit.\n\nWriting Rules\n\nBe specific and clear – name objects, colours, styles precisely.\n\nExplicit preservation – state what remains unchanged (pose, facial features, composition).\n\nSequential editing – describe edits in logical order (background, then attire, then lighting).\n\nApproved verbs – change, replace, convert, adjust; avoid vague verbs like transform unless paired with detail.\n\nCharacter consistency – use clear identifiers (“the woman with short black hair”) and preserve features.\n\nQuotes for text edits – put new and old text in quotes; keep font and layout intact.\n\nBest-Practice Templates\nBackground replacement: “Change the background to [new setting] from Image 2, keep the subject in the exact same position and pose.”\nStyle transfer: “Convert Image 1 to [specific style from Image 2] while maintaining composition, proportions, and lighting.”\nObject modification: “Change [object] in Image 1 to [new state], keep all else unchanged.”\nText editing: “Replace ‘[original]’ with ‘[new]’, preserve original font and placement.”\n\nNow the user will pass the REQUEST:\n"},"class_type":"ComfyUIDeployExternalText"},"141":{"_meta":{"title":"Load Image (from Outputs)"},"inputs":{"image":"_output_images_will_be_put_here [output]","refresh":"refresh"},"class_type":"LoadImageOutput"},"153":{"_meta":{"title":"Resize Image v2"},"inputs":{"image":["67",0],"width":["124",0],"device":"cpu","height":["124",1],"pad_color":"0, 0, 0","divisible_by":2,"crop_position":"center","upscale_method":"nearest-exact","keep_proportion":"resize"},"class_type":"ImageResizeKJv2"},"154":{"_meta":{"title":"Preview Image"},"inputs":{"images":["153",0]},"class_type":"PreviewImage"},"155":{"_meta":{"title":"Resize Image v2"},"inputs":{"image":["87",0],"width":["124",0],"device":"cpu","height":["124",1],"pad_color":"0, 0, 0","divisible_by":2,"crop_position":"center","upscale_method":"nearest-exact","keep_proportion":"resize"},"class_type":"ImageResizeKJv2"},"156":{"_meta":{"title":"Preview Image"},"inputs":{"images":["155",0]},"class_type":"PreviewImage"},"128:0":{"_meta":{"title":"Load VAE"},"inputs":{"vae_name":"ae.safetensors"},"class_type":"VAELoader"},"128:1":{"_meta":{"title":"DualCLIPLoader"},"inputs":{"type":"flux","device":"default","clip_name1":"clip_l.safetensors","clip_name2":"t5xxl_fp16.safetensors"},"class_type":"DualCLIPLoader"},"128:2":{"_meta":{"title":"Nunchaku FLUX DiT Loader"},"inputs":{"i2f_mode":"enabled","attention":"flash-attention2","data_type":"bfloat16","device_id":0,"model_path":"nunchaku-flux.1-kontext-dev/svdq-int4_r32-flux.1-kontext-dev.safetensors","cpu_offload":"auto","cache_threshold":0.010000000000000002},"class_type":"NunchakuFluxDiTLoader"},"128:3":{"_meta":{"title":"Nunchaku FLUX.1 LoRA Loader"},"inputs":{"model":["128:2",0],"lora_name":"FLUX.1-turbo-Alpha.safetensors","lora_strength":0.8500000000000002},"class_type":"NunchakuFluxLoraLoader"}}}