{
  "id": "e0361c75-4d9e-44e1-b5af-0573e8dbfd81",
  "revision": 0,
  "last_node_id": 67,
  "last_link_id": 107,
  "nodes": [
    {
      "id": 49,
      "type": "ReferenceLatent",
      "pos": [
        1023.7685400049872,
        160.40068341159756
      ],
      "size": [
        204.134765625,
        46
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 70
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 75
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            86
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ReferenceLatent",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 57,
      "type": "ReferenceLatent",
      "pos": [
        1267.7068138966924,
        160.40068341159756
      ],
      "size": [
        204.134765625,
        46
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 86
        },
        {
          "name": "latent",
          "shape": 7,
          "type": "LATENT",
          "link": 94
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            88
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ReferenceLatent",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 62,
      "type": "VAEEncode",
      "pos": [
        816.121477270894,
        701.2683177920061
      ],
      "size": [
        162,
        46
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 93
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 96
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            94
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEEncode",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 51,
      "type": "ResizeImageMaskNode",
      "pos": [
        223.12102751100818,
        471.02558767069615
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 72
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            82
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeImageMaskNode",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [
        "scale total pixels",
        1,
        "nearest-exact"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 43,
      "type": "VAELoader",
      "pos": [
        514.5525198081705,
        876.5164639782489
      ],
      "size": [
        259,
        58
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            62,
            76,
            96
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        "flux2-vae.safetensors"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 60,
      "type": "LoadImage",
      "pos": [
        -95.27710047562067,
        986.266570016838
      ],
      "size": [
        296.798828125,
        458.0000000000001
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            90
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [
        "3 (2).png",
        "image"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 50,
      "type": "LoadImage",
      "pos": [
        -95.80499587437637,
        471.02558767069615
      ],
      "size": [
        296.798828125,
        458.0000000000001
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            72
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [
        "32.png",
        "image"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 31,
      "type": "KSampler",
      "pos": [
        1511.6450877883976,
        160.40068341159756
      ],
      "size": [
        315,
        262
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 69
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 88
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 100
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 98
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            52
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        1234,
        "fixed",
        4,
        1,
        "euler",
        "simple",
        1
      ]
    },
    {
      "id": 63,
      "type": "Reroute",
      "pos": [
        1390.9980250543044,
        471.02558767069615
      ],
      "size": [
        75,
        26
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "",
          "type": "*",
          "link": 97
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "LATENT",
          "links": [
            98
          ]
        }
      ],
      "properties": {
        "showOutputText": false,
        "horizontal": false
      }
    },
    {
      "id": 52,
      "type": "VAEEncode",
      "pos": [
        816.121477270894,
        471.02558767069615
      ],
      "size": [
        162,
        46
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 80
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 76
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            75,
            97
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEEncode",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 33,
      "type": "CLIPTextEncode",
      "pos": [
        558.700000000001,
        387.24938745307793
      ],
      "size": [
        425.2650317382812,
        122.99611236572264
      ],
      "flags": {
        "collapsed": true
      },
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 64
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            100
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        ""
      ]
    },
    {
      "id": 48,
      "type": "UNETLoader",
      "pos": [
        1163.6823007839012,
        19.495025634765582
      ],
      "size": [
        308.1592787377913,
        82
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            69
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [
        "Flux.2\\flux-2-klein-9b-fp8.safetensors",
        "default"
      ],
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 44,
      "type": "CLIPLoader",
      "pos": [
        224.49879211425772,
        292.66704483032197
      ],
      "size": [
        283.80000000000007,
        106
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            63,
            64
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.73"
      },
      "widgets_values": [
        "qwen_3_8b.safetensors",
        "flux2",
        "default"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 45,
      "type": "SaveImage",
      "pos": [
        2061.6450877883976,
        160.40068341159756
      ],
      "size": [
        582.6799999999998,
        614.729
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 65
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.73"
      },
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "id": 6,
      "type": "CLIPTextEncode",
      "pos": [
        558.700000000001,
        160.40068341159756
      ],
      "size": [
        425.2650317382812,
        167.9430462646484
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 63
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            70
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": [
        "Change image 1 to match the style of image 2."
      ]
    },
    {
      "id": 54,
      "type": "ResizeImageMaskNode",
      "pos": [
        515.2482227713929,
        471.02558767069615
      ],
      "size": [
        258.18181818181813,
        106
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 82
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            80
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeImageMaskNode",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [
        "scale to multiple",
        16,
        "nearest-exact"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 59,
      "type": "ResizeImageMaskNode",
      "pos": [
        223.12102751100818,
        701.2683177920061
      ],
      "size": [
        270,
        106
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 90
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            93
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeImageMaskNode",
        "cnr_id": "comfy-core",
        "ver": "0.9.2"
      },
      "widgets_values": [
        "scale total pixels",
        1,
        "nearest-exact"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        1863.6450877883976,
        160.40068341159756
      ],
      "size": [
        161.111083984375,
        46
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 52
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 62
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            65
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode",
        "cnr_id": "comfy-core",
        "ver": "0.3.39"
      },
      "widgets_values": []
    }
  ],
  "links": [
    [
      52,
      31,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      62,
      43,
      0,
      8,
      1,
      "VAE"
    ],
    [
      63,
      44,
      0,
      6,
      0,
      "CLIP"
    ],
    [
      64,
      44,
      0,
      33,
      0,
      "CLIP"
    ],
    [
      65,
      8,
      0,
      45,
      0,
      "IMAGE"
    ],
    [
      69,
      48,
      0,
      31,
      0,
      "MODEL"
    ],
    [
      70,
      6,
      0,
      49,
      0,
      "CONDITIONING"
    ],
    [
      72,
      50,
      0,
      51,
      0,
      "IMAGE"
    ],
    [
      75,
      52,
      0,
      49,
      1,
      "LATENT"
    ],
    [
      76,
      43,
      0,
      52,
      1,
      "VAE"
    ],
    [
      80,
      54,
      0,
      52,
      0,
      "IMAGE"
    ],
    [
      82,
      51,
      0,
      54,
      0,
      "IMAGE"
    ],
    [
      86,
      49,
      0,
      57,
      0,
      "CONDITIONING"
    ],
    [
      88,
      57,
      0,
      31,
      1,
      "CONDITIONING"
    ],
    [
      90,
      60,
      0,
      59,
      0,
      "IMAGE"
    ],
    [
      93,
      59,
      0,
      62,
      0,
      "IMAGE"
    ],
    [
      94,
      62,
      0,
      57,
      1,
      "LATENT"
    ],
    [
      96,
      43,
      0,
      62,
      1,
      "VAE"
    ],
    [
      97,
      52,
      0,
      63,
      0,
      "LATENT"
    ],
    [
      98,
      63,
      0,
      31,
      3,
      "LATENT"
    ],
    [
      100,
      33,
      0,
      31,
      2,
      "CONDITIONING"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.7513148009015782,
      "offset": [
        -105.44362082407476,
        183.45635792216694
      ]
    },
    "frontendVersion": "1.38.8",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}