工作流 /
LLM /
Google: Gemini 4 Hydrogen

Google: Gemini 4 Hydrogen
Google: Gemini 4 Hydrogen
Gemini 4 Hydrogen 只需读入一张参考图,就能一次性写出你要的文本:艺术指导提示词、详细描述,或结构化的画面拆解。扩展思考让长篇视觉分析保持连贯,适合构建提示词库、数据集标注和批量创意构思。
LLM
7 个节点 1 个输入 ComfyUI ≥ 0.46.0 ComfyUI 15 KB
节点构成
LoadImage
× 1
SaveText
× 1
PrimitiveStringMultiline
× 1
PreviewAny
× 1
1d28f9d1-7c68-4b3b-99f5-2bf7fe0615c5
× 1
GeminiNodeV3
× 1
MarkdownNote
× 1
官方标注的模型
GoogleGoogle Gemini
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "ac859c0d-0942-4e39-9252-fa689a086457",
3 "revision": 0,
4 "last_node_id": 13,
5 "last_link_id": 27,
6 "nodes": [
7 {
8 "id": 2,
9 "type": "LoadImage",
10 "pos": [
11 -525.9249614197531,
12 -8.425925925925924
13 ],
14 "size": [
15 290,
16 370
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "IMAGE",
25 "type": "IMAGE",
26 "links": [
27 25
28 ]
29 },
30 {
31 "name": "MASK",
32 "type": "MASK",
33 "links": null
34 }
35 ],
36 "properties": {
37 "Node name for S&R": "LoadImage"
38 },
39 "widgets_values": [
40 "blue_poppies_field.png",
41 "image"
42 ],
43 "widgets_values_named": {
44 "image": "blue_poppies_field.png",
45 "upload": "image"
46 }
47 },
48 {
49 "id": 3,
50 "type": "SaveText",
51 "pos": [
52 940,
53 -10
54 ],
55 "size": [
56 400,
57 420
58 ],
59 "flags": [],
60 "order": 6,
61 "mode": 0,
62 "inputs": [
63 {
64 "name": "text",
65 "type": "STRING",
66 "link": 17
67 }
68 ],
69 "outputs": [
70 {
71 "name": "text",
72 "type": "STRING",
73 "links": null
74 }
75 ],
76 "properties": {
77 "Node name for S&R": "SaveText"
78 },
79 "widgets_values": [
80 "Gemini/Gemini4_Hydrogen",
81 "txt"
82 ],
83 "widgets_values_named": {
84 "filename_prefix": "Gemini/Gemini4_Hydrogen",
85 "format": "txt"
86 }
87 },
88 {
89 "id": 5,
90 "type": "PrimitiveStringMultiline",
91 "pos": [
92 -650.573398919753,
93 431.65316358024694
94 ],
95 "size": [
96 410,
97 360
98 ],
99 "flags": {
100 "collapsed": false
101 },
102 "order": 1,
103 "mode": 0,
104 "inputs": [],
105 "outputs": [
106 {
107 "name": "STRING",
108 "type": "STRING",
109 "links": [
110 21,
111 27
112 ]
113 }
114 ],
115 "title": "Text (User Prompt)",
116 "properties": {
117 "Node name for S&R": "PrimitiveStringMultiline"
118 },
119 "widgets_values": [
120 "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."
121 ],
122 "widgets_values_named": {
123 "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."
124 }
125 },
126 {
127 "id": 9,
128 "type": "PreviewAny",
129 "pos": [
130 300,
131 -10
132 ],
133 "size": [
134 270,
135 290
136 ],
137 "flags": [],
138 "order": 4,
139 "mode": 0,
140 "inputs": [
141 {
142 "name": "source",
143 "type": "*",
144 "link": 26
145 }
146 ],
147 "outputs": [
148 {
149 "name": "STRING",
150 "type": "STRING",
151 "links": [
152 20
153 ]
154 }
155 ],
156 "properties": {
157 "Node name for S&R": "PreviewAny"
158 },
159 "widgets_values": [],
160 "widgets_values_named": []
161 },
162 {
163 "id": 10,
164 "type": "1d28f9d1-7c68-4b3b-99f5-2bf7fe0615c5",
165 "pos": [
166 630,
167 -10
168 ],
169 "size": [
170 250,
171 280
172 ],
173 "flags": [],
174 "order": 5,
175 "mode": 0,
176 "inputs": [
177 {
178 "label": "prompt",
179 "name": "string_b",
180 "type": "STRING",
181 "widget": {
182 "name": "string_b"
183 },
184 "link": 21
185 },
186 {
187 "label": "output",
188 "name": "string_b_1",
189 "type": "STRING",
190 "widget": {
191 "name": "string_b_1"
192 },
193 "link": 20
194 }
195 ],
196 "outputs": [
197 {
198 "name": "STRING",
199 "type": "STRING",
200 "links": [
201 17
202 ]
203 }
204 ],
205 "properties": {
206 "previewExposures": []
207 },
208 "widgets_values": [
209 "",
210 ""
211 ],
212 "widgets_values_named": {
213 "string_b": "",
214 "string_b_1": ""
215 }
216 },
217 {
218 "id": 12,
219 "type": "GeminiNodeV3",
220 "pos": [
221 -155.5314429012343,
222 -10.461516203703411
223 ],
224 "size": [
225 400,
226 366
227 ],
228 "flags": [],
229 "order": 3,
230 "mode": 0,
231 "inputs": [
232 {
233 "name": "model.prompt",
234 "type": "STRING",
235 "widget": {
236 "name": "model.prompt"
237 },
238 "link": 27
239 },
240 {
241 "name": "model.images.image_1",
242 "shape": 7,
243 "type": "IMAGE",
244 "link": 25
245 },
246 {
247 "name": "model.images.image_2",
248 "shape": 7,
249 "type": "IMAGE",
250 "link": null
251 },
252 {
253 "name": "model.audio.audio_1",
254 "shape": 7,
255 "type": "AUDIO",
256 "link": null
257 },
258 {
259 "name": "model.video.video_1",
260 "shape": 7,
261 "type": "VIDEO",
262 "link": null
263 },
264 {
265 "name": "model.files",
266 "shape": 7,
267 "type": "GEMINI_INPUT_FILES",
268 "link": null
269 }
270 ],
271 "outputs": [
272 {
273 "name": "STRING",
274 "type": "STRING",
275 "links": [
276 26
277 ]
278 }
279 ],
280 "properties": {
281 "Node name for S&R": "GeminiNodeV3"
282 },
283 "widgets_values": [
284 "Gemini 4 Hydrogen",
285 "",
286 "static",
287 "HIGH",
288 32768,
289 42,
290 "randomize",
291 ""
292 ],
293 "widgets_values_named": {
294 "model": "Gemini 4 Hydrogen",
295 "model.prompt": "",
296 "model.video_processing": "static",
297 "model.thinking_level": "HIGH",
298 "model.max_output_tokens": 32768,
299 "model.seed": 42,
300 "control_after_generate": "randomize",
301 "model.system_prompt": ""
302 },
303 "color": "#432",
304 "bgcolor": "#653"
305 },
306 {
307 "id": 13,
308 "type": "MarkdownNote",
309 "pos": [
310 -983.170849007464,
311 -1.3133001560596327
312 ],
313 "size": [
314 304.35798723499437,
315 303.61456148746765
316 ],
317 "flags": [],
318 "order": 2,
319 "mode": 0,
320 "inputs": [],
321 "outputs": [],
322 "properties": [],
323 "widgets_values": [
324 "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."
325 ],
326 "widgets_values_named": {
327 "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."
328 },
329 "color": "#222",
330 "bgcolor": "#000"
331 }
332 ],
333 "links": [
334 [
335 17,
336 10,
337 0,
338 3,
339 0,
340 "STRING"
341 ],
342 [
343 20,
344 9,
345 0,
346 10,
347 1,
348 "STRING"
349 ],
350 [
351 21,
352 5,
353 0,
354 10,
355 0,
356 "STRING"
357 ],
358 [
359 25,
360 2,
361 0,
362 12,
363 1,
364 "IMAGE"
365 ],
366 [
367 26,
368 12,
369 0,
370 9,
371 0,
372 "STRING"
373 ],
374 [
375 27,
376 5,
377 0,
378 12,
379 0,
380 "STRING"
381 ]
382 ],
383 "groups": [],
384 "definitions": {
385 "subgraphs": [
386 {
387 "id": "1d28f9d1-7c68-4b3b-99f5-2bf7fe0615c5",
388 "version": 1,
389 "state": {
390 "lastGroupId": 0,
391 "lastNodeId": 13,
392 "lastLinkId": 27,
393 "lastRerouteId": 0
394 },
395 "revision": 0,
396 "config": [],
397 "name": "Format Output",
398 "inputNode": {
399 "id": -10,
400 "bounding": [
401 492,
402 251,
403 128,
404 88
405 ]
406 },
407 "outputNode": {
408 "id": -20,
409 "bounding": [
410 1630,
411 261,
412 128,
413 68
414 ]
415 },
416 "inputs": [
417 {
418 "id": "98b260aa-97cb-4c0c-a23b-c112110a86ab",
419 "name": "string_b",
420 "type": "STRING",
421 "linkIds": [
422 18
423 ],
424 "label": "prompt",
425 "pos": [
426 596,
427 275
428 ]
429 },
430 {
431 "id": "5fd17593-37c5-450a-8928-72d2971fca23",
432 "name": "string_b_1",
433 "type": "STRING",
434 "linkIds": [
435 19
436 ],
437 "label": "output",
438 "pos": [
439 596,
440 295
441 ]
442 }
443 ],
444 "outputs": [
445 {
446 "id": "3e51d9a9-eada-4386-bd38-a856b8a32500",
447 "name": "STRING",
448 "type": "STRING",
449 "linkIds": [
450 14
451 ],
452 "localized_name": "STRING",
453 "pos": [
454 1654,
455 285
456 ]
457 }
458 ],
459 "widgets": [],
460 "nodes": [
461 {
462 "id": 7,
463 "type": "StringConcatenate",
464 "pos": [
465 680,
466 30
467 ],
468 "size": [
469 400,
470 250
471 ],
472 "flags": [],
473 "order": 1,
474 "mode": 0,
475 "inputs": [
476 {
477 "localized_name": "string_b",
478 "name": "string_b",
479 "type": "STRING",
480 "widget": {
481 "name": "string_b"
482 },
483 "link": 19
484 }
485 ],
486 "outputs": [
487 {
488 "localized_name": "STRING",
489 "name": "STRING",
490 "type": "STRING",
491 "links": [
492 9
493 ]
494 }
495 ],
496 "properties": {
497 "Node name for S&R": "StringConcatenate"
498 },
499 "widgets_values": [
500 "\n\nOUTPUT:\n\n",
501 "",
502 ""
503 ],
504 "widgets_values_named": {
505 "string_a": "\n\nOUTPUT:\n\n",
506 "string_b": "",
507 "delimiter": ""
508 }
509 },
510 {
511 "id": 6,
512 "type": "StringConcatenate",
513 "pos": [
514 690,
515 340
516 ],
517 "size": [
518 400,
519 250
520 ],
521 "flags": [],
522 "order": 0,
523 "mode": 0,
524 "inputs": [
525 {
526 "localized_name": "string_b",
527 "name": "string_b",
528 "type": "STRING",
529 "widget": {
530 "name": "string_b"
531 },
532 "link": 18
533 }
534 ],
535 "outputs": [
536 {
537 "localized_name": "STRING",
538 "name": "STRING",
539 "type": "STRING",
540 "links": [
541 13
542 ]
543 }
544 ],
545 "properties": {
546 "Node name for S&R": "StringConcatenate"
547 },
548 "widgets_values": [
549 "USER PROMPT:\n\n",
550 "",
551 ""
552 ],
553 "widgets_values_named": {
554 "string_a": "USER PROMPT:\n\n",
555 "string_b": "",
556 "delimiter": ""
557 }
558 },
559 {
560 "id": 8,
561 "type": "StringConcatenate",
562 "pos": [
563 1170,
564 30
565 ],
566 "size": [
567 400,
568 250
569 ],
570 "flags": [],
571 "order": 2,
572 "mode": 0,
573 "inputs": [
574 {
575 "localized_name": "string_a",
576 "name": "string_a",
577 "type": "STRING",
578 "widget": {
579 "name": "string_a"
580 },
581 "link": 13
582 },
583 {
584 "localized_name": "string_b",
585 "name": "string_b",
586 "type": "STRING",
587 "widget": {
588 "name": "string_b"
589 },
590 "link": 9
591 }
592 ],
593 "outputs": [
594 {
595 "localized_name": "STRING",
596 "name": "STRING",
597 "type": "STRING",
598 "links": [
599 14
600 ]
601 }
602 ],
603 "properties": {
604 "Node name for S&R": "StringConcatenate"
605 },
606 "widgets_values": [
607 "",
608 "",
609 ""
610 ],
611 "widgets_values_named": {
612 "string_a": "",
613 "string_b": "",
614 "delimiter": ""
615 }
616 }
617 ],
618 "groups": [],
619 "links": [
620 {
621 "id": 13,
622 "origin_id": 6,
623 "origin_slot": 0,
624 "target_id": 8,
625 "target_slot": 0,
626 "type": "STRING"
627 },
628 {
629 "id": 9,
630 "origin_id": 7,
631 "origin_slot": 0,
632 "target_id": 8,
633 "target_slot": 1,
634 "type": "STRING"
635 },
636 {
637 "id": 14,
638 "origin_id": 8,
639 "origin_slot": 0,
640 "target_id": -20,
641 "target_slot": 0,
642 "type": "STRING"
643 },
644 {
645 "id": 19,
646 "origin_id": -10,
647 "origin_slot": 1,
648 "target_id": 7,
649 "target_slot": 0,
650 "type": "STRING"
651 },
652 {
653 "id": 18,
654 "origin_id": -10,
655 "origin_slot": 0,
656 "target_id": 6,
657 "target_slot": 0,
658 "type": "STRING"
659 }
660 ],
661 "extra": []
662 }
663 ]
664 },
665 "config": [],
666 "extra": {
667 "ds": {
668 "scale": 0.6480000000000007,
669 "offset": [
670 730.3195034707886,
671 594.4377136984946
672 ]
673 },
674 "frontendVersion": "1.58.5"
675 },
676 "version": 0.4
677}