{ "last_node_id": 12, "last_link_id": 18, "nodes": [ { "id": 1, "type": "CheckpointLoaderSimple", "pos": [ 100, 100 ], "size": { "0": 315, "1": 98 }, "flags": {}, "order": 0, "mode": 0, "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 1 ] }, { "name": "CLIP", "type": "CLIP", "links": [ 2 ] }, { "name": "VAE", "type": "VAE", "links": [ 3 ] } ], "properties": { "Node name for S&R": "CheckpointLoaderSimple" } }, { "id": 2, "type": "CLIPTextEncode", "pos": [ 450, 100 ], "size": [ 300, 180 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 2 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 4 ] } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "beautiful landscape photography, high quality, detailed, 4k" ] }, { "id": 3, "type": "CLIPTextEncode", "pos": [ 450, 300 ], "size": [ 300, 180 ], "flags": {}, "order": 2, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 2 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 5 ] } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "blurry, low quality, distorted, ugly" ] }, { "id": 4, "type": "KSampler", "pos": [ 800, 100 ], "size": [ 315, 262 ], "flags": {}, "order": 3, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 1 }, { "name": "positive", "type": "CONDITIONING", "link": 4 }, { "name": "negative", "type": "CONDITIONING", "link": 5 }, { "name": "latent_image", "type": "LATENT", "link": 6 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 7 ] } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 84796741244667, "randomize", 20, 7.0, "euler" ] }, { "id": 5, "type": "EmptyLatentImage", "pos": [ 550, 100 ], "size": [ 315, 106 ], "flags": {}, "order": 4, "mode": 0, "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 6 ] } ], "properties": { "Node name for S&R": "EmptyLatentImage" }, "widgets_values": [ 512, 512, 1 ] }, { "id": 6, "type": "VAEDecode", "pos": [ 1150, 100 ], "size": [ 210, 46 ], "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 7 }, { "name": "vae", "type": "VAE", "link": 3 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 8 ] } ], "properties": { "Node name for S&R": "VAEDecode" } }, { "id": 7, "type": "SaveImage", "pos": [ 1400, 100 ], "size": [ 315, 270 ], "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 8 } ], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "stable_diffusion_output" ] }, { "id": 8, "type": "SaveImage", "pos": [ 1400, 400 ], "size": [ 315, 270 ], "flags": {}, "order": 7, "mode": 0, "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "stable_diffusion_grid" ] }, { "id": 9, "type": "CLIPTextEncode", "pos": [ 450, 520 ], "size": [ 300, 180 ], "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 2 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 14 ] } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "portrait of a woman, detailed face, professional photography" ] }, { "id": 10, "type": "KSampler", "pos": [ 800, 400 ], "size": [ 315, 262 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 1 }, { "name": "positive", "type": "CONDITIONING", "link": 14 }, { "name": "negative", "type": "CONDITIONING", "link": 5 }, { "name": "latent_image", "type": "LATENT", "link": 15 } ], "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 16 ] } ], "properties": { "Node name for S&R": "KSampler" }, "widgets_values": [ 12345678901234, "randomize", 25, 8.0, "euler" ] }, { "id": 11, "type": "EmptyLatentImage", "pos": [ 550, 400 ], "size": [ 315, 106 ], "flags": {}, "order": 10, "mode": 0, "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 15 ] } ], "properties": { "Node name for S&R": "EmptyLatentImage" }, "widgets_values": [ 768, 512, 1 ] }, { "id": 12, "type": "VAEDecode", "pos": [ 1150, 400 ], "size": [ 210, 46 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 16 }, { "name": "vae", "type": "VAE", "link": 3 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 17 ] } ], "properties": { "Node name for S&R": "VAEDecode" } }, { "id": 13, "type": "SaveImage", "pos": [ 1400, 700 ], "size": [ 315, 270 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 17 } ], "properties": { "Node name for S&R": "SaveImage" }, "widgets_values": [ "stable_diffusion_portrait" ] } ], "links": [ [ 1, 1, 0, 4, 0, "MODEL" ], [ 2, 1, 1, 2, 0, "CLIP" ], [ 3, 1, 2, 6, 1, "VAE" ], [ 4, 2, 0, 4, 1, "CONDITIONING" ], [ 5, 3, 0, 4, 2, "CONDITIONING" ], [ 6, 5, 0, 4, 3, "LATENT" ], [ 7, 4, 0, 6, 0, "LATENT" ], [ 8, 6, 0, 7, 0, "IMAGE" ], [ 14, 9, 0, 10, 1, "CONDITIONING" ], [ 15, 11, 0, 10, 3, "LATENT" ], [ 16, 10, 0, 12, 0, "LATENT" ], [ 17, 12, 0, 13, 0, "IMAGE" ] ], "groups": [], "config": {}, "extra": {}, "version": 0.4 } This ComfyUI workflow implements a complete stable diffusion image generation pipeline with the following features: **Core Components:** - **CheckpointLoaderSimple**: Loads the stable diffusion model, CLIP, and VAE - **CLIPTextEncode**: Encodes positive and negative prompts for conditioning - **KSampler**: Performs the diffusion sampling process - **EmptyLatentImage**: Creates initial latent canvas - **VAEDecode**: Decodes latents to final images - **SaveImage**: Outputs the generated images **Key Features:** 1. **Dual Sampling Paths**: Two complete generation pipelines for different image types 2. **Positive/Negative Prompting**: Uses CLIP for text conditioning with both positive and negative prompts 3. **Customizable Parameters**: - Different sampling steps (20 vs 25) - Various CFG scales (7.0 vs 8.0) - Different image sizes (512x512 vs 768x512) 4. **Multiple Outputs**: Generates landscape and portrait style images **Usage:** 1. Load a stable diffusion checkpoint (e.g., sd_v1-5.safetensors) 2. The workflow automatically processes two different prompts 3. Outputs saved as individual image files 4. Ready for batch processing or single image generation The workflow demonstrates the complete stable diffusion pipeline and can be easily modified for different models, prompts, or parameters.