{ "1": { "inputs": { "unet_name": "krea2_turbo_bf16.safetensors", "weight_dtype": "default" }, "class_type": "UNETLoader", "_meta": { "title": "Load Diffusion Model" } }, "2": { "inputs": { "lora_name": "krea2-eric-insert.safetensors", "strength_model": 1, "model": [ "1", 0 ] }, "class_type": "LoraLoaderModelOnly", "_meta": { "title": "Load LoRA" } }, "3": { "inputs": { "clip_name": "qwen3vl_4b_bf16.safetensors", "type": "krea2", "device": "default" }, "class_type": "CLIPLoader", "_meta": { "title": "Load CLIP" } }, "4": { "inputs": { "vae_name": "qwen_image_vae.safetensors" }, "class_type": "VAELoader", "_meta": { "title": "Load VAE" } }, "5": { "inputs": { "image": "reagan.png" }, "class_type": "LoadImage", "_meta": { "title": "photo" } }, "6": { "inputs": { "pixels": [ "5", 0 ], "vae": [ "4", 0 ] }, "class_type": "VAEEncode", "_meta": { "title": "VAE Encode" } }, "7": { "inputs": { "ref_boost": 2, "ref_boost_a": 1, "fit_mode": "fit", "model": [ "2", 0 ], "source_latent": [ "6", 0 ], "vae": [ "4", 0 ], "source_image": [ "5", 0 ] }, "class_type": "Krea2EditModelPatch", "_meta": { "title": "Krea2 Edit (source patch)" } }, "8": { "inputs": { "prompt": [ "34", 0 ], "grounding_px": 512, "system_prompt": "", "clip": [ "3", 0 ], "image": [ "5", 0 ] }, "class_type": "Krea2EditGroundedEncode", "_meta": { "title": "Krea2 Edit (grounded encode)" } }, "9": { "inputs": { "seed": 956009336698080, "steps": 10, "cfg": 1, "sampler_name": "euler", "scheduler": "simple", "denoise": 1, "model": [ "7", 0 ], "positive": [ "8", 0 ], "negative": [ "8", 0 ], "latent_image": [ "6", 0 ] }, "class_type": "KSampler", "_meta": { "title": "sampler" } }, "10": { "inputs": { "samples": [ "9", 0 ], "vae": [ "4", 0 ] }, "class_type": "VAEDecode", "_meta": { "title": "VAE Decode" } }, "20": { "class_type": "PrimitiveStringMultiline", "inputs": { "value": "<|im_start|>system\nYou turn a photo-edit request into a short placement phrase for adding one man to a photo. Reply with only the phrase: where the man is and what he is doing, in lowercase, starting with an -ing verb or a preposition. Examples: \"standing on the left\", \"sitting on the bench\", \"shaking his hand\", \"standing behind them\", \"photobombing in the background\". Ignore who the request wants to add; it is always the same man. Ignore every other edit (weather, removing, changing or transforming people or things, style); the phrase never describes changing anyone or anything. If the request gives no placement, reply: standing next to the person<|im_end|>\n<|im_start|>user\n" }, "_meta": { "title": "rewrite instruction" } }, "21": { "class_type": "PrimitiveString", "inputs": { "value": "insert a ridiculously handsome man standing next to him" }, "_meta": { "title": "request" } }, "22": { "class_type": "PrimitiveStringMultiline", "inputs": { "value": "<|im_end|>\n<|im_start|>assistant\n" }, "_meta": { "title": "rewrite chat end" } }, "23": { "class_type": "StringConcatenate", "inputs": { "string_a": [ "20", 0 ], "string_b": [ "21", 0 ], "delimiter": "" }, "_meta": { "title": "Concatenate Text" } }, "24": { "class_type": "StringConcatenate", "inputs": { "string_a": [ "23", 0 ], "string_b": [ "22", 0 ], "delimiter": "" }, "_meta": { "title": "Concatenate Text" } }, "25": { "class_type": "TextGenerate", "inputs": { "clip": [ "3", 0 ], "prompt": [ "24", 0 ], "max_length": 600, "sampling_mode": "off", "thinking": true, "use_default_template": false }, "_meta": { "title": "rewrite" } }, "26": { "class_type": "PreviewAny", "inputs": { "source": [ "25", 0 ] }, "_meta": { "title": "rewrite output" } }, "30": { "class_type": "PrimitiveString", "inputs": { "value": "standing next to the person" }, "_meta": { "title": "placement" } }, "31": { "class_type": "PrimitiveStringMultiline", "inputs": { "value": "Insert er1cshen, a man in his early 30s, " }, "_meta": { "title": "prompt start" } }, "32": { "class_type": "PrimitiveStringMultiline", "inputs": { "value": ", at the same scale, same lighting and camera angle. Keep everyone and everything else exactly as they are." }, "_meta": { "title": "prompt end" } }, "33": { "class_type": "StringConcatenate", "inputs": { "string_a": [ "31", 0 ], "string_b": [ "30", 0 ], "delimiter": "" }, "_meta": { "title": "Concatenate Text" } }, "34": { "class_type": "StringConcatenate", "inputs": { "string_a": [ "33", 0 ], "string_b": [ "32", 0 ], "delimiter": "" }, "_meta": { "title": "Concatenate Text" } }, "40": { "class_type": "PreviewImage", "inputs": { "images": [ "10", 0 ] }, "_meta": { "title": "output" } } }