{
  "id": "ac859c0d-0942-4e39-9252-fa689a086457",
  "revision": 0,
  "last_node_id": 13,
  "last_link_id": 27,
  "nodes": [
    {
      "id": 2,
      "type": "LoadImage",
      "pos": [
        -525.9249614197531,
        -8.425925925925924
      ],
      "size": [
        290,
        370
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            25
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "blue_poppies_field.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "blue_poppies_field.png",
        "upload": "image"
      }
    },
    {
      "id": 3,
      "type": "SaveText",
      "pos": [
        940,
        -10
      ],
      "size": [
        400,
        420
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "text",
          "type": "STRING",
          "link": 17
        }
      ],
      "outputs": [
        {
          "name": "text",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "SaveText"
      },
      "widgets_values": [
        "Gemini/Gemini4_Hydrogen",
        "txt"
      ],
      "widgets_values_named": {
        "filename_prefix": "Gemini/Gemini4_Hydrogen",
        "format": "txt"
      }
    },
    {
      "id": 5,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -650.573398919753,
        431.65316358024694
      ],
      "size": [
        410,
        360
      ],
      "flags": {
        "collapsed": false
      },
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            21,
            27
          ]
        }
      ],
      "title": "Text (User Prompt)",
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "Analyze all visual features of the image, generate standard AI art positive prompt.\nExtract subject, character pose, composition, camera angle, lighting, color palette, texture, art style, rendering type, background and details.\nArrange content in order: subject, composition & camera, lighting & color, texture & style, image quality. Separate words with commas.\nOnly output positive prompt, no extra explanations, no negative prompts."
      ],
      "widgets_values_named": {
        "value": "Analyze all visual features of the image, generate standard AI art positive prompt.\nExtract subject, character pose, composition, camera angle, lighting, color palette, texture, art style, rendering type, background and details.\nArrange content in order: subject, composition & camera, lighting & color, texture & style, image quality. Separate words with commas.\nOnly output positive prompt, no extra explanations, no negative prompts."
      }
    },
    {
      "id": 9,
      "type": "PreviewAny",
      "pos": [
        300,
        -10
      ],
      "size": [
        270,
        290
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "source",
          "type": "*",
          "link": 26
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            20
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 10,
      "type": "1d28f9d1-7c68-4b3b-99f5-2bf7fe0615c5",
      "pos": [
        630,
        -10
      ],
      "size": [
        250,
        280
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "label": "prompt",
          "name": "string_b",
          "type": "STRING",
          "widget": {
            "name": "string_b"
          },
          "link": 21
        },
        {
          "label": "output",
          "name": "string_b_1",
          "type": "STRING",
          "widget": {
            "name": "string_b_1"
          },
          "link": 20
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            17
          ]
        }
      ],
      "properties": {
        "previewExposures": []
      },
      "widgets_values": [
        "",
        ""
      ],
      "widgets_values_named": {
        "string_b": "",
        "string_b_1": ""
      }
    },
    {
      "id": 12,
      "type": "GeminiNodeV3",
      "pos": [
        -155.5314429012343,
        -10.461516203703411
      ],
      "size": [
        400,
        366
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "model.prompt",
          "type": "STRING",
          "widget": {
            "name": "model.prompt"
          },
          "link": 27
        },
        {
          "name": "model.images.image_1",
          "shape": 7,
          "type": "IMAGE",
          "link": 25
        },
        {
          "name": "model.images.image_2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "model.audio.audio_1",
          "shape": 7,
          "type": "AUDIO",
          "link": null
        },
        {
          "name": "model.video.video_1",
          "shape": 7,
          "type": "VIDEO",
          "link": null
        },
        {
          "name": "model.files",
          "shape": 7,
          "type": "GEMINI_INPUT_FILES",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            26
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "GeminiNodeV3"
      },
      "widgets_values": [
        "Gemini 4 Hydrogen",
        "",
        "static",
        "HIGH",
        32768,
        42,
        "randomize",
        ""
      ],
      "widgets_values_named": {
        "model": "Gemini 4 Hydrogen",
        "model.prompt": "",
        "model.video_processing": "static",
        "model.thinking_level": "HIGH",
        "model.max_output_tokens": 32768,
        "model.seed": 42,
        "control_after_generate": "randomize",
        "model.system_prompt": ""
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 13,
      "type": "MarkdownNote",
      "pos": [
        -983.170849007464,
        -1.3133001560596327
      ],
      "size": [
        304.35798723499437,
        303.61456148746765
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "This is only a demo for how to use LLM node in ComfyUI and save the result, you can use the `preview text` or `save text` node to see the result.\n\nIn ComfyUI you can use LLM node to help you refine the prompt, analyze an image, and so on."
      ],
      "widgets_values_named": {
        "text": "This is only a demo for how to use LLM node in ComfyUI and save the result, you can use the `preview text` or `save text` node to see the result.\n\nIn ComfyUI you can use LLM node to help you refine the prompt, analyze an image, and so on."
      },
      "color": "#222",
      "bgcolor": "#000"
    }
  ],
  "links": [
    [
      17,
      10,
      0,
      3,
      0,
      "STRING"
    ],
    [
      20,
      9,
      0,
      10,
      1,
      "STRING"
    ],
    [
      21,
      5,
      0,
      10,
      0,
      "STRING"
    ],
    [
      25,
      2,
      0,
      12,
      1,
      "IMAGE"
    ],
    [
      26,
      12,
      0,
      9,
      0,
      "STRING"
    ],
    [
      27,
      5,
      0,
      12,
      0,
      "STRING"
    ]
  ],
  "groups": [],
  "definitions": {
    "subgraphs": [
      {
        "id": "1d28f9d1-7c68-4b3b-99f5-2bf7fe0615c5",
        "version": 1,
        "state": {
          "lastGroupId": 0,
          "lastNodeId": 13,
          "lastLinkId": 27,
          "lastRerouteId": 0
        },
        "revision": 0,
        "config": {},
        "name": "Format Output",
        "inputNode": {
          "id": -10,
          "bounding": [
            492,
            251,
            128,
            88
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            1630,
            261,
            128,
            68
          ]
        },
        "inputs": [
          {
            "id": "98b260aa-97cb-4c0c-a23b-c112110a86ab",
            "name": "string_b",
            "type": "STRING",
            "linkIds": [
              18
            ],
            "label": "prompt",
            "pos": [
              596,
              275
            ]
          },
          {
            "id": "5fd17593-37c5-450a-8928-72d2971fca23",
            "name": "string_b_1",
            "type": "STRING",
            "linkIds": [
              19
            ],
            "label": "output",
            "pos": [
              596,
              295
            ]
          }
        ],
        "outputs": [
          {
            "id": "3e51d9a9-eada-4386-bd38-a856b8a32500",
            "name": "STRING",
            "type": "STRING",
            "linkIds": [
              14
            ],
            "localized_name": "STRING",
            "pos": [
              1654,
              285
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 7,
            "type": "StringConcatenate",
            "pos": [
              680,
              30
            ],
            "size": [
              400,
              250
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "string_b",
                "name": "string_b",
                "type": "STRING",
                "widget": {
                  "name": "string_b"
                },
                "link": 19
              }
            ],
            "outputs": [
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": [
                  9
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "StringConcatenate"
            },
            "widgets_values": [
              "\n\nOUTPUT:\n\n",
              "",
              ""
            ],
            "widgets_values_named": {
              "string_a": "\n\nOUTPUT:\n\n",
              "string_b": "",
              "delimiter": ""
            }
          },
          {
            "id": 6,
            "type": "StringConcatenate",
            "pos": [
              690,
              340
            ],
            "size": [
              400,
              250
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "string_b",
                "name": "string_b",
                "type": "STRING",
                "widget": {
                  "name": "string_b"
                },
                "link": 18
              }
            ],
            "outputs": [
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": [
                  13
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "StringConcatenate"
            },
            "widgets_values": [
              "USER PROMPT:\n\n",
              "",
              ""
            ],
            "widgets_values_named": {
              "string_a": "USER PROMPT:\n\n",
              "string_b": "",
              "delimiter": ""
            }
          },
          {
            "id": 8,
            "type": "StringConcatenate",
            "pos": [
              1170,
              30
            ],
            "size": [
              400,
              250
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "string_a",
                "name": "string_a",
                "type": "STRING",
                "widget": {
                  "name": "string_a"
                },
                "link": 13
              },
              {
                "localized_name": "string_b",
                "name": "string_b",
                "type": "STRING",
                "widget": {
                  "name": "string_b"
                },
                "link": 9
              }
            ],
            "outputs": [
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": [
                  14
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "StringConcatenate"
            },
            "widgets_values": [
              "",
              "",
              ""
            ],
            "widgets_values_named": {
              "string_a": "",
              "string_b": "",
              "delimiter": ""
            }
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 13,
            "origin_id": 6,
            "origin_slot": 0,
            "target_id": 8,
            "target_slot": 0,
            "type": "STRING"
          },
          {
            "id": 9,
            "origin_id": 7,
            "origin_slot": 0,
            "target_id": 8,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 14,
            "origin_id": 8,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "STRING"
          },
          {
            "id": 19,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 7,
            "target_slot": 0,
            "type": "STRING"
          },
          {
            "id": 18,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 6,
            "target_slot": 0,
            "type": "STRING"
          }
        ],
        "extra": {}
      }
    ]
  },
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6480000000000007,
      "offset": [
        730.3195034707886,
        594.4377136984946
      ]
    },
    "frontendVersion": "1.58.5"
  },
  "version": 0.4
}