{ "29": { "inputs": { "filename_prefix": "krea2/Assets", "images": [ "173", 0 ] }, "class_type": "SaveImage", "_meta": { "title": "(output:image) Image Output" } }, "144": { "inputs": { "text": [ "171:163", 0 ], "clip": [ "149", 0 ] }, "class_type": "CLIPTextEncode", "_meta": { "title": "CLIP Text Encode (Prompt)" } }, "145": { "inputs": { "width": 1280, "height": 720, "batch_size": 1 }, "class_type": "EmptyLatentImage", "_meta": { "title": "Empty Latent Image" } }, "146": { "inputs": { "seed": 875219259066635, "steps": 8, "cfg": 1, "sampler_name": "res_multistep", "scheduler": "beta", "denoise": 1, "model": [ "159", 0 ], "positive": [ "144", 0 ], "negative": [ "151", 0 ], "latent_image": [ "145", 0 ] }, "class_type": "KSampler", "_meta": { "title": "KSampler" } }, "148": { "inputs": { "unet_name": "Krea-2-Turbo.safetensors", "weight_dtype": "default" }, "class_type": "UNETLoader", "_meta": { "title": "Load Diffusion Model" } }, "149": { "inputs": { "clip_name": "qwen3vl_4b_fp8_scaled.safetensors", "type": "krea2", "device": "default" }, "class_type": "CLIPLoader", "_meta": { "title": "Load CLIP" } }, "150": { "inputs": { "vae_name": "qwen_image_vae.safetensors" }, "class_type": "VAELoader", "_meta": { "title": "Load VAE" } }, "151": { "inputs": { "conditioning": [ "144", 0 ] }, "class_type": "ConditioningZeroOut", "_meta": { "title": "Conditioning Zero Out" } }, "152": { "inputs": { "lora_name": "krea2\\Krea2-realism-V2.safetensors", "strength_model": 1, "model": [ "148", 0 ] }, "class_type": "LoraLoaderModelOnly", "_meta": { "title": "Load LoRA" } }, "156": { "inputs": { "value": " ultra realistic landscape. A sprawling, vertical city of dark metal and concrete. Sleek towers are contrasted with grimy, overcrowded lower levels. Perpetual twilight is punctuated by neon propaganda and searchlights." }, "class_type": "PrimitiveStringMultiline", "_meta": { "title": "(Input:prompt) Prompt" } }, "159": { "inputs": { "switch": [ "160", 0 ], "on_false": [ "148", 0 ], "on_true": [ "152", 0 ] }, "class_type": "ComfySwitchNode", "_meta": { "title": "Switch (Model)" } }, "160": { "inputs": { "value": false }, "class_type": "PrimitiveBoolean", "_meta": { "title": "Boolean (Enable LoRA?)" } }, "161": { "inputs": { "value": false }, "class_type": "PrimitiveBoolean", "_meta": { "title": "Boolean (Refine Prompt?)" } }, "172": { "inputs": { "seed": 42, "steps": 6, "cfg": 1, "sampler_name": "euler", "scheduler": "simple", "denoise": 0.15, "model": [ "152", 0 ], "positive": [ "144", 0 ], "negative": [ "151", 0 ], "latent_image": [ "187", 0 ] }, "class_type": "KSampler", "_meta": { "title": "KSampler" } }, "173": { "inputs": { "samples": [ "172", 0 ], "vae": [ "150", 0 ] }, "class_type": "VAEDecode", "_meta": { "title": "VAE Decode" } }, "187": { "inputs": { "pixels": [ "188", 0 ], "vae": [ "150", 0 ] }, "class_type": "VAEEncode", "_meta": { "title": "VAE Encode" } }, "188": { "inputs": { "samples": [ "146", 0 ], "vae": [ "150", 0 ] }, "class_type": "VAEDecode", "_meta": { "title": "VAE Decode" } }, "171:154": { "inputs": { "string_a": [ "171:155", 0 ], "string_b": [ "156", 0 ], "delimiter": "" }, "class_type": "StringConcatenate", "_meta": { "title": "Concatenate Text" } }, "171:153": { "inputs": { "prompt": [ "171:154", 0 ], "max_length": 512, "sampling_mode": "on", "sampling_mode.temperature": 0.7, "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": 0, "sampling_mode.presence_penalty": 0, "thinking": true, "use_default_template": true, "clip": [ "149", 0 ] }, "class_type": "TextGenerate", "_meta": { "title": "Generate Text" } }, "171:157": { "inputs": { "source": [ "171:158", 0 ] }, "class_type": "PreviewAny", "_meta": { "title": "Preview as Text" } }, "171:162": { "inputs": { "string_a": [ "171:157", 0 ], "string_b": "muted minimalist sketch style", "delimiter": ", " }, "class_type": "StringConcatenate", "_meta": { "title": "Concatenate Text (LoRA Trigger Word)" } }, "171:163": { "inputs": { "switch": [ "160", 0 ], "on_false": [ "171:157", 0 ], "on_true": [ "171:162", 0 ] }, "class_type": "ComfySwitchNode", "_meta": { "title": "If/Else Switch" } }, "171:158": { "inputs": { "switch": [ "161", 0 ], "on_false": [ "156", 0 ], "on_true": [ "171:153", 0 ] }, "class_type": "ComfySwitchNode", "_meta": { "title": "If/Else Switch" } }, "171:155": { "inputs": { "value": "You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the caption.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\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, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, 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.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding — preserve their phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty — match the user's stated intent.\n\nUser's Input:\n\n" }, "class_type": "PrimitiveStringMultiline", "_meta": { "title": "Text String (System Prompt)" } } }