ComfyPilotComfyPilot
工作流 / LLM / Tencent: Hy4
Tencent: Hy4

Tencent: Hy4

Tencent: Hy4

腾讯 HY4 只需读取一张参考图,就能一次性写出你需要的文本:艺术指导提示词、详细描述,或图表解析。长上下文推理与工具调用能力,使其非常适合研究撰写、智能体脚本和批次创意构思。

LLM 7 个节点 1 个输入 47 次使用 ComfyUI ≥ 0.45.0 ComfyUI 15 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

节点构成

LoadImage × 1
SaveText × 1
PrimitiveStringMultiline × 1
PreviewAny × 1
1d28f9d1-7c68-4b3b-99f5-2bf7fe0615c5 × 1
TencentHyNode × 1
MarkdownNote × 1

官方标注的模型

Hy4

工作流 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 -526.4133603988332,
12 -10.414026228329902
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 27
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": 5,
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 "Hy4/Tencent_Hy4",
81 "txt"
82 ],
83 "widgets_values_named": {
84 "filename_prefix": "Hy4/Tencent_Hy4",
85 "format": "txt"
86 }
87 },
88 {
89 "id": 5,
90 "type": "PrimitiveStringMultiline",
91 "pos": [
92 -637.0207918834813,
93 448.236492130905
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 26
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 259.58663960116684,
131 -10.414026228329902
132 ],
133 "size": [
134 270,
135 290
136 ],
137 "flags": [],
138 "order": 3,
139 "mode": 0,
140 "inputs": [
141 {
142 "name": "source",
143 "type": "*",
144 "link": 25
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": 4,
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": "TencentHyNode",
220 "pos": [
221 -188.41336039883316,
222 -10.414026228329902
223 ],
224 "size": [
225 400,
226 306
227 ],
228 "flags": [],
229 "order": 2,
230 "mode": 0,
231 "showAdvanced": true,
232 "inputs": [
233 {
234 "name": "model.prompt",
235 "type": "STRING",
236 "widget": {
237 "name": "model.prompt"
238 },
239 "link": 26
240 },
241 {
242 "name": "model.images.image_1",
243 "shape": 7,
244 "type": "IMAGE",
245 "link": 27
246 },
247 {
248 "name": "model.images.image_2",
249 "shape": 7,
250 "type": "IMAGE",
251 "link": null
252 }
253 ],
254 "outputs": [
255 {
256 "name": "STRING",
257 "type": "STRING",
258 "links": [
259 25
260 ]
261 }
262 ],
263 "properties": {
264 "Node name for S&R": "TencentHyNode"
265 },
266 "widgets_values": [
267 "Hy4",
268 "",
269 1583813440,
270 "randomize",
271 false,
272 1,
273 32000,
274 ""
275 ],
276 "widgets_values_named": {
277 "model": "Hy4",
278 "model.prompt": "",
279 "model.seed": 1583813440,
280 "control_after_generate": "randomize",
281 "model.reasoning": false,
282 "model.temperature": 1,
283 "model.max_tokens": 32000,
284 "model.system_prompt": ""
285 },
286 "color": "#432",
287 "bgcolor": "#653"
288 },
289 {
290 "id": 13,
291 "type": "MarkdownNote",
292 "pos": [
293 -637,
294 860
295 ],
296 "size": [
297 1100,
298 520
299 ],
300 "flags": [],
301 "order": 6,
302 "mode": 0,
303 "inputs": [],
304 "outputs": [],
305 "properties": [],
306 "widgets_values": [
307 "## Hy4: Image to Prompt\n\n**Input Assets**\n- [blue_poppies_field.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/blue_poppies_field.png) — required workflow input (`input/blue_poppies_field.png`)\n\nTurn a reference image into a reusable prompt. **Tencent HY** (Hy4) reads `Load Image` plus the instruction in **Text (User Prompt)** and writes back a prompt you can paste into any generator. `Preview as Text` shows the reply; **Format Output** wraps it into a text file.\n\n- Edit **Text (User Prompt)** to choose what to extract: subject, composition, lighting, colour, style.\n- Hy4 accepts up to 20 images per request; this graph wires one.\n- Output: `Hy4/Tencent_Hy4`.\n"
308 ],
309 "widgets_values_named": {
310 "text": "## Hy4: Image to Prompt\n\n**Input Assets**\n- [blue_poppies_field.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/blue_poppies_field.png) — required workflow input (`input/blue_poppies_field.png`)\n\nTurn a reference image into a reusable prompt. **Tencent HY** (Hy4) reads `Load Image` plus the instruction in **Text (User Prompt)** and writes back a prompt you can paste into any generator. `Preview as Text` shows the reply; **Format Output** wraps it into a text file.\n\n- Edit **Text (User Prompt)** to choose what to extract: subject, composition, lighting, colour, style.\n- Hy4 accepts up to 20 images per request; this graph wires one.\n- Output: `Hy4/Tencent_Hy4`.\n"
311 },
312 "color": "#222",
313 "bgcolor": "#000"
314 }
315 ],
316 "links": [
317 [
318 17,
319 10,
320 0,
321 3,
322 0,
323 "STRING"
324 ],
325 [
326 20,
327 9,
328 0,
329 10,
330 1,
331 "STRING"
332 ],
333 [
334 21,
335 5,
336 0,
337 10,
338 0,
339 "STRING"
340 ],
341 [
342 25,
343 12,
344 0,
345 9,
346 0,
347 "STRING"
348 ],
349 [
350 26,
351 5,
352 0,
353 12,
354 0,
355 "STRING"
356 ],
357 [
358 27,
359 2,
360 0,
361 12,
362 1,
363 "IMAGE"
364 ]
365 ],
366 "groups": [
367 {
368 "id": 1,
369 "title": "Save output",
370 "bounding": [
371 620,
372 -80,
373 730,
374 500
375 ],
376 "color": "#3f789e",
377 "flags": []
378 }
379 ],
380 "definitions": {
381 "subgraphs": [
382 {
383 "id": "1d28f9d1-7c68-4b3b-99f5-2bf7fe0615c5",
384 "version": 1,
385 "state": {
386 "lastGroupId": 1,
387 "lastNodeId": 12,
388 "lastLinkId": 27,
389 "lastRerouteId": 0
390 },
391 "revision": 0,
392 "config": [],
393 "name": "Format Output",
394 "inputNode": {
395 "id": -10,
396 "bounding": [
397 492,
398 251,
399 128,
400 88
401 ]
402 },
403 "outputNode": {
404 "id": -20,
405 "bounding": [
406 1630,
407 261,
408 128,
409 68
410 ]
411 },
412 "inputs": [
413 {
414 "id": "98b260aa-97cb-4c0c-a23b-c112110a86ab",
415 "name": "string_b",
416 "type": "STRING",
417 "linkIds": [
418 18
419 ],
420 "label": "prompt",
421 "pos": [
422 596,
423 275
424 ]
425 },
426 {
427 "id": "5fd17593-37c5-450a-8928-72d2971fca23",
428 "name": "string_b_1",
429 "type": "STRING",
430 "linkIds": [
431 19
432 ],
433 "label": "output",
434 "pos": [
435 596,
436 295
437 ]
438 }
439 ],
440 "outputs": [
441 {
442 "id": "3e51d9a9-eada-4386-bd38-a856b8a32500",
443 "name": "STRING",
444 "type": "STRING",
445 "linkIds": [
446 14
447 ],
448 "localized_name": "STRING",
449 "pos": [
450 1654,
451 285
452 ]
453 }
454 ],
455 "widgets": [],
456 "nodes": [
457 {
458 "id": 7,
459 "type": "StringConcatenate",
460 "pos": [
461 680,
462 30
463 ],
464 "size": [
465 400,
466 250
467 ],
468 "flags": [],
469 "order": 1,
470 "mode": 0,
471 "inputs": [
472 {
473 "localized_name": "string_b",
474 "name": "string_b",
475 "type": "STRING",
476 "widget": {
477 "name": "string_b"
478 },
479 "link": 19
480 }
481 ],
482 "outputs": [
483 {
484 "localized_name": "STRING",
485 "name": "STRING",
486 "type": "STRING",
487 "links": [
488 9
489 ]
490 }
491 ],
492 "properties": {
493 "Node name for S&R": "StringConcatenate"
494 },
495 "widgets_values": [
496 "\n\nOUTPUT:\n\n",
497 "",
498 ""
499 ],
500 "widgets_values_named": {
501 "string_a": "\n\nOUTPUT:\n\n",
502 "string_b": "",
503 "delimiter": ""
504 }
505 },
506 {
507 "id": 6,
508 "type": "StringConcatenate",
509 "pos": [
510 690,
511 340
512 ],
513 "size": [
514 400,
515 250
516 ],
517 "flags": [],
518 "order": 0,
519 "mode": 0,
520 "inputs": [
521 {
522 "localized_name": "string_b",
523 "name": "string_b",
524 "type": "STRING",
525 "widget": {
526 "name": "string_b"
527 },
528 "link": 18
529 }
530 ],
531 "outputs": [
532 {
533 "localized_name": "STRING",
534 "name": "STRING",
535 "type": "STRING",
536 "links": [
537 13
538 ]
539 }
540 ],
541 "properties": {
542 "Node name for S&R": "StringConcatenate"
543 },
544 "widgets_values": [
545 "USER PROMPT:\n\n",
546 "",
547 ""
548 ],
549 "widgets_values_named": {
550 "string_a": "USER PROMPT:\n\n",
551 "string_b": "",
552 "delimiter": ""
553 }
554 },
555 {
556 "id": 8,
557 "type": "StringConcatenate",
558 "pos": [
559 1170,
560 30
561 ],
562 "size": [
563 400,
564 250
565 ],
566 "flags": [],
567 "order": 2,
568 "mode": 0,
569 "inputs": [
570 {
571 "localized_name": "string_a",
572 "name": "string_a",
573 "type": "STRING",
574 "widget": {
575 "name": "string_a"
576 },
577 "link": 13
578 },
579 {
580 "localized_name": "string_b",
581 "name": "string_b",
582 "type": "STRING",
583 "widget": {
584 "name": "string_b"
585 },
586 "link": 9
587 }
588 ],
589 "outputs": [
590 {
591 "localized_name": "STRING",
592 "name": "STRING",
593 "type": "STRING",
594 "links": [
595 14
596 ]
597 }
598 ],
599 "properties": {
600 "Node name for S&R": "StringConcatenate"
601 },
602 "widgets_values": [
603 "",
604 "",
605 ""
606 ],
607 "widgets_values_named": {
608 "string_a": "",
609 "string_b": "",
610 "delimiter": ""
611 }
612 }
613 ],
614 "groups": [],
615 "links": [
616 {
617 "id": 13,
618 "origin_id": 6,
619 "origin_slot": 0,
620 "target_id": 8,
621 "target_slot": 0,
622 "type": "STRING"
623 },
624 {
625 "id": 9,
626 "origin_id": 7,
627 "origin_slot": 0,
628 "target_id": 8,
629 "target_slot": 1,
630 "type": "STRING"
631 },
632 {
633 "id": 14,
634 "origin_id": 8,
635 "origin_slot": 0,
636 "target_id": -20,
637 "target_slot": 0,
638 "type": "STRING"
639 },
640 {
641 "id": 19,
642 "origin_id": -10,
643 "origin_slot": 1,
644 "target_id": 7,
645 "target_slot": 0,
646 "type": "STRING"
647 },
648 {
649 "id": 18,
650 "origin_id": -10,
651 "origin_slot": 0,
652 "target_id": 6,
653 "target_slot": 0,
654 "type": "STRING"
655 }
656 ],
657 "extra": []
658 }
659 ]
660 },
661 "config": [],
662 "extra": {
663 "ds": {
664 "scale": 0.6639903362646115,
665 "offset": [
666 1010.7712973614462,
667 370.2284412889779
668 ]
669 },
670 "frontendVersion": "1.58.5"
671 },
672 "version": 0.4
673}