{"id":"08988737-a544-4ab1-99fb-22d67b7c36e3","revision":0,"last_node_id":50,"last_link_id":71,"nodes":[{"id":29,"type":"SaveImage","pos":[910,-80],"size":[880,1020],"flags":{},"order":7,"mode":0,"inputs":[{"localized_name":"images","name":"images","type":"IMAGE","link":44},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null}],"outputs":[{"localized_name":"images","name":"images","type":"IMAGE","links":null}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"SaveImage"},"widgets_values":["Krea2_turbo"]},{"id":42,"type":"CustomCombo","pos":[-420,500],"size":[320,340],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"choice","name":"choice","type":"COMBO","widget":{"name":"choice"},"link":null}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":null},{"localized_name":"INDEX","name":"INDEX","type":"INT","links":[66]}],"title":"CustomCombo (Select LoRA Name)","properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"CustomCombo"},"widgets_values":["krea2_warmpastel",3,"krea2_coolblue","krea2_darkbrush","krea2_plasmoid","krea2_warmpastel",""]},{"id":50,"type":"MarkdownNote","pos":[-1200,-90],"size":[700,990],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[],"title":"Note: Krea-2","properties":{},"widgets_values":["This workflow generates images with **Krea-2 Turbo**, a fast distilled text-to-image model. The workflow is organized into a few parts: each handles a different step so you can generate quickly without digging through every node.\n\n## Text to Image (Krea-2 Turbo) Subgraph\n\nDouble-click this node to open the full pipeline. Inside, the canvas is grouped into several areas:\n\n**Models**: Loads the diffusion model, text encoder, VAE, and optional style LoRA (`LoraLoaderModelOnly`).\n\n**Prompt**: Enter your image description in **Text String (User Prompt)**.\n\n**Prompt Enhancement**: Expands your prompt before generation. Enabled by default (`prompt_enhance`). You can turn it off to use your prompt as-is, or replace the built-in module with **OpenAI** or **Gemini** API nodes.\n\n**Feature Switch**: Quick toggles on the left side of the subgraph:\n- `prompt_enhance`: enable or disable prompt expansion\n- `enable_lora?`: enable or disable the style LoRA\n\n**Image Generation**: Handles latent sizing, sampling (8 steps), and VAE decode to produce the final image.\n\nWhen using a LoRA, set `enable_lora?` to true, select the matching file in **LoraLoaderModelOnly**, and adjust `lora_strength` as needed.\n\n## LoRA & Trigger Word (CustomCombo)\n\nOn the main canvas, the **CustomCombo** node is where you choose which style LoRA you are using (e.g. `krea2_coolblue`, `krea2_darkbrush`). The workflow uses your selection to automatically append the correct **trigger word** to your prompt.\n\n- Download LoRA files from [Comfy-Org/Krea-2/loras](https://huggingface.co/Comfy-Org/Krea-2/tree/main/loras) and place them in `ComfyUI/models/loras/`\n- Select the LoRA name that matches the file loaded inside the subgraph\n- The trigger word is applied for you: no need to type it manually\n- For trigger words and recommended strength values, see the **LoRA Trigger Words and Settings** note beside this workflow\n"],"color":"#222","bgcolor":"#000"},{"id":45,"type":"460e1a4e-4b3b-455a-8ab0-e7581839db23","pos":[-50.06528914947754,505.58829569733547],"size":[280,360],"flags":{},"order":5,"mode":0,"inputs":[{"localized_name":"text_per_line","name":"text_per_line","type":"STRING","widget":{"name":"text_per_line"},"link":null},{"localized_name":"index","name":"index","type":"INT","widget":{"name":"index"},"link":66}],"outputs":[{"localized_name":"selected_line","name":"selected_line","type":"STRING","links":[67]}],"properties":{"proxyWidgets":[["2","string"],["43","value"]],"cnr_id":"comfy-core","ver":"0.19.0","ue_properties":{"widget_ue_connectable":{},"input_ue_unconnectable":{}}},"widgets_values":[]},{"id":48,"type":"MarkdownNote","pos":[-1940,-90],"size":[700,990],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[],"title":"Model Links","properties":{},"widgets_values":["Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Links (for Local Users)\n\nFor BF16 and NVFP4 variants, see [Comfy-Org/Krea-2](https://huggingface.co/Comfy-Org/Krea-2)\n\n\n**diffusion_models**\n\n- [krea2_turbo_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_fp8_scaled.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_4b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors)\n\n**vae**\n\n- [qwen_image_vae.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors)\n\n**loras**\n\n- [krea2_warmpastel.safetensors](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/loras/krea2_warmpastel.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 diffusion_models/\n│   │   └── krea2_turbo_fp8_scaled.safetensors\n│   ├── 📂 text_encoders/\n│   │   └── qwen3vl_4b_fp8_scaled.safetensors\n│   ├── 📂 vae/\n│   │   └── qwen_image_vae.safetensors\n│   └── 📂 loras/\n│       └── krea2_warmpastel.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"],"color":"#222","bgcolor":"#000"},{"id":47,"type":"MarkdownNote","pos":[-420,970],"size":[640,310],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[],"title":"LoRA Trigger Words and Settings","properties":{},"widgets_values":["Download the style LoRAs used in this workflow from [Comfy-Org/Krea-2/loras](https://huggingface.co/Comfy-Org/Krea-2/tree/main/loras). Place the `.safetensors` files in `ComfyUI/models/loras/`.\n\n| LoRA               | Trigger Words                        | Recommended Strength |\n|--------------------|--------------------------------------|-------|\n| [krea2_coolblue](https://huggingface.co/Comfy-Org/Krea-2/blob/main/loras/krea2_coolblue.safetensors)   | teal watercolor illustration style | 0.8 |\n| [krea2_darkbrush](https://huggingface.co/Comfy-Org/Krea-2/blob/main/loras/krea2_darkbrush.safetensors)  | monochrome ink wash style          | 1.0 |\n| [krea2_plasmoid](https://huggingface.co/Comfy-Org/Krea-2/blob/main/loras/krea2_plasmoid.safetensors)   | ethereal shimmering light style    | 0.8 |\n| [krea2_warmpastel](https://huggingface.co/Comfy-Org/Krea-2/blob/main/loras/krea2_warmpastel.safetensors) | muted minimalist sketch style      | 0.8 |"],"color":"#222","bgcolor":"#000"},{"id":30,"type":"b0e5ca93-2731-42b9-8e0a-d28ea851ff81","pos":[290,-80],"size":[560,1010],"flags":{},"order":6,"mode":0,"inputs":[{"name":"value","type":"STRING","widget":{"name":"value"},"link":null},{"label":"prompt_enhance","name":"value_1","type":"BOOLEAN","widget":{"name":"value_1"},"link":null},{"label":"LLM_max_token","name":"max_length","type":"INT","widget":{"name":"max_length"},"link":null},{"name":"width","type":"INT","widget":{"name":"width"},"link":69},{"name":"height","type":"INT","widget":{"name":"height"},"link":71},{"name":"seed","type":"INT","widget":{"name":"seed"},"link":null},{"label":"enable_lora?","name":"value_2","type":"BOOLEAN","widget":{"name":"value_2"},"link":null},{"name":"lora_name","type":"COMBO","widget":{"name":"lora_name"},"link":null},{"label":"lora_strength","name":"strength_model","type":"FLOAT","widget":{"name":"strength_model"},"link":null},{"label":"lora_trigger_word","name":"string_b","type":"STRING","widget":{"name":"string_b"},"link":67},{"name":"unet_name","type":"COMBO","widget":{"name":"unet_name"},"link":null},{"name":"clip_name","type":"COMBO","widget":{"name":"clip_name"},"link":null},{"name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"link":null}],"outputs":[{"localized_name":"IMAGE","name":"IMAGE","type":"IMAGE","links":[44]}],"properties":{"proxyWidgets":[["19","value"],["24","value"],["16","max_length"],["5","width"],["5","height"],["3","seed"],["23","value"],["15","lora_name"],["15","strength_model"],["27","string_b"],["10","unet_name"],["11","clip_name"],["12","vae_name"]],"cnr_id":"comfy-core","ver":"0.25.0"},"widgets_values":[]},{"id":49,"type":"ResolutionSelector","pos":[-280.99999999999983,211.9999908447265],"size":[270,190],"flags":{},"order":4,"mode":0,"inputs":[{"localized_name":"aspect_ratio","name":"aspect_ratio","type":"COMBO","widget":{"name":"aspect_ratio"},"link":null},{"localized_name":"megapixels","name":"megapixels","type":"FLOAT","widget":{"name":"megapixels"},"link":null},{"localized_name":"multiple","name":"multiple","type":"INT","widget":{"name":"multiple"},"link":null}],"outputs":[{"localized_name":"width","name":"width","type":"INT","links":[69]},{"localized_name":"height","name":"height","type":"INT","links":[71]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"ResolutionSelector"},"widgets_values":["16:9 (Widescreen)",1,8]}],"links":[[44,30,0,29,0,"IMAGE"],[66,42,1,45,1,"INT"],[67,45,0,30,9,"STRING"],[69,49,0,30,3,"INT"],[71,49,1,30,4,"INT"]],"groups":[{"id":10,"title":"LoRA & Trigger Word (CustomCombo)","bounding":[-430,430,670,470],"color":"#3f789e","flags":{}}],"definitions":{"subgraphs":[{"id":"b0e5ca93-2731-42b9-8e0a-d28ea851ff81","version":1,"state":{"lastGroupId":10,"lastNodeId":50,"lastLinkId":71,"lastRerouteId":0},"revision":0,"config":{},"name":"Text to Image (Krea-2 Turbo)","inputNode":{"id":-10,"bounding":[-1720,410,146.466796875,308]},"outputNode":{"id":-20,"bounding":[1560,496,128,68]},"inputs":[{"id":"b0f5c754-5322-440c-8c1c-ba732e910d33","name":"value","type":"STRING","linkIds":[45],"pos":[-1597.533203125,434]},{"id":"47b0e74d-ef80-4423-a7a6-9bd1673092bb","name":"value_1","type":"BOOLEAN","linkIds":[46],"label":"prompt_enhance","pos":[-1597.533203125,454]},{"id":"5fc735ae-a50b-4363-bff9-850030ad5dd5","name":"max_length","type":"INT","linkIds":[49],"label":"LLM_max_token","pos":[-1597.533203125,474]},{"id":"2d1c0f16-25d7-46d1-b774-e6b5519810ae","name":"width","type":"INT","linkIds":[50],"pos":[-1597.533203125,494]},{"id":"8bb87b44-fecc-46d7-bdae-642002250a43","name":"height","type":"INT","linkIds":[51],"pos":[-1597.533203125,514]},{"id":"75652c4f-cde2-4ad7-b322-73d47b533ef8","name":"seed","type":"INT","linkIds":[56],"pos":[-1597.533203125,534]},{"id":"b0ca5f55-a223-40de-9e37-aaf2cf0904dd","name":"value_2","type":"BOOLEAN","linkIds":[57],"label":"enable_lora?","pos":[-1597.533203125,554]},{"id":"eb2e846b-2e6c-49a2-bc56-9c772c8a1862","name":"lora_name","type":"COMBO","linkIds":[58],"pos":[-1597.533203125,574]},{"id":"d2693bbb-bb95-4fb1-9a3d-27a1bb0b664b","name":"strength_model","type":"FLOAT","linkIds":[59],"label":"lora_strength","pos":[-1597.533203125,594]},{"id":"e2031135-b490-4909-b1ec-6b00aecf819e","name":"string_b","type":"STRING","linkIds":[60],"label":"lora_trigger_word","pos":[-1597.533203125,614]},{"id":"14e2eb6a-5fa1-40c9-81d1-a928360fcd80","name":"unet_name","type":"COMBO","linkIds":[61],"pos":[-1597.533203125,634]},{"id":"e27ba0c5-697f-44f4-b475-c2dcfa594724","name":"clip_name","type":"COMBO","linkIds":[62],"pos":[-1597.533203125,654]},{"id":"75c25d8e-b881-46e4-aca7-d2ada9e147d0","name":"vae_name","type":"COMBO","linkIds":[63],"pos":[-1597.533203125,674]}],"outputs":[{"id":"e4073813-752d-4584-96b5-6e42eac355dd","name":"IMAGE","type":"IMAGE","linkIds":[43],"localized_name":"IMAGE","pos":[1584,520]}],"widgets":[],"nodes":[{"id":6,"type":"CLIPTextEncode","pos":[100,-250],"size":[480,420],"flags":{},"order":3,"mode":0,"inputs":[{"localized_name":"clip","name":"clip","type":"CLIP","link":10},{"localized_name":"text","name":"text","type":"STRING","widget":{"name":"text"},"link":40}],"outputs":[{"localized_name":"CONDITIONING","name":"CONDITIONING","type":"CONDITIONING","slot_index":0,"links":[4,13]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"CLIPTextEncode"},"widgets_values":["A high-contrast, hyper-stylized fashion editorial portrait shot against a saturated mustard-yellow seamless backdrop, with the central figure rendered in crisp desaturated black-and-white, creating a striking duotone aesthetic reminiscent of David LaChapelle meets Helmut Newton with a punk-gothic edge.\n\nThe subject is a fierce young woman with a platinum-bleached, spiked liberty mohawk crown of hair, her expression cold and commanding as she stares directly into the lens. She wears a cropped black leather biker jacket exploding with oversized metallic conical studs and spikes across the shoulders, paired with a minimal black bikini bottom, sheer black thigh-high stockings, and chunky knee-high lace-up combat platform boots. Her toned, athletic physique is fully exposed at the midriff.\n\nShe sits regally upon an ornate throne carved in the shape of a snarling, fanged beast's head — part dragon, part demonic feline — its silver-grey surface intricately detailed with bones, scales, and gothic ornamentation. Her booted foot rests on a battered metal road case wrapped in heavy chains and covered in stickers and band decals.\n\nIn her right hand she grips a massive medieval war scythe, its long wooden shaft wrapped in leather, the enormous curved blade arcing dramatically over her head. Perched on her left fist, talons gripping her knuckles, is a majestic American bald eagle with pristine white head feathers and a sharp yellow beak, staring off to the side with predatory alertness.\n\nStudio lighting is hard and theatrical, casting crisp shadows. The composition is symmetrical, iconic, and poster-like — punk rock goddess of war meets American mythology. Hyperrealistic, high-fashion photography, 8k, sharp detail, magazine cover quality."],"color":"#232","bgcolor":"#353"},{"id":5,"type":"EmptyLatentImage","pos":[170,350],"size":[320,170],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"width","name":"width","type":"INT","widget":{"name":"width"},"link":50},{"localized_name":"height","name":"height","type":"INT","widget":{"name":"height"},"link":51},{"localized_name":"batch_size","name":"batch_size","type":"INT","widget":{"name":"batch_size"},"link":null}],"outputs":[{"localized_name":"LATENT","name":"LATENT","type":"LATENT","slot_index":0,"links":[2]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"EmptyLatentImage"},"widgets_values":[1024,1024,1]},{"id":3,"type":"KSampler","pos":[640,-100],"size":[320,590],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"model","name":"model","type":"MODEL","link":30},{"localized_name":"positive","name":"positive","type":"CONDITIONING","link":4},{"localized_name":"negative","name":"negative","type":"CONDITIONING","link":14},{"localized_name":"latent_image","name":"latent_image","type":"LATENT","link":2},{"localized_name":"seed","name":"seed","type":"INT","widget":{"name":"seed"},"link":56},{"localized_name":"steps","name":"steps","type":"INT","widget":{"name":"steps"},"link":null},{"localized_name":"cfg","name":"cfg","type":"FLOAT","widget":{"name":"cfg"},"link":null},{"localized_name":"sampler_name","name":"sampler_name","type":"COMBO","widget":{"name":"sampler_name"},"link":null},{"localized_name":"scheduler","name":"scheduler","type":"COMBO","widget":{"name":"scheduler"},"link":null},{"localized_name":"denoise","name":"denoise","type":"FLOAT","widget":{"name":"denoise"},"link":null}],"outputs":[{"localized_name":"LATENT","name":"LATENT","type":"LATENT","slot_index":0,"links":[7]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"KSampler"},"widgets_values":[238908285293382,"randomize",8,1,"euler","simple",1]},{"id":8,"type":"VAEDecode","pos":[1010,-270],"size":[230,100],"flags":{"collapsed":false},"order":4,"mode":0,"inputs":[{"localized_name":"samples","name":"samples","type":"LATENT","link":7},{"localized_name":"vae","name":"vae","type":"VAE","link":12}],"outputs":[{"localized_name":"IMAGE","name":"IMAGE","type":"IMAGE","slot_index":0,"links":[43]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":10,"type":"UNETLoader","pos":[-410,-240],"size":[450,140],"flags":{},"order":5,"mode":0,"inputs":[{"localized_name":"unet_name","name":"unet_name","type":"COMBO","widget":{"name":"unet_name"},"link":61},{"localized_name":"weight_dtype","name":"weight_dtype","type":"COMBO","widget":{"name":"weight_dtype"},"link":null}],"outputs":[{"localized_name":"MODEL","name":"MODEL","type":"MODEL","links":[16,28]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"UNETLoader","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_turbo_fp8_scaled.safetensors","default"]},{"id":11,"type":"CLIPLoader","pos":[-410,150],"size":[450,170],"flags":{},"order":6,"mode":0,"inputs":[{"localized_name":"clip_name","name":"clip_name","type":"COMBO","widget":{"name":"clip_name"},"link":62},{"localized_name":"type","name":"type","type":"COMBO","widget":{"name":"type"},"link":null},{"localized_name":"device","name":"device","shape":7,"type":"COMBO","widget":{"name":"device"},"link":null}],"outputs":[{"localized_name":"CLIP","name":"CLIP","type":"CLIP","links":[10,18]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"CLIPLoader","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"]},{"id":12,"type":"VAELoader","pos":[-410,390],"size":[450,120],"flags":{},"order":7,"mode":0,"inputs":[{"localized_name":"vae_name","name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"link":63}],"outputs":[{"localized_name":"VAE","name":"VAE","type":"VAE","links":[12]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"VAELoader","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"]},{"id":13,"type":"ConditioningZeroOut","pos":[350,220],"size":[225,26],"flags":{"collapsed":true},"order":8,"mode":0,"inputs":[{"localized_name":"conditioning","name":"conditioning","type":"CONDITIONING","link":13}],"outputs":[{"localized_name":"CONDITIONING","name":"CONDITIONING","type":"CONDITIONING","links":[14]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"ConditioningZeroOut"},"widgets_values":[]},{"id":15,"type":"LoraLoaderModelOnly","pos":[-410,-50],"size":[450,170],"flags":{},"order":9,"mode":0,"inputs":[{"localized_name":"model","name":"model","type":"MODEL","link":16},{"localized_name":"lora_name","name":"lora_name","type":"COMBO","widget":{"name":"lora_name"},"link":58},{"localized_name":"strength_model","name":"strength_model","type":"FLOAT","widget":{"name":"strength_model"},"link":59}],"outputs":[{"localized_name":"MODEL","name":"MODEL","type":"MODEL","links":[29]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"LoraLoaderModelOnly","models":[{"name":"krea2_warmpastel.safetensors","url":"https://huggingface.co/Comfy-Org/Krea-2/resolve/main/loras/krea2_warmpastel.safetensors","directory":"loras"}]},"widgets_values":["krea2_warmpastel.safetensors",0.8]},{"id":16,"type":"TextGenerate","pos":[60,650],"size":[400,412],"flags":{},"order":10,"mode":0,"inputs":[{"localized_name":"clip","name":"clip","type":"CLIP","link":18},{"localized_name":"image","name":"image","shape":7,"type":"IMAGE","link":null},{"localized_name":"video","name":"video","shape":7,"type":"IMAGE","link":null},{"localized_name":"audio","name":"audio","shape":7,"type":"AUDIO","link":null},{"localized_name":"prompt","name":"prompt","type":"STRING","widget":{"name":"prompt"},"link":19},{"localized_name":"max_length","name":"max_length","type":"INT","widget":{"name":"max_length"},"link":49},{"localized_name":"sampling_mode","name":"sampling_mode","type":"COMFY_DYNAMICCOMBO_V3","widget":{"name":"sampling_mode"},"link":null},{"localized_name":"temperature","name":"sampling_mode.temperature","type":"FLOAT","widget":{"name":"sampling_mode.temperature"},"link":null},{"localized_name":"top_k","name":"sampling_mode.top_k","type":"INT","widget":{"name":"sampling_mode.top_k"},"link":null},{"localized_name":"top_p","name":"sampling_mode.top_p","type":"FLOAT","widget":{"name":"sampling_mode.top_p"},"link":null},{"localized_name":"min_p","name":"sampling_mode.min_p","type":"FLOAT","widget":{"name":"sampling_mode.min_p"},"link":null},{"localized_name":"repetition_penalty","name":"sampling_mode.repetition_penalty","type":"FLOAT","widget":{"name":"sampling_mode.repetition_penalty"},"link":null},{"localized_name":"seed","name":"sampling_mode.seed","type":"INT","widget":{"name":"sampling_mode.seed"},"link":null},{"localized_name":"presence_penalty","name":"sampling_mode.presence_penalty","shape":7,"type":"FLOAT","widget":{"name":"sampling_mode.presence_penalty"},"link":null},{"localized_name":"thinking","name":"thinking","shape":7,"type":"BOOLEAN","widget":{"name":"thinking"},"link":null},{"localized_name":"use_default_template","name":"use_default_template","shape":7,"type":"BOOLEAN","widget":{"name":"use_default_template"},"link":null}],"outputs":[{"localized_name":"generated_text","name":"generated_text","type":"STRING","links":[33]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"TextGenerate"},"widgets_values":["",512,"on",0.7,64,0.95,0.05,1.05,0,0,false,true]},{"id":17,"type":"StringConcatenate","pos":[-210,1310],"size":[225,34],"flags":{"collapsed":true},"order":11,"mode":0,"inputs":[{"localized_name":"string_a","name":"string_a","type":"STRING","widget":{"name":"string_a"},"link":21},{"localized_name":"string_b","name":"string_b","type":"STRING","widget":{"name":"string_b"},"link":22},{"localized_name":"delimiter","name":"delimiter","type":"STRING","widget":{"name":"delimiter"},"link":null}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[19]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"StringConcatenate"},"widgets_values":["","",""]},{"id":18,"type":"PrimitiveStringMultiline","pos":[-430,650],"size":[460,610],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"STRING","widget":{"name":"value"},"link":null}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[21]}],"title":"Text String (System Prompt)","properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"PrimitiveStringMultiline"},"widgets_values":["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"]},{"id":19,"type":"PrimitiveStringMultiline","pos":[-1070,-290],"size":[570,800],"flags":{},"order":12,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"STRING","widget":{"name":"value"},"link":45}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[22,34]}],"title":"Text String (User Prompt)","properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"PrimitiveStringMultiline"},"widgets_values":["A chef flipping a pan of flaming vegetables, action shot, motion blur on flames, kitchen steam in background, Gritty film grain style"],"color":"#322","bgcolor":"#533"},{"id":20,"type":"PreviewAny","pos":[500,660],"size":[470,550],"flags":{"collapsed":false},"order":13,"mode":0,"inputs":[{"localized_name":"source","name":"source","type":"*","link":27}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[37,41]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"PreviewAny"},"widgets_values":[null,null,null]},{"id":21,"type":"ComfySwitchNode","pos":[170,1270],"size":[270,130],"flags":{},"order":14,"mode":0,"inputs":[{"localized_name":"on_false","name":"on_false","type":"STRING","link":34},{"localized_name":"on_true","name":"on_true","type":"STRING","link":33},{"localized_name":"switch","name":"switch","type":"BOOLEAN","widget":{"name":"switch"},"link":32}],"outputs":[{"localized_name":"output","name":"output","type":"STRING","links":[27]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"ComfySwitchNode"},"widgets_values":[false]},{"id":22,"type":"ComfySwitchNode","pos":[640,-270],"size":[320,130],"flags":{},"order":15,"mode":0,"inputs":[{"localized_name":"on_false","name":"on_false","type":"MODEL","link":28},{"localized_name":"on_true","name":"on_true","type":"MODEL","link":29},{"localized_name":"switch","name":"switch","type":"BOOLEAN","widget":{"name":"switch"},"link":31}],"outputs":[{"localized_name":"output","name":"output","type":"MODEL","links":[30]}],"title":"Switch (Model)","properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"ComfySwitchNode"},"widgets_values":[false]},{"id":23,"type":"PrimitiveBoolean","pos":[-910,670],"size":[270,110],"flags":{},"order":16,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"BOOLEAN","widget":{"name":"value"},"link":57}],"outputs":[{"localized_name":"BOOLEAN","name":"BOOLEAN","type":"BOOLEAN","links":[31,42]}],"title":"Boolean (Enable LoRA?)","properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"PrimitiveBoolean"},"widgets_values":[false]},{"id":24,"type":"PrimitiveBoolean","pos":[-910,840],"size":[270,110],"flags":{},"order":17,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"BOOLEAN","widget":{"name":"value"},"link":46}],"outputs":[{"localized_name":"BOOLEAN","name":"BOOLEAN","type":"BOOLEAN","links":[32]}],"title":"Boolean (Refine Prompt?)","properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"PrimitiveBoolean"},"widgets_values":[true]},{"id":27,"type":"StringConcatenate","pos":[1030,960],"size":[350,250],"flags":{"collapsed":false},"order":18,"mode":0,"inputs":[{"localized_name":"string_a","name":"string_a","type":"STRING","widget":{"name":"string_a"},"link":41},{"localized_name":"string_b","name":"string_b","type":"STRING","widget":{"name":"string_b"},"link":60},{"localized_name":"delimiter","name":"delimiter","type":"STRING","widget":{"name":"delimiter"},"link":null}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[38]}],"title":"Concatenate Text (LoRA Trigger Word)","properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"StringConcatenate"},"widgets_values":["","monochrome ink wash style",", "]},{"id":28,"type":"ComfySwitchNode","pos":[1050,670],"size":[340,130],"flags":{},"order":19,"mode":0,"inputs":[{"localized_name":"on_false","name":"on_false","type":"STRING","link":37},{"localized_name":"on_true","name":"on_true","type":"STRING","link":38},{"localized_name":"switch","name":"switch","type":"BOOLEAN","widget":{"name":"switch"},"link":42}],"outputs":[{"localized_name":"output","name":"output","type":"STRING","links":[40]}],"properties":{"cnr_id":"comfy-core","ver":"0.25.0","Node name for S&R":"ComfySwitchNode"},"widgets_values":[false]}],"groups":[{"id":1,"title":"Models","bounding":[-430,-320,490,850],"color":"#3f789e","flags":{}},{"id":4,"title":"Prompt Enhancement","bounding":[-440,580,1940,840],"color":"#3f789e","flags":{}},{"id":5,"title":"Group","bounding":[-1080,-360,610,910],"color":"#3f789e","flags":{}},{"id":6,"title":"Image Generation","bounding":[-440,-360,1940,910],"color":"#3f789e","flags":{}},{"id":7,"title":"Prompt","bounding":[90,-320,500,570],"color":"#3f789e","flags":{}},{"id":8,"title":"Size","bounding":[90,270,500,260],"color":"#3f789e","flags":{}},{"id":9,"title":"Feature Switch","bounding":[-1080,580,610,400],"color":"#3f789e","flags":{}}],"links":[{"id":10,"origin_id":11,"origin_slot":0,"target_id":6,"target_slot":0,"type":"CLIP"},{"id":40,"origin_id":28,"origin_slot":0,"target_id":6,"target_slot":1,"type":"STRING"},{"id":30,"origin_id":22,"origin_slot":0,"target_id":3,"target_slot":0,"type":"MODEL"},{"id":4,"origin_id":6,"origin_slot":0,"target_id":3,"target_slot":1,"type":"CONDITIONING"},{"id":14,"origin_id":13,"origin_slot":0,"target_id":3,"target_slot":2,"type":"CONDITIONING"},{"id":2,"origin_id":5,"origin_slot":0,"target_id":3,"target_slot":3,"type":"LATENT"},{"id":7,"origin_id":3,"origin_slot":0,"target_id":8,"target_slot":0,"type":"LATENT"},{"id":12,"origin_id":12,"origin_slot":0,"target_id":8,"target_slot":1,"type":"VAE"},{"id":13,"origin_id":6,"origin_slot":0,"target_id":13,"target_slot":0,"type":"CONDITIONING"},{"id":16,"origin_id":10,"origin_slot":0,"target_id":15,"target_slot":0,"type":"MODEL"},{"id":18,"origin_id":11,"origin_slot":0,"target_id":16,"target_slot":0,"type":"CLIP"},{"id":19,"origin_id":17,"origin_slot":0,"target_id":16,"target_slot":4,"type":"STRING"},{"id":21,"origin_id":18,"origin_slot":0,"target_id":17,"target_slot":0,"type":"STRING"},{"id":22,"origin_id":19,"origin_slot":0,"target_id":17,"target_slot":1,"type":"STRING"},{"id":27,"origin_id":21,"origin_slot":0,"target_id":20,"target_slot":0,"type":"STRING"},{"id":34,"origin_id":19,"origin_slot":0,"target_id":21,"target_slot":0,"type":"STRING"},{"id":33,"origin_id":16,"origin_slot":0,"target_id":21,"target_slot":1,"type":"STRING"},{"id":32,"origin_id":24,"origin_slot":0,"target_id":21,"target_slot":2,"type":"BOOLEAN"},{"id":28,"origin_id":10,"origin_slot":0,"target_id":22,"target_slot":0,"type":"MODEL"},{"id":29,"origin_id":15,"origin_slot":0,"target_id":22,"target_slot":1,"type":"MODEL"},{"id":31,"origin_id":23,"origin_slot":0,"target_id":22,"target_slot":2,"type":"BOOLEAN"},{"id":41,"origin_id":20,"origin_slot":0,"target_id":27,"target_slot":0,"type":"STRING"},{"id":37,"origin_id":20,"origin_slot":0,"target_id":28,"target_slot":0,"type":"STRING"},{"id":38,"origin_id":27,"origin_slot":0,"target_id":28,"target_slot":1,"type":"STRING"},{"id":42,"origin_id":23,"origin_slot":0,"target_id":28,"target_slot":2,"type":"BOOLEAN"},{"id":43,"origin_id":8,"origin_slot":0,"target_id":-20,"target_slot":0,"type":"IMAGE"},{"id":45,"origin_id":-10,"origin_slot":0,"target_id":19,"target_slot":0,"type":"STRING"},{"id":46,"origin_id":-10,"origin_slot":1,"target_id":24,"target_slot":0,"type":"BOOLEAN"},{"id":49,"origin_id":-10,"origin_slot":2,"target_id":16,"target_slot":5,"type":"INT"},{"id":50,"origin_id":-10,"origin_slot":3,"target_id":5,"target_slot":0,"type":"INT"},{"id":51,"origin_id":-10,"origin_slot":4,"target_id":5,"target_slot":1,"type":"INT"},{"id":56,"origin_id":-10,"origin_slot":5,"target_id":3,"target_slot":4,"type":"INT"},{"id":57,"origin_id":-10,"origin_slot":6,"target_id":23,"target_slot":0,"type":"BOOLEAN"},{"id":58,"origin_id":-10,"origin_slot":7,"target_id":15,"target_slot":1,"type":"COMBO"},{"id":59,"origin_id":-10,"origin_slot":8,"target_id":15,"target_slot":2,"type":"FLOAT"},{"id":60,"origin_id":-10,"origin_slot":9,"target_id":27,"target_slot":1,"type":"STRING"},{"id":61,"origin_id":-10,"origin_slot":10,"target_id":10,"target_slot":0,"type":"COMBO"},{"id":62,"origin_id":-10,"origin_slot":11,"target_id":11,"target_slot":0,"type":"COMBO"},{"id":63,"origin_id":-10,"origin_slot":12,"target_id":12,"target_slot":0,"type":"COMBO"}],"extra":{}},{"id":"460e1a4e-4b3b-455a-8ab0-e7581839db23","version":1,"state":{"lastGroupId":10,"lastNodeId":50,"lastLinkId":71,"lastRerouteId":0},"revision":0,"config":{},"name":"Select Per-Line Text by Index","description":"Selects one line from multiline text by zero-based index for batch or list-driven prompt workflows.","inputNode":{"id":-10,"bounding":[-990,8595,128,88]},"outputNode":{"id":-20,"bounding":[710,8585,128,68]},"inputs":[{"id":"75417d82-a934-4ac9-b667-d8dcd5a3bfb3","name":"text_per_line","type":"STRING","linkIds":[13],"localized_name":"text_per_line","pos":[-886,8619]},{"id":"46e69a73-1804-4ca6-9175-31445bf0be96","name":"index","type":"INT","linkIds":[14],"localized_name":"index","pos":[-886,8639]}],"outputs":[{"id":"e34e8ad1-84d2-4bd2-a460-eb7de6067c10","name":"selected_line","type":"STRING","linkIds":[10],"localized_name":"selected_line","pos":[734,8609]}],"widgets":[],"nodes":[{"id":1,"type":"PreviewAny","pos":[-500,8400],"size":[230,180],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"source","name":"source","type":"*","link":1}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[6]}],"properties":{"cnr_id":"comfy-core","ver":"0.19.0","Node name for S&R":"PreviewAny","ue_properties":{"widget_ue_connectable":{},"input_ue_unconnectable":{}}},"widgets_values":[null,null,null]},{"id":2,"type":"RegexExtract","pos":[-240,8740],"size":[470,460],"flags":{},"order":1,"mode":0,"showAdvanced":false,"inputs":[{"localized_name":"string","name":"string","type":"STRING","widget":{"name":"string"},"link":13},{"localized_name":"regex_pattern","name":"regex_pattern","type":"STRING","widget":{"name":"regex_pattern"},"link":9},{"localized_name":"mode","name":"mode","type":"COMBO","widget":{"name":"mode"},"link":null},{"localized_name":"case_insensitive","name":"case_insensitive","type":"BOOLEAN","widget":{"name":"case_insensitive"},"link":null},{"localized_name":"multiline","name":"multiline","type":"BOOLEAN","widget":{"name":"multiline"},"link":null},{"localized_name":"dotall","name":"dotall","type":"BOOLEAN","widget":{"name":"dotall"},"link":null},{"localized_name":"group_index","name":"group_index","type":"INT","widget":{"name":"group_index"},"link":null}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[10]}],"properties":{"cnr_id":"comfy-core","ver":"0.19.0","Node name for S&R":"RegexExtract","ue_properties":{"widget_ue_connectable":{},"input_ue_unconnectable":{}}},"widgets_values":["Teal watercolor illustration style\nMonochrome ink wash style\nEthereal shimmering light style\nMuted minimalist sketch style","","First Group",false,false,false,1]},{"id":43,"type":"PrimitiveInt","pos":[-810,8400],"size":[270,110],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"value","name":"value","type":"INT","widget":{"name":"value"},"link":14}],"outputs":[{"localized_name":"INT","name":"INT","type":"INT","links":[1]}],"title":"Int (line index)","properties":{"cnr_id":"comfy-core","ver":"0.19.0","Node name for S&R":"Int (line index)","ue_properties":{"widget_ue_connectable":{},"input_ue_unconnectable":{}}},"widgets_values":[0,"fixed"]},{"id":44,"type":"StringReplace","pos":[-240,8400],"size":[400,280],"flags":{},"order":3,"mode":0,"inputs":[{"localized_name":"string","name":"string","type":"STRING","widget":{"name":"string"},"link":null},{"localized_name":"find","name":"find","type":"STRING","widget":{"name":"find"},"link":null},{"localized_name":"replace","name":"replace","type":"STRING","widget":{"name":"replace"},"link":6}],"outputs":[{"localized_name":"STRING","name":"STRING","type":"STRING","links":[9]}],"properties":{"cnr_id":"comfy-core","ver":"0.19.0","Node name for S&R":"StringReplace","ue_properties":{"widget_ue_connectable":{},"input_ue_unconnectable":{}}},"widgets_values":["^(?:[^\\n]*\\n){index}([^\\n]*)(?:\\n|$)","index",""]}],"groups":[],"links":[{"id":1,"origin_id":43,"origin_slot":0,"target_id":1,"target_slot":0,"type":"INT"},{"id":9,"origin_id":44,"origin_slot":0,"target_id":2,"target_slot":1,"type":"STRING"},{"id":6,"origin_id":1,"origin_slot":0,"target_id":44,"target_slot":2,"type":"STRING"},{"id":10,"origin_id":2,"origin_slot":0,"target_id":-20,"target_slot":0,"type":"STRING"},{"id":13,"origin_id":-10,"origin_slot":0,"target_id":2,"target_slot":0,"type":"STRING"},{"id":14,"origin_id":-10,"origin_slot":1,"target_id":43,"target_slot":0,"type":"INT"}],"extra":{"ue_links":[],"links_added_by_ue":[]}}]},"config":{},"extra":{"frontendVersion":"1.45.19","VHS_latentpreview":false,"VHS_latentpreviewrate":0,"VHS_MetadataImage":true,"VHS_KeepIntermediate":true,"ds":{"scale":0.8264462809917354,"offset":[886.9375291409843,276.65143212551817]}},"version":0.4}