{ "id": "0aead2fa-d3c5-4609-93d3-eeaeac17131e", "revision": 0, "last_node_id": 196, "last_link_id": 369, "nodes": [ { "id": 56, "type": "EmptyLatentImage", "pos": [ -187.76036264088697, -630.3997303125198 ], "size": [ 220.8479930608903, 141.5615751553854 ], "flags": { "collapsed": true }, "order": 11, "mode": 0, "inputs": [ { "name": "width", "type": "INT", "widget": { "name": "width" }, "link": 359 }, { "name": "height", "type": "INT", "widget": { "name": "height" }, "link": 360 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 181 ] } ], "properties": { "Node name for S&R": "EmptyLatentImage", "cnr_id": "comfy-core", "ver": "0.25.0" }, "widgets_values": [ 2480, 3512, 1 ], "widgets_values_named": { "width": 2480, "height": 3512, "batch_size": 1 } }, { "id": 57, "type": "KSampler", "pos": [ -226.01952463299483, -562.9169246999393 ], "size": [ 260.21315742084244, 487.6547596974732 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 365 }, { "name": "positive", "type": "CONDITIONING", "link": 347 }, { "name": "negative", "type": "CONDITIONING", "link": 161 }, { "name": "latent_image", "type": "LATENT", "link": 181 }, { "name": "seed", "type": "INT", "widget": { "name": "seed" }, "link": 207 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "slot_index": 0, "links": [ 88 ] } ], "properties": { "Node name for S&R": "KSampler", "cnr_id": "comfy-core", "ver": "0.25.0" }, "widgets_values": [ 18, "fixed", 8, 1, "er_sde", "beta", 1 ], "widgets_values_named": { "seed": 18, "control_after_generate": "fixed", "steps": 8, "cfg": 1, "sampler_name": "er_sde", "scheduler": "beta", "denoise": 1 } }, { "id": 58, "type": "VAEDecode", "pos": [ 84.268995822881, -627.2386439912342 ], "size": [ 230, 100 ], "flags": { "collapsed": true }, "order": 19, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 88 }, { "name": "vae", "type": "VAE", "link": 361 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "slot_index": 0, "links": [ 358, 366 ] } ], "properties": { "Node name for S&R": "VAEDecode", "cnr_id": "comfy-core", "ver": "0.25.0" } }, { "id": 59, "type": "UNETLoader", "pos": [ -1713.4680948376756, -522.0566999878052 ], "size": [ 449.26500698402583, 107.6620531237819 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 364 ] } ], "properties": { "Node name for S&R": "UNETLoader", "cnr_id": "comfy-core", "ver": "0.25.0", "models": [ { "name": "krea2_turbo_fp8_scaled.safetensors", "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_fp8_scaled.safetensors", "directory": "diffusion_models" } ] }, "widgets_values": [ "krea2_raw_fp8_scaled.safetensors", "default" ], "widgets_values_named": { "unet_name": "krea2_raw_fp8_scaled.safetensors", "weight_dtype": "default" } }, { "id": 60, "type": "CLIPLoader", "pos": [ -1710.628155861378, -173.9022097665558 ], "size": [ 446.3251804056829, 125.16782653721316 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "CLIP", "type": "CLIP", "links": [ 162, 284 ] } ], "properties": { "Node name for S&R": "CLIPLoader", "cnr_id": "comfy-core", "ver": "0.25.0", "models": [ { "name": "qwen3vl_4b_fp8_scaled.safetensors", "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors", "directory": "text_encoders" } ] }, "widgets_values": [ "qwen3vl_4b_fp8_scaled.safetensors", "krea2", "default" ], "widgets_values_named": { "clip_name": "qwen3vl_4b_fp8_scaled.safetensors", "type": "krea2", "device": "default" } }, { "id": 61, "type": "VAELoader", "pos": [ -1713.021002862392, -334.7800399558083 ], "size": [ 447.7951664376312, 89.86688668615068 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "name": "VAE", "type": "VAE", "links": [ 361 ] } ], "properties": { "Node name for S&R": "VAELoader", "cnr_id": "comfy-core", "ver": "0.25.0", "models": [ { "name": "qwen_image_vae.safetensors", "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors", "directory": "vae" } ] }, "widgets_values": [ "qwen_image_vae.safetensors" ], "widgets_values_named": { "vae_name": "qwen_image_vae.safetensors" } }, { "id": 64, "type": "TextGenerate", "pos": [ -512.4191145705673, 246.8469300047022 ], "size": [ 400, 436 ], "flags": {}, "order": 13, "mode": 0, "showAdvanced": false, "inputs": [ { "name": "clip", "type": "CLIP", "link": 352 }, { "name": "image", "shape": 7, "type": "IMAGE", "link": null }, { "name": "video", "shape": 7, "type": "IMAGE", "link": null }, { "name": "audio", "shape": 7, "type": "AUDIO", "link": null }, { "name": "prompt", "type": "STRING", "widget": { "name": "prompt" }, "link": 93 }, { "name": "sampling_mode.seed", "type": "INT", "widget": { "name": "sampling_mode.seed" }, "link": 356 } ], "outputs": [ { "name": "generated_text", "type": "STRING", "links": [ 313 ] } ], "properties": { "Node name for S&R": "TextGenerate", "cnr_id": "comfy-core", "ver": "0.25.0" }, "widgets_values": [ "", 512, "on", 0.8, 64, 0.95, 0.05, 1.05, 2, 0, true, true, "auto" ], "widgets_values_named": { "prompt": "", "max_length": 512, "sampling_mode": "on", "sampling_mode.temperature": 0.8, "sampling_mode.top_k": 64, "sampling_mode.top_p": 0.95, "sampling_mode.min_p": 0.05, "sampling_mode.repetition_penalty": 1.05, "sampling_mode.seed": 2, "sampling_mode.presence_penalty": 0, "thinking": true, "use_default_template": true, "mtp": "auto" } }, { "id": 65, "type": "StringConcatenate", "pos": [ -732.4910605609684, 150.74706948641096 ], "size": [ 210, 166 ], "flags": { "collapsed": true }, "order": 10, "mode": 0, "inputs": [ { "name": "string_a", "type": "STRING", "widget": { "name": "string_a" }, "link": 94 }, { "name": "string_b", "type": "STRING", "widget": { "name": "string_b" }, "link": 363 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 93 ] } ], "properties": { "Node name for S&R": "StringConcatenate", "cnr_id": "comfy-core", "ver": "0.25.0" }, "widgets_values": [ "", "", "" ], "widgets_values_named": { "string_a": "", "string_b": "", "delimiter": "" } }, { "id": 68, "type": "PreviewAny", "pos": [ 82.09928856072186, -23.408237851482635 ], "size": [ 449.1433247392097, 333.0018914765674 ], "flags": { "collapsed": false }, "order": 16, "mode": 0, "inputs": [ { "name": "source", "type": "*", "link": 135 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [] } ], "properties": { "Node name for S&R": "PreviewAny", "cnr_id": "comfy-core", "ver": "0.25.0" }, "widgets_values": [], "widgets_values_named": {} }, { "id": 81, "type": "ComfySwitchNode", "pos": [ -763.8138781457543, 92.0810724556036 ], "size": [ 270, 130 ], "flags": { "collapsed": true }, "order": 15, "mode": 0, "inputs": [ { "name": "on_false", "shape": 7, "type": "STRING", "link": 362 }, { "name": "on_true", "shape": 7, "type": "STRING", "link": 313 }, { "name": "switch", "type": "BOOLEAN", "widget": { "name": "switch" }, "link": 354 } ], "outputs": [ { "name": "output", "type": "STRING", "links": [ 135, 355 ] } ], "title": "Switch (Prompt Enhance)", "properties": { "Node name for S&R": "ComfySwitchNode", "cnr_id": "comfy-core", "ver": "0.25.0" }, "widgets_values": [ true ], "widgets_values_named": { "switch": true }, "color": "#232", "bgcolor": "#353" }, { "id": 125, "type": "SeedNode", "pos": [ -494.49176395416407, -16.84145031629741 ], "size": [ 218.8679162797182, 82 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "name": "seed", "type": "INT", "links": [ 207, 356 ] } ], "properties": { "Node name for S&R": "SeedNode" }, "widgets_values": [ 1, "increment" ], "widgets_values_named": { "seed": 1, "fixed": "increment" }, "color": "#2a363b", "bgcolor": "#3f5159" }, { "id": 66, "type": "PrimitiveStringMultiline", "pos": [ -1029.6098262067976, 245.54812043107611 ], "size": [ 486.14340722479346, 457.35815336277165 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 94 ] } ], "title": "System Prompt (Text String)", "properties": { "Node name for S&R": "PrimitiveStringMultiline", "cnr_id": "comfy-core", "ver": "0.25.0" }, "widgets_values": [ "\nYou are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into an expressive and effective image-generation prompt. Output a single expanded prompt paragraph.\n\nFollow these rules:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interacations, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose pose, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Text Rendering:** If the user requests visible text, quotes, labels, or typography, specify the exact text clearly and wrap requested words in quotes.\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports them.\n6. **Structure:** Write one cohesive paragraph after the thinking block. No bullets, JSON, or markdown. The paragraph should not be shorter than the user's input, but expand on it. \n7. **Respect Existing Detail:** If the user's prompt is already detailed, polish and finalize rather than heavily expanding — preserve their phrasing and direction. \n8. **Preserve User Medium:** If the user explicitly requests a medium (e.g. \"photography\", \"illustration\", \"painting\", or \"sketch\"), preserve it. Do not pivot to a different medium to avoid difficulty — match the user's stated intent.\n9 **Phrasing:** The user input can be the description of an image, or it can be instructional. Instructions are marked with brackets, [like this]. Make sure to follow the instructions in the brackets.\n\nUser's Input:\n\n\n\n" ], "widgets_values_named": { "value": "\nYou are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into an expressive and effective image-generation prompt. Output a single expanded prompt paragraph.\n\nFollow these rules:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interacations, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose pose, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Text Rendering:** If the user requests visible text, quotes, labels, or typography, specify the exact text clearly and wrap requested words in quotes.\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports them.\n6. **Structure:** Write one cohesive paragraph after the thinking block. No bullets, JSON, or markdown. The paragraph should not be shorter than the user's input, but expand on it. \n7. **Respect Existing Detail:** If the user's prompt is already detailed, polish and finalize rather than heavily expanding — preserve their phrasing and direction. \n8. **Preserve User Medium:** If the user explicitly requests a medium (e.g. \"photography\", \"illustration\", \"painting\", or \"sketch\"), preserve it. Do not pivot to a different medium to avoid difficulty — match the user's stated intent.\n9 **Phrasing:** The user input can be the description of an image, or it can be instructional. Instructions are marked with brackets, [like this]. Make sure to follow the instructions in the brackets.\n\nUser's Input:\n\n\n\n" } }, { "id": 94, "type": "CLIPTextEncode", "pos": [ -1104.740377207511, -166.4724788196651 ], "size": [ 309.32264563711385, 130.07976885348899 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 162 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 161 ] } ], "title": "CLIP Text Encode (Negative Prompt)", "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "" ], "widgets_values_named": { "text": "" }, "color": "#322", "bgcolor": "#533" }, { "id": 126, "type": "Power Lora Loader (rgthree)", "pos": [ -1206.1342988843903, -561.6420827426135 ], "size": [ 419.9128072792407, 319.04677249955455 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "dir": 3, "name": "model", "type": "MODEL", "link": 364 }, { "dir": 3, "name": "clip", "type": "CLIP", "link": 284 } ], "outputs": [ { "dir": 4, "name": "MODEL", "shape": 3, "type": "MODEL", "links": [ 346 ] }, { "dir": 4, "name": "CLIP", "shape": 3, "type": "CLIP", "links": [ 349, 352 ] } ], "properties": { "Show Strengths": "Single Strength", "Match": "" }, "widgets_values": [ {}, { "type": "PowerLoraLoaderHeaderWidget" }, { "on": true, "lora": "Krea 2\\Krea2_TextFusion_Refusal_Reduction.safetensors", "strength": 1, "strengthTwo": null }, { "on": true, "lora": "Krea 2\\krea2_turbo_distill_r256.safetensors", "strength": 0.9, "strengthTwo": null }, {}, "" ], "widgets_values_named": { "divider": {}, "PowerLoraLoaderHeaderWidget": { "type": "PowerLoraLoaderHeaderWidget" }, "lora_1": { "on": true, "lora": "Krea 2\\Krea2_TextFusion_Refusal_Reduction.safetensors", "strength": 1, "strengthTwo": null }, "lora_2": { "on": true, "lora": "Krea 2\\krea2_turbo_distill_r256.safetensors", "strength": 0.9, "strengthTwo": null }, "divider#1": {}, "➕ Add Lora": "" } }, { "id": 67, "type": "PrimitiveStringMultiline", "pos": [ -766.4181935121165, -278.71848807574736 ], "size": [ 502.3123313090998, 204.70853065470908 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 362, 363, 369 ] } ], "title": "Text String (User Prompt / Content)", "properties": { "Node name for S&R": "PrimitiveStringMultiline", "cnr_id": "comfy-core", "ver": "0.25.0" }, "widgets_values": [ "" ], "widgets_values_named": { "value": "" }, "color": "#232", "bgcolor": "#353" }, { "id": 185, "type": "Krea2PromptWeight", "pos": [ -1051.4279798546543, 33.78651772941582 ], "size": [ 210, 132 ], "flags": { "collapsed": true }, "order": 17, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 349 }, { "name": "model", "type": "MODEL", "link": 346 }, { "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": 355 } ], "outputs": [ { "name": "model", "type": "MODEL", "links": [ 365 ] }, { "name": "conditioning", "type": "CONDITIONING", "links": [ 347 ] } ], "properties": { "Node name for S&R": "Krea2PromptWeight" }, "widgets_values": [ "", 1 ], "widgets_values_named": { "text": "", "strength": 1 } }, { "id": 188, "type": "PrimitiveBoolean", "pos": [ -763.4527544834885, -23.820767954252904 ], "size": [ 246.13660316156103, 68.61141430685507 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [ { "name": "BOOLEAN", "type": "BOOLEAN", "links": [ 354 ] } ], "title": "Enhance Prompt with LLM?", "properties": { "Node name for S&R": "PrimitiveBoolean" }, "widgets_values": [ true ], "widgets_values_named": { "value": true }, "color": "#232", "bgcolor": "#353" }, { "id": 190, "type": "PhotocraftSendImage", "pos": [ 232.66250044101508, -831.0580044046579 ], "size": [ 270, 98 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 358 }, { "name": "target", "shape": 7, "type": "PHOTOCRAFT_TARGET", "link": null }, { "name": "mask", "shape": 7, "type": "MASK", "link": null } ], "outputs": [], "properties": { "Node name for S&R": "PhotocraftSendImage" }, "widgets_values": [ "ComfyUI" ], "widgets_values_named": { "layer_name": "ComfyUI" }, "color": "#223", "bgcolor": "#335" }, { "id": 192, "type": "PhotocraftGetImage", "pos": [ -1464.0077015454006, -935.8118806595068 ], "size": [ 210, 206 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [ { "name": "image", "type": "IMAGE", "links": null }, { "name": "mask", "type": "MASK", "links": null }, { "name": "width", "type": "INT", "links": [ 359 ] }, { "name": "height", "type": "INT", "links": [ 360 ] }, { "name": "target", "type": "PHOTOCRAFT_TARGET", "links": null }, { "name": "prompt", "type": "STRING", "links": [ 367 ] } ], "properties": { "Node name for S&R": "PhotocraftGetImage" }, "widgets_values": [ false, 32, 16 ], "widgets_values_named": { "crop_to_selection": false, "padding": 32, "multiple_of": 16 }, "color": "#223", "bgcolor": "#335" }, { "id": 193, "type": "PreviewImage", "pos": [ 75.31310034253592, -572.5207439832297 ], "size": [ 460.09995986847616, 497.94984497251346 ], "flags": {}, "order": 21, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 366 } ], "outputs": [ { "name": "images", "type": "IMAGE", "links": null } ], "properties": { "Node name for S&R": "PreviewImage" } }, { "id": 194, "type": "PreviewAny", "pos": [ -770.8182425676661, -565.2720933075365 ], "size": [ 499.12259869746003, 238.01348680214858 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "source", "type": "*", "link": 367 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": [ 368 ] } ], "title": "Prompt from PhotoCraft Note(s)", "properties": { "Node name for S&R": "PreviewAny" }, "widgets_values": [], "widgets_values_named": {}, "color": "#223", "bgcolor": "#335" }, { "id": 195, "type": "StringConcatenate", "pos": [ -236.38062320469479, -8.727842421606484 ], "size": [ 210, 166 ], "flags": { "collapsed": true }, "order": 14, "mode": 0, "inputs": [ { "name": "string_a", "type": "STRING", "widget": { "name": "string_a" }, "link": 368 }, { "name": "string_b", "type": "STRING", "widget": { "name": "string_b" }, "link": 369 } ], "outputs": [ { "name": "STRING", "type": "STRING", "links": null } ], "properties": { "Node name for S&R": "StringConcatenate" }, "widgets_values": [ "", "", "" ], "widgets_values_named": { "string_a": "", "string_b": "", "delimiter": "" } } ], "links": [ [ 88, 57, 0, 58, 0, "LATENT" ], [ 94, 66, 0, 65, 0, "STRING" ], [ 135, 81, 0, 68, 0, "STRING" ], [ 161, 94, 0, 57, 2, "CONDITIONING" ], [ 162, 60, 0, 94, 0, "CLIP" ], [ 181, 56, 0, 57, 3, "LATENT" ], [ 207, 125, 0, 57, 4, "INT" ], [ 284, 60, 0, 126, 1, "CLIP" ], [ 313, 64, 0, 81, 1, "STRING" ], [ 346, 126, 0, 185, 1, "MODEL" ], [ 347, 185, 1, 57, 1, "CONDITIONING" ], [ 349, 126, 1, 185, 0, "CLIP" ], [ 354, 188, 0, 81, 2, "BOOLEAN" ], [ 355, 81, 0, 185, 2, "STRING" ], [ 358, 58, 0, 190, 0, "IMAGE" ], [ 359, 192, 2, 56, 0, "INT" ], [ 360, 192, 3, 56, 1, "INT" ], [ 361, 61, 0, 58, 1, "VAE" ], [ 362, 67, 0, 81, 0, "STRING" ], [ 363, 67, 0, 65, 1, "STRING" ], [ 364, 59, 0, 126, 0, "MODEL" ], [ 365, 185, 0, 57, 0, "MODEL" ], [ 366, 58, 0, 193, 0, "IMAGE" ], [ 367, 192, 5, 194, 0, "STRING" ], [ 368, 194, 0, 195, 0, "STRING" ], [ 369, 67, 0, 195, 1, "STRING" ], [ 352, 126, 1, 64, 0, "CLIP" ], [ 93, 65, 0, 64, 4, "STRING" ], [ 356, 125, 0, 64, 5, "INT" ] ], "groups": [ { "id": 1, "title": "Enhance Prompt via LLM", "bounding": [ -1039.6098262067976, 175.5481204310759, 938.8473450306112, 700.8040131445933 ], "color": "#3f789e", "flags": {} }, { "id": 2, "title": "Models", "bounding": [ -1708.262477793548, -692.2746378144052, 470.20487704695734, 678.5653045547276 ], "color": "#3f789e", "flags": {} }, { "id": 3, "title": "Settings", "bounding": [ -1216.1342988843903, -700.3997303125198, 1260.3279316722378, 861.1467997989307 ], "color": "#8A8", "flags": {} }, { "id": 4, "title": "Photocraft Bridge - Get Image", "bounding": [ -1601.633939843147, -1031.961010660261, 361.0936741453554, 308.98984244026235 ], "color": "#88A", "flags": {} }, { "id": 5, "title": "Photocraft Bridge - Send Image", "bounding": [ 222.66250044101523, -901.0580044046635, 319.15518467319083, 178 ], "color": "#88A", "flags": {} }, { "id": 6, "title": "VAE / Image Preview", "bounding": [ 65.31310034253592, -697.2386439912342, 480.09995986847616, 1016.832297616319 ], "color": "#b58b2a", "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.6934334949441519, "offset": [ 2053.6944158683377, 1215.9653188115062 ] }, "frontendVersion": "1.53.6", "VHS_latentpreview": false, "VHS_latentpreviewrate": 0, "VHS_MetadataImage": true, "VHS_KeepIntermediate": true }, "version": 0.4 }