{
  "id": "b9a4879b-6e6a-4acb-a0c0-b4f8375f608c",
  "revision": 0,
  "last_node_id": 21,
  "last_link_id": 27,
  "nodes": [
    {
      "id": 2,
      "type": "LoadImage",
      "pos": [
        -670,
        630
      ],
      "size": [
        390,
        720
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            21,
            23,
            24
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "redhair_girl_portrait.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "redhair_girl_portrait.png",
        "upload": "image"
      }
    },
    {
      "id": 3,
      "type": "BuildJsonPromptIdeogram",
      "pos": [
        310,
        760
      ],
      "size": [
        400,
        270
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "element",
          "type": "ARRAY",
          "link": 1
        }
      ],
      "outputs": [
        {
          "name": "prompt",
          "type": "DICT",
          "links": [
            4
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "BuildJsonPromptIdeogram"
      },
      "widgets_values": [
        "",
        "",
        "none",
        "",
        "",
        "",
        []
      ],
      "widgets_values_named": {
        "high_level_description": "",
        "background": "",
        "style": "none",
        "aesthetics": "",
        "lighting": "",
        "medium": "",
        "color_palette": []
      }
    },
    {
      "id": 4,
      "type": "CreateBoundingBoxes",
      "pos": [
        -190,
        630
      ],
      "size": [
        470,
        720
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "background",
          "shape": 7,
          "type": "IMAGE",
          "link": 21
        },
        {
          "name": "bboxes",
          "shape": 7,
          "type": "BOUNDING_BOX,ARRAY,STRING",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "preview",
          "type": "IMAGE",
          "links": null
        },
        {
          "name": "bboxes",
          "type": "BOUNDING_BOX",
          "links": null
        },
        {
          "name": "elements",
          "type": "ARRAY",
          "links": [
            1
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CreateBoundingBoxes"
      },
      "widgets_values": [
        896,
        1152,
        [
          {
            "x": 448,
            "y": 384,
            "width": 128,
            "height": 128,
            "metadata": {
              "type": "obj",
              "text": "",
              "desc": "Change the earring to pearl earring",
              "palette": []
            }
          }
        ],
        []
      ],
      "widgets_values_named": {
        "width": 896,
        "height": 1152,
        "editor_state": [
          {
            "x": 448,
            "y": 384,
            "width": 128,
            "height": 128,
            "metadata": {
              "type": "obj",
              "text": "",
              "desc": "Change the earring to pearl earring",
              "palette": []
            }
          }
        ],
        "last_incoming": []
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 5,
      "type": "PreviewAny",
      "pos": [
        750,
        760
      ],
      "size": [
        430,
        400
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 4
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            26
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 7,
      "type": "SaveImageAdvanced",
      "pos": [
        1680,
        630
      ],
      "size": [
        440,
        520
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 25
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": [
            8
          ]
        }
      ],
      "properties": {},
      "widgets_values": [
        "ideogram4.5_image_edit",
        "png",
        "8-bit",
        "sRGB"
      ],
      "widgets_values_named": {
        "filename_prefix": "ideogram4.5_image_edit",
        "format": "png",
        "format.bit_depth": "8-bit",
        "format.input_color_space": "sRGB"
      }
    },
    {
      "id": 8,
      "type": "ImageCompare",
      "pos": [
        2170,
        630
      ],
      "size": [
        540,
        530
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "image_a",
          "shape": 7,
          "type": "IMAGE",
          "link": 23
        },
        {
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE",
          "link": 8
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "ImageCompare"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 18,
      "type": "MarkdownNote",
      "pos": [
        -180,
        1590
      ],
      "size": [
        470,
        140
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "- Enable [Nodes2.0](https://docs.comfy.org/interface/nodes-2) if you can't see the editor above\n- Load an image and draw BBox captions on it, like \"remove it\", to edit the image.\n"
      ],
      "widgets_values_named": {
        "text": "- Enable [Nodes2.0](https://docs.comfy.org/interface/nodes-2) if you can't see the editor above\n- Load an image and draw BBox captions on it, like \"remove it\", to edit the image.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 19,
      "type": "MarkdownNote",
      "pos": [
        -1140,
        630
      ],
      "size": [
        400,
        300
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## Input Asset\n\n- [redhair_girl_portrait.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/redhair_girl_portrait.png)\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
      ],
      "widgets_values_named": {
        "text": "## Input Asset\n\n- [redhair_girl_portrait.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/redhair_girl_portrait.png)\n\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 20,
      "type": "IdeogramPreciseEditApi",
      "pos": [
        1230,
        630
      ],
      "size": [
        400,
        388
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "model.images.image_1",
          "type": "IMAGE",
          "link": 24
        },
        {
          "name": "model.images.image_2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "model.images.image_3",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "model.prompt",
          "type": "STRING",
          "widget": {
            "name": "model.prompt"
          },
          "link": 26
        },
        {
          "name": "model.context_window_bboxes",
          "shape": 7,
          "type": "BOUNDING_BOX",
          "link": null
        },
        {
          "name": "model.context_window_mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            25
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "IdeogramPreciseEditApi"
      },
      "widgets_values": [
        "ideogram-4.5",
        "",
        "medium",
        564797084,
        "randomize",
        "none",
        2048
      ],
      "widgets_values_named": {
        "model": "ideogram-4.5",
        "model.prompt": "",
        "model.quality": "medium",
        "model.seed": 564797084,
        "control_after_generate#1": "randomize",
        "model.context_window": "none",
        "control_after_generate": 2048
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 21,
      "type": "MarkdownNote",
      "pos": [
        1238.9264643449235,
        1080.8908963986328
      ],
      "size": [
        394.43923211212143,
        158.1637813438415
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Note: context window",
      "properties": {},
      "widgets_values": [
        "# Ideogram 4.5 Precise Edit — `context_window`\n\nEdits **only one region of image 1** at its native resolution. Without it the whole image is capped at ~4 MP (2048×2048), so anything bigger comes back downscaled. With a region, only the region changes, the rest is copied through, and the output keeps the source's exact size.\n\n| Option | Uses | Effect |\n|---|---|---|\n| `none` | — | Whole image, downscaled above ~4 MP. Default. |\n| `auto` | `context_window_mask` | Fits a region around the white mask area. Mask > 4 MP falls back to `none`. |\n| `custom` | `context_window_bboxes` | Region = union of your boxes. Sides under 256 px are padded to 256. |\n\nRegion must be 256–4608 px per side, ≤ 4 MP, ≤ 6:1, inside image 1. Max 4 reference images, 3 with a mask. Price is unchanged — one image at the chosen `quality`.\n"
      ],
      "widgets_values_named": {
        "text": "# Ideogram 4.5 Precise Edit — `context_window`\n\nEdits **only one region of image 1** at its native resolution. Without it the whole image is capped at ~4 MP (2048×2048), so anything bigger comes back downscaled. With a region, only the region changes, the rest is copied through, and the output keeps the source's exact size.\n\n| Option | Uses | Effect |\n|---|---|---|\n| `none` | — | Whole image, downscaled above ~4 MP. Default. |\n| `auto` | `context_window_mask` | Fits a region around the white mask area. Mask > 4 MP falls back to `none`. |\n| `custom` | `context_window_bboxes` | Region = union of your boxes. Sides under 256 px are padded to 256. |\n\nRegion must be 256–4608 px per side, ≤ 4 MP, ≤ 6:1, inside image 1. Max 4 reference images, 3 with a mask. Price is unchanged — one image at the chosen `quality`.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    }
  ],
  "links": [
    [
      4,
      3,
      0,
      5,
      0,
      "DICT"
    ],
    [
      8,
      7,
      0,
      8,
      1,
      "IMAGE"
    ],
    [
      21,
      2,
      0,
      4,
      0,
      "IMAGE"
    ],
    [
      23,
      2,
      0,
      8,
      0,
      "IMAGE"
    ],
    [
      1,
      4,
      2,
      3,
      0,
      "ARRAY"
    ],
    [
      25,
      20,
      0,
      7,
      0,
      "IMAGE"
    ],
    [
      24,
      2,
      0,
      20,
      0,
      "IMAGE"
    ],
    [
      26,
      5,
      0,
      20,
      3,
      "STRING"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.3186308177103567,
      "offset": [
        1898.9809645882465,
        689.3844590357785
      ]
    },
    "frontendVersion": "1.57.6"
  },
  "version": 0.4
}
