{
  "id": "e4ac4a17-61f7-4ac8-b322-b156808ebd9c",
  "revision": 0,
  "last_node_id": 5,
  "last_link_id": 2,
  "nodes": [
    {
      "id": 1,
      "type": "LoadImage",
      "pos": [
        -1570,
        5130
      ],
      "size": [
        380,
        400
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [
        {
          "localized_name": "image",
          "name": "image",
          "type": "COMBO",
          "widget": {
            "name": "image"
          },
          "link": null
        },
        {
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1
          ]
        },
        {
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "saintly_rose_portrait.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "man_with_dog.png",
        "upload": "image"
      }
    },
    {
      "id": 2,
      "type": "4d2ab4f5-8f54-4b5b-a4e2-49b35a60ad9d",
      "pos": [
        -1100,
        5130
      ],
      "size": [
        420,
        260
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [
        {
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE",
          "link": 1
        },
        {
          "localized_name": "prompt",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            2
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "previewExposures": [],
        "ver": "0.33.0"
      },
      "widgets_values": [
        ""
      ],
      "widgets_values_named": {
        "prompt": ""
      }
    },
    {
      "id": 4,
      "type": "SaveImage",
      "pos": [
        -600,
        5130
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 2
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.20.1"
      },
      "widgets_values": [
        "api_google_nano_banana2_image_edit_continuation"
      ]
    },
    {
      "id": 5,
      "type": "MarkdownNote",
      "pos": [
        -1100,
        5450
      ],
      "size": [
        420,
        130
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## Describe your edit\n\nWrite what you want to change in the prompt above, then click **Run**."
      ],
      "widgets_values_named": {
        "markdown": "## Describe your edit\n\nWrite what you want to change in the prompt above, then click **Run**."
      },
      "title": "What to do"
    }
  ],
  "links": [
    [
      1,
      1,
      0,
      2,
      0,
      "IMAGE"
    ],
    [
      2,
      2,
      0,
      4,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.9,
      "offset": [
        2050,
        -4660
      ]
    },
    "frontendVersion": "1.49.6"
  },
  "version": 0.4,
  "definitions": {
    "subgraphs": [
      {
        "id": "4d2ab4f5-8f54-4b5b-a4e2-49b35a60ad9d",
        "version": 1,
        "state": {
          "lastGroupId": 0,
          "lastNodeId": 2,
          "lastLinkId": 3,
          "lastRerouteId": 0
        },
        "revision": 0,
        "config": {},
        "name": "Edit Image (Nano Banana 2)",
        "inputs": [
          {
            "id": "a53f5655-a38e-4fd0-90d7-acde6a1d63e5",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              1
            ],
            "localized_name": "image",
            "pos": [
              -200,
              80
            ]
          },
          {
            "id": "3a7bb9b5-3d98-4a53-baa3-24feef62d92b",
            "name": "prompt",
            "type": "STRING",
            "linkIds": [
              2
            ],
            "localized_name": "prompt",
            "pos": [
              -200,
              100
            ]
          }
        ],
        "outputs": [
          {
            "id": "d76b9248-6c2c-41a7-b1b5-40dfd1fa2308",
            "name": "IMAGE",
            "type": "IMAGE",
            "linkIds": [
              3
            ],
            "localized_name": "IMAGE",
            "pos": [
              600,
              100
            ]
          }
        ],
        "nodes": [
          {
            "id": 2,
            "type": "GeminiNanoBanana2V2",
            "pos": [
              0,
              0
            ],
            "size": [
              400,
              398
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "prompt",
                "name": "prompt",
                "type": "STRING",
                "widget": {
                  "name": "prompt"
                },
                "link": 2
              },
              {
                "localized_name": "model",
                "name": "model",
                "type": "COMFY_DYNAMICCOMBO_V3",
                "widget": {
                  "name": "model"
                },
                "link": null
              },
              {
                "localized_name": "aspect_ratio",
                "name": "model.aspect_ratio",
                "type": "COMBO",
                "widget": {
                  "name": "model.aspect_ratio"
                },
                "link": null
              },
              {
                "localized_name": "resolution",
                "name": "model.resolution",
                "type": "COMBO",
                "widget": {
                  "name": "model.resolution"
                },
                "link": null
              },
              {
                "localized_name": "thinking_level",
                "name": "model.thinking_level",
                "type": "COMBO",
                "widget": {
                  "name": "model.thinking_level"
                },
                "link": null
              },
              {
                "localized_name": "image_1",
                "name": "model.images.image_1",
                "shape": 7,
                "type": "IMAGE",
                "link": 1
              },
              {
                "localized_name": "image_2",
                "name": "model.images.image_2",
                "shape": 7,
                "type": "IMAGE",
                "link": null
              },
              {
                "localized_name": "files",
                "name": "model.files",
                "shape": 7,
                "type": "GEMINI_INPUT_FILES",
                "link": null
              },
              {
                "localized_name": "seed",
                "name": "seed",
                "type": "INT",
                "widget": {
                  "name": "seed"
                },
                "link": null
              },
              {
                "localized_name": "response_modalities",
                "name": "response_modalities",
                "type": "COMBO",
                "widget": {
                  "name": "response_modalities"
                },
                "link": null
              },
              {
                "localized_name": "system_prompt",
                "name": "system_prompt",
                "shape": 7,
                "type": "STRING",
                "widget": {
                  "name": "system_prompt"
                },
                "link": null
              },
              {
                "localized_name": "temperature",
                "name": "temperature",
                "shape": 7,
                "type": "FLOAT",
                "widget": {
                  "name": "temperature"
                },
                "link": null
              },
              {
                "localized_name": "top_p",
                "name": "top_p",
                "shape": 7,
                "type": "FLOAT",
                "widget": {
                  "name": "top_p"
                },
                "link": null
              }
            ],
            "outputs": [
              {
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE",
                "links": [
                  3
                ]
              },
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": null
              },
              {
                "localized_name": "thought_image",
                "name": "thought_image",
                "type": "IMAGE",
                "links": null
              }
            ],
            "properties": {
              "Node name for S&R": "GeminiNanoBanana2V2"
            },
            "widgets_values": [
              "",
              "Nano Banana 2 (Gemini 3.1 Flash Image)",
              "auto",
              "1K",
              "HIGH",
              123,
              "randomize",
              "IMAGE",
              "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests.",
              1,
              0.95
            ],
            "widgets_values_named": {
              "prompt": "",
              "model": "Nano Banana 2 (Gemini 3.1 Flash Image)",
              "model.aspect_ratio": "auto",
              "model.resolution": "1K",
              "model.thinking_level": "HIGH",
              "seed": 123,
              "control_after_generate": "randomize",
              "response_modalities": "IMAGE",
              "system_prompt": "You are an expert image-generation engine. You must ALWAYS produce an image.\nInterpret all user input—regardless of format, intent, or abstraction—as literal visual directives for image composition.\nIf a prompt is conversational or lacks specific visual details, you must creatively invent a concrete visual scenario that depicts the concept.\nPrioritize generating the visual representation above any text, formatting, or conversational requests.",
              "temperature": 1,
              "top_p": 0.95
            },
            "color": "#432",
            "bgcolor": "#653"
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 1,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 2,
            "target_slot": 5,
            "type": "IMAGE"
          },
          {
            "id": 2,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 2,
            "target_slot": 0,
            "type": "STRING"
          },
          {
            "id": 3,
            "origin_id": 2,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          }
        ],
        "extra": {
          "workflowRendererVersion": "Vue"
        },
        "widgets": [],
        "inputNode": {
          "id": -10,
          "bounding": [
            -230,
            40,
            128,
            88
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            580,
            60,
            128,
            68
          ]
        }
      }
    ]
  }
}