{
  "last_node_id": 15,
  "last_link_id": 17,
  "nodes": [
    {
      "id": 1,
      "type": "UNETLoader",
      "pos": [20, 40],
      "size": [330, 82],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        { "name": "MODEL", "type": "MODEL", "links": [1], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "UNETLoader" },
      "widgets_values": ["flux1-kontext-dev.safetensors", "default"]
    },
    {
      "id": 2,
      "type": "DualCLIPLoader",
      "pos": [20, 170],
      "size": [330, 122],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        { "name": "CLIP", "type": "CLIP", "links": [2], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "DualCLIPLoader" },
      "widgets_values": ["t5xxl_fp16.safetensors", "clip_l.safetensors", "flux"]
    },
    {
      "id": 3,
      "type": "VAELoader",
      "pos": [20, 340],
      "size": [330, 58],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        { "name": "VAE", "type": "VAE", "links": [7, 16], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "VAELoader" },
      "widgets_values": ["ae.safetensors"]
    },
    {
      "id": 4,
      "type": "LoadImage",
      "pos": [20, 450],
      "size": [320, 320],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        { "name": "IMAGE", "type": "IMAGE", "links": [3], "slot_index": 0 },
        { "name": "MASK", "type": "MASK", "links": null, "slot_index": 1 }
      ],
      "properties": { "Node name for S&R": "LoadImage" },
      "widgets_values": ["imagen1.png", "image"]
    },
    {
      "id": 5,
      "type": "LoadImage",
      "pos": [360, 450],
      "size": [320, 320],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        { "name": "IMAGE", "type": "IMAGE", "links": [4], "slot_index": 0 },
        { "name": "MASK", "type": "MASK", "links": null, "slot_index": 1 }
      ],
      "properties": { "Node name for S&R": "LoadImage" },
      "widgets_values": ["imagen2.png", "image"]
    },
    {
      "id": 6,
      "type": "ImageStitch",
      "pos": [700, 450],
      "size": [280, 150],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        { "name": "image1", "type": "IMAGE", "link": 3 },
        { "name": "image2", "type": "IMAGE", "link": 4 }
      ],
      "outputs": [
        { "name": "IMAGE", "type": "IMAGE", "links": [5], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "ImageStitch" },
      "widgets_values": ["right", true, 0, "white"]
    },
    {
      "id": 7,
      "type": "FluxKontextImageScale",
      "pos": [700, 640],
      "size": [280, 58],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        { "name": "image", "type": "IMAGE", "link": 5 }
      ],
      "outputs": [
        { "name": "IMAGE", "type": "IMAGE", "links": [6], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "FluxKontextImageScale" }
    },
    {
      "id": 8,
      "type": "VAEEncode",
      "pos": [1000, 560],
      "size": [200, 46],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        { "name": "pixels", "type": "IMAGE", "link": 6 },
        { "name": "vae", "type": "VAE", "link": 7 }
      ],
      "outputs": [
        { "name": "LATENT", "type": "LATENT", "links": [9, 14], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "VAEEncode" }
    },
    {
      "id": 9,
      "type": "CLIPTextEncode",
      "pos": [400, 40],
      "size": [450, 180],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        { "name": "clip", "type": "CLIP", "link": 2 }
      ],
      "outputs": [
        { "name": "CONDITIONING", "type": "CONDITIONING", "links": [8, 11], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "CLIPTextEncode" },
      "widgets_values": ["Place the person from the first image into the scene of the second image, keeping realistic lighting and proportions"]
    },
    {
      "id": 10,
      "type": "ReferenceLatent",
      "pos": [900, 240],
      "size": [260, 46],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        { "name": "conditioning", "type": "CONDITIONING", "link": 8 },
        { "name": "latent", "type": "LATENT", "link": 9 }
      ],
      "outputs": [
        { "name": "CONDITIONING", "type": "CONDITIONING", "links": [10], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "ReferenceLatent" }
    },
    {
      "id": 11,
      "type": "FluxGuidance",
      "pos": [900, 330],
      "size": [260, 58],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        { "name": "conditioning", "type": "CONDITIONING", "link": 10 }
      ],
      "outputs": [
        { "name": "CONDITIONING", "type": "CONDITIONING", "links": [12], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "FluxGuidance" },
      "widgets_values": [2.5]
    },
    {
      "id": 12,
      "type": "ConditioningZeroOut",
      "pos": [900, 430],
      "size": [260, 46],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        { "name": "conditioning", "type": "CONDITIONING", "link": 11 }
      ],
      "outputs": [
        { "name": "CONDITIONING", "type": "CONDITIONING", "links": [13], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "ConditioningZeroOut" }
    },
    {
      "id": 13,
      "type": "KSampler",
      "pos": [1220, 240],
      "size": [300, 262],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        { "name": "model", "type": "MODEL", "link": 1 },
        { "name": "positive", "type": "CONDITIONING", "link": 12 },
        { "name": "negative", "type": "CONDITIONING", "link": 13 },
        { "name": "latent_image", "type": "LATENT", "link": 14 }
      ],
      "outputs": [
        { "name": "LATENT", "type": "LATENT", "links": [15], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "KSampler" },
      "widgets_values": [156680208700286, "randomize", 20, 1.0, "euler", "simple", 1.0]
    },
    {
      "id": 14,
      "type": "VAEDecode",
      "pos": [1560, 240],
      "size": [200, 46],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        { "name": "samples", "type": "LATENT", "link": 15 },
        { "name": "vae", "type": "VAE", "link": 16 }
      ],
      "outputs": [
        { "name": "IMAGE", "type": "IMAGE", "links": [17], "slot_index": 0 }
      ],
      "properties": { "Node name for S&R": "VAEDecode" }
    },
    {
      "id": 15,
      "type": "SaveImage",
      "pos": [1560, 340],
      "size": [400, 450],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        { "name": "images", "type": "IMAGE", "link": 17 }
      ],
      "outputs": [],
      "properties": {},
      "widgets_values": ["FluxKontext"]
    }
  ],
  "links": [
    [1, 1, 0, 13, 0, "MODEL"],
    [2, 2, 0, 9, 0, "CLIP"],
    [3, 4, 0, 6, 0, "IMAGE"],
    [4, 5, 0, 6, 1, "IMAGE"],
    [5, 6, 0, 7, 0, "IMAGE"],
    [6, 7, 0, 8, 0, "IMAGE"],
    [7, 3, 0, 8, 1, "VAE"],
    [8, 9, 0, 10, 0, "CONDITIONING"],
    [9, 8, 0, 10, 1, "LATENT"],
    [10, 10, 0, 11, 0, "CONDITIONING"],
    [11, 9, 0, 12, 0, "CONDITIONING"],
    [12, 11, 0, 13, 1, "CONDITIONING"],
    [13, 12, 0, 13, 2, "CONDITIONING"],
    [14, 8, 0, 13, 3, "LATENT"],
    [15, 13, 0, 14, 0, "LATENT"],
    [16, 3, 0, 14, 1, "VAE"],
    [17, 14, 0, 15, 0, "IMAGE"]
  ],
  "groups": [],
  "config": {},
  "extra": {},
  "version": 0.4
}
