ComfyUI Workflow

View and download your workflow JSON

{
  "last_node_id": 5,
  "last_link_id": 9,
  "nodes": [
    {
      "id": 1,
      "type": "CheckpointLoaderSimple",
      "inputs": {},
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1
          ],
          "slot_index": 0
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            2
          ],
          "slot_index": 1
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            3
          ],
          "slot_index": 2
        }
      ],
      "properties": {
        "Node name for SDF": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "v1-5-pruned-emaonly.ckpt",
        "FP16"
      ],
      "title": "Load Model"
    },
    {
      "id": 2,
      "type": "CLIPTextEncode",
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 2
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            4
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for SDF": "CLIPTextEncode"
      },
      "widgets_values": [
        "best quality, masterpiece, ultra-detailed, 8k, highres, photorealistic, 1girl, solo, beautiful detailed face, beautiful detailed eyes, detailed skin texture, soft lighting, cinematic lighting, dramatic lighting",
        "text"
      ],
      "title": "Positive Prompt"
    },
    {
      "id": 3,
      "type": "KSampler",
      "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
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for SDF": "KSampler"
      },
      "widgets_values": [
        20,
        8,
        7,
        "dpmpp_2m",
        "karras",
        1,
        "randomize"
      ],
      "title": "Sampler"
    },
    {
      "id": 4,
      "type": "VAEDecode",
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 7
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            8
          ],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for SDF": "VAEDecode"
      },
      "widgets_values": [],
      "title": "Decode Latent"
    },
    {
      "id": 5,
      "type": "SaveImage",
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 8
        }
      ],
      "properties": {
        "Node name for SDF": "SaveImage"
      },
      "widgets_values": [],
      "title": "Save Output"
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      3,
      0,
      "MODEL"
    ],
    [
      2,
      1,
      1,
      2,
      0,
      "CLIP"
    ],
    [
      3,
      1,
      2,
      4,
      1,
      "VAE"
    ],
    [
      4,
      2,
      0,
      3,
      1,
      "CONDITIONING"
    ],
    [
      5,
      2,
      1,
      3,
      2,
      "CONDITIONING"
    ],
    [
      6,
      1,
      -1,
      3,
      3,
      "LATENT"
    ],
    [
      7,
      3,
      0,
      4,
      0,
      "LATENT"
    ],
    [
      8,
      4,
      0,
      5,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "title": "Model Loading",
      "bounds": [
        50,
        50,
        200,
        200
      ]
    },
    {
      "title": "Text Encoding",
      "bounds": [
        350,
        50,
        200,
        200
      ]
    },
    {
      "title": "Sampling",
      "bounds": [
        50,
        350,
        200,
        200
      ]
    },
    {
      "title": "Decoding & Saving",
      "bounds": [
        350,
        350,
        200,
        200
      ]
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 1,
      "offset": [
        0,
        0
      ]
    }
  },
  "version": 0.4,
  "metadata": {
    "nodes": [
      {
        "type": "CheckpointLoaderSimple",
        "parameters": {
          "ckpt_name": "v1-5-pruned-emaonly.ckpt",
          "weight_dtype": "FP16"
        }
      },
      {
        "type": "CLIPTextEncode",
        "parameters": {
          "text": "best quality, masterpiece, ultra-detailed, 8k, highres, photorealistic, 1girl, solo, beautiful detailed face, beautiful detailed eyes, detailed skin texture, soft lighting, cinematic lighting, dramatic lighting",
          "clip_name": "CLIP"
        }
      },
      {
        "type": "KSampler",
        "parameters": {
          "steps": 20,
          "cfg": 7,
          "sampler_name": "dpmpp_2m",
          "scheduler": "karras",
          "denoise": 1,
          "seed": "randomize"
        }
      }
    ]
  },
  "description": "A basic Stable Diffusion 1.5 Text-to-Image workflow. Loads a model, encodes positive/negative prompts, samples from the latent space, decodes to image, and saves the result.",
  "created_by": "ComfyUI",
  "tags": [
    "text-to-image",
    "sd1.5",
    "basic"
  ],
  "built_with": "https://huggingface.co/spaces/akhaliq/anycoder"
}