{
  "last_node_id": 16,
  "last_link_id": 18,
  "nodes": [
    {
      "id": 1,
      "type": "CheckpointLoaderSimple",
      "pos": [50, 100],
      "size": [315, 98],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": {},
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [1],
          "slot_index": 0
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [2, 3],
          "slot_index": 1
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [4],
          "slot_index": 2
        }
      ],
      "properties": {
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "flux/FLUX.1-Klein-dev-fp8.safetensors"
      ]
    },
    {
      "id": 2,
      "type": "LoadImage",
      "pos": [50, 350],
      "size": [315, 314],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": {},
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [5],
          "slot_index": 0
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "reference_image.png",
        "image"
      ]
    },
    {
      "id": 3,
      "type": "CLIPTextEncode",
      "pos": [450, 50],
      "size": [400, 200],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 2
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [6],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "a portrait of a woman with long hair, studio lighting, professional photography, highly detailed"
      ]
    },
    {
      "id": 4,
      "type": "CLIPTextEncode",
      "pos": [450, 350],
      "size": [400, 100],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 3
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [7],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "blurry, low quality, watermark, text"
      ]
    },
    {
      "id": 5,
      "type": "CLIPVisionEncode",
      "pos": [450, 650],
      "size": [315, 78],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 2
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 5
        }
      ],
      "outputs": [
        {
          "name": "CLIP_VISION_OUTPUT",
          "type": "CLIP_VISION_OUTPUT",
          "links": [8],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPVisionEncode"
      },
      "widgets_values": []
    },
    {
      "id": 6,
      "type": "FluxGuidance",
      "pos": [850, 50],
      "size": [218, 58],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 6
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [9],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "FluxGuidance"
      },
      "widgets_values": [
        1.0
      ]
    },
    {
      "id": 7,
      "type": "EmptyLatentImage",
      "pos": [50, 750],
      "size": [315, 106],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": {},
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [10],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyLatentImage"
      },
      "widgets_values": [
        832,
        1216,
        1
      ]
    },
    {
      "id": 8,
      "type": "KSampler",
      "pos": [1150, 200],
      "size": [315, 262],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 9
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 7
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 10
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [11],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        42,
        "randomize",
        8,
        1.0,
        "euler_cfg_pp",
        "simple",
        1
      ]
    },
    {
      "id": 9,
      "type": "VAEDecode",
      "pos": [1550, 200],
      "size": [315, 56],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 11
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 4
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [12],
          "slot_index": 0
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode"
      },
      "widgets_values": []
    },
    {
      "id": 10,
      "type": "SaveImage",
      "pos": [1950, 200],
      "size": [350, 270],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 12
        }
      ],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "flux-klein-image-edit-baseline"
      ]
    },
    {
      "id": 11,
      "type": "Note",
      "pos": [1950, -80],
      "size": [350, 80],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": {},
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "FLUX Klein Baseline\nCFG: 1.0, Guidance: 1.0, Steps: 8\nKlein requires low/no CFG guidance"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 12,
      "type": "Note",
      "pos": [50, -80],
      "size": [315, 60],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": {},
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "FLUX Klein Image Edit\nReplace checkpoint with your model"
      ],
      "color": "#234",
      "bgcolor": "#35a"
    },
    {
      "id": 13,
      "type": "PrimitiveNode",
      "pos": [450, 500],
      "size": [400, 100],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "TEXT",
          "type": "STRING",
          "links": [13],
          "slot_index": 0,
          "widget": {
            "name": "text"
          }
        }
      ],
      "properties": {
        "Run widget replace on connection": true
      },
      "widgets_values": [
        "a portrait of a woman with long hair, studio lighting, professional photography, highly detailed",
        "concat"
      ],
      "title": "Positive Prompt"
    },
    {
      "id": 14,
      "type": "PrimitiveNode",
      "pos": [900, 500],
      "size": [400, 100],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "TEXT",
          "type": "STRING",
          "links": [14],
          "slot_index": 0,
          "widget": {
            "name": "text"
          }
        }
      ],
      "properties": {
        "Run widget replace on connection": true
      },
      "widgets_values": [
        "blurry, low quality, watermark, text",
        "concat"
      ],
      "title": "Negative Prompt"
    },
    {
      "id": 15,
      "type": "Note",
      "pos": [850, 650],
      "size": [315, 80],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": {},
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "CLIP Vision encodes the reference image\nConnect LoadImage → CLIPVisionEncode"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 16,
      "type": "Note",
      "pos": [1150, 500],
      "size": [315, 80],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": {},
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "Klein: Steps 8, CFG 1.0, Guidance 1.0\neuler_cfg_pp + simple scheduler"
      ],
      "color": "#432",
      "bgcolor": "#653"
    }
  ],
  "links": [
    [1, 1, 0, 8, 0, "MODEL"],
    [2, 1, 1, 3, 0, "CLIP"],
    [3, 1, 1, 4, 0, "CLIP"],
    [4, 1, 2, 9, 1, "VAE"],
    [5, 2, 0, 5, 1, "IMAGE"],
    [6, 3, 0, 6, 0, "CONDITIONING"],
    [7, 4, 0, 8, 2, "CONDITIONING"],
    [8, 5, 0, 1, 0, "CLIP_VISION_OUTPUT"],
    [9, 6, 0, 8, 1, "CONDITIONING"],
    [10, 7, 0, 8, 3, "LATENT"],
    [11, 8, 0, 9, 0, "LATENT"],
    [12, 9, 0, 10, 0, "IMAGE"]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 1.1,
      "offset": [0, 0]
    }
  },
  "version": 0.4
}
