ComfyUI Workflow

View and download your workflow JSON

{
  "last_node_id": 9,
  "last_link_id": 8,
  "nodes": [
    {
      "id": 1,
      "type": "Note",
      "pos": [
        100,
        100
      ],
      "size": [
        320,
        120
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## Prompt Generator\n\nThis workflow generates creative prompts using a language model and uses them to create images.\n\nBuilt with anycoder - https://huggingface.co/spaces/akhaliq/anycoder"
      ]
    },
    {
      "id": 2,
      "type": "CheckpointLoaderSimple",
      "pos": [
        100,
        300
      ],
      "size": [
        320,
        100
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        [
          "MODEL",
          0
        ],
        [
          "CLIP",
          1
        ],
        [
          "VAE",
          2
        ]
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "sd_xl_base_1.0.safetensors"
      ]
    },
    {
      "id": 3,
      "type": "CLIPTextEncode",
      "pos": [
        500,
        250
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        [
          "clip",
          2,
          1
        ]
      ],
      "outputs": [
        [
          "CONDITIONING",
          0
        ]
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "beautiful landscape with mountains and a river, sunset lighting, highly detailed, 8k quality, masterpiece",
        true
      ]
    },
    {
      "id": 4,
      "type": "CLIPTextEncode",
      "pos": [
        500,
        500
      ],
      "size": [
        400,
        200
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        [
          "clip",
          2,
          1
        ]
      ],
      "outputs": [
        [
          "CONDITIONING",
          0
        ]
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "blurry, low quality, distorted, ugly, deformed, watermark, signature, text, bad anatomy",
        true
      ]
    },
    {
      "id": 5,
      "type": "EmptyLatentImage",
      "pos": [
        500,
        750
      ],
      "size": [
        320,
        110
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        [
          "LATENT",
          0
        ]
      ],
      "properties": {
        "Node name for S&R": "EmptyLatentImage"
      },
      "widgets_values": [
        1024,
        1024,
        1
      ]
    },
    {
      "id": 6,
      "type": "KSampler",
      "pos": [
        950,
        350
      ],
      "size": [
        320,
        475
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        [
          "model",
          2,
          0
        ],
        [
          "positive",
          3,
          0
        ],
        [
          "negative",
          4,
          0
        ],
        [
          "latent_image",
          5,
          0
        ]
      ],
      "outputs": [
        [
          "LATENT",
          0
        ]
      ],
      "properties": {
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        156680208500286,
        "randomize",
        20,
        8,
        "euler",
        "normal",
        1
      ]
    },
    {
      "id": 7,
      "type": "VAEDecode",
      "pos": [
        1350,
        450
      ],
      "size": [
        210,
        50
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        [
          "samples",
          6,
          0
        ],
        [
          "vae",
          2,
          2
        ]
      ],
      "outputs": [
        [
          "IMAGE",
          0
        ]
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": []
    },
    {
      "id": 8,
      "type": "SaveImage",
      "pos": [
        1650,
        450
      ],
      "size": [
        320,
        270
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        [
          "images",
          7,
          0
        ]
      ],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "PromptGenerator",
        true
      ]
    },
    {
      "id": 9,
      "type": "Note",
      "pos": [
        100,
        500
      ],
      "size": [
        320,
        200
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## How to use:\n\n1. Replace the positive prompt in node 3 with your generated prompt\n2. Or connect to an LLM API node for automatic prompt generation\n3. Adjust KSampler settings for different results\n4. Change checkpoint model as needed\n\nFor automatic prompt generation, consider using:\n- OpenAI GPT nodes\n- Custom prompt generator nodes\n- External API integrations"
      ]
    }
  ],
  "links": [
    [
      1,
      2,
      0,
      6,
      0,
      "MODEL"
    ],
    [
      2,
      2,
      1,
      3,
      0,
      "CLIP"
    ],
    [
      3,
      2,
      1,
      4,
      0,
      "CLIP"
    ],
    [
      4,
      2,
      2,
      7,
      1,
      "VAE"
    ],
    [
      5,
      3,
      0,
      6,
      1,
      "CONDITIONING"
    ],
    [
      6,
      4,
      0,
      6,
      2,
      "CONDITIONING"
    ],
    [
      7,
      5,
      0,
      6,
      3,
      "LATENT"
    ],
    [
      8,
      6,
      0,
      7,
      0,
      "LATENT"
    ],
    [
      9,
      7,
      0,
      8,
      0,
      "IMAGE"
    ]
  ],
  "groups": [
    {
      "title": "Prompt Generator Base Workflow",
      "bounding": [
        50,
        50,
        2000,
        800
      ],
      "color": "#3f789e",
      "font_size": 24,
      "locked": false
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 1,
      "offset": [
        0,
        0
      ]
    },
    "node_versions": {
      "comfy-core": "0.3.27"
    }
  },
  "version": 0.4
}