ComfyUI Node
Qwen-Image-2.1 Prompt Generator ๐
A ComfyUI node in ๐ MieNodes/๐ Prompt Generator with 9 inputs and 1 output.
Qwen-Image-2.1 Prompt Generator ๐
- llm_service_connector
- reference_images
- enhanced_prompt
โmodet2i - ๆ็ๅพ(้ป่ฎค)โบ
โuser_inputโบ
โseed0โบ
โcaption_modecache_memory_disk - ็ผๅญ:ๅ
ๅญ+็ฃ็(ๆจ่)โบ
โtemperature0.70โบ
โmax_tokens16384โบ
โtimeout300โบ
Category๐ MieNodes/๐ Prompt Generator
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| llm_service_connector | LLMServiceConnector | โ | |
| mode | COMBO | t2i - ๆ็ๅพ(้ป่ฎค) | Mode / ๆจกๅผ: t2i ๆ็ๅพ(้ป่ฎค) โ observer English paragraph. t2i_rgba ้ๆๆ็ๅพ โ same plus forced RGBA bookend sandwich. edit ๅๅพ็ผ่พ โ single-image edit instruction (rewrite body is always English). multi_ref ๅคๅ่็ผ่พ โ multi-reference edit instruction (<image1>โฆ<imageN>; rewrite body always English). remove_bg ๆ ๅพ โ fixed BG-remove block, no LLM call. |
| user_input | STRING | Rough idea / ่็จฟ: a sentence, an outline, a few lines, or a free paragraph. The rewriter expands it into the prompt the Qwen-Image-2.1 sampler consumes. Output is always English; verbatim text inside straight double quotes in your input is preserved as-is. / ๆฉๅๆญฃๆไธๅพ่ฑๆ๏ผ็ดๅๅผๅทๅ ็ๅญ็ฌฆไธฒไฟ็ๅ่ฏญ็งไธ้ๅญใ | |
| seed | INT | 00โ18446744073709550000 | Seed / ็งๅญ forwarded to the LLM call. 0 lets the connector pick a fresh seed. |
| reference_imagesopt | IMAGE | Optional IMAGE batch / ๅฏ้ IMAGE ๆนๆฌก. For mode=edit / multi_ref ๅๅพ็ผ่พ / ๅคๅ่็ผ่พ, the node captions each image (<image1>โฆ<imageN>) with the bundled _caption_image.txt system prompt and injects the captions into the rewrite user message as locked identity / wardrobe / palette DATA. Pixels are visible to the captioner LLM but NOT to the rewrite LLM. / ๆนๅ LLM ็ไธๅฐๅพใ Recommended ceiling: 10 (model slot limit); beyond that the node logs a warning but still passes the full count. IMPORTANT / ๆณจๆ: ๅค่งๅพ่ฎพๅฎ่กจๆฏ็ๅผใๅ่บซๆจชๆๅ่ฟๅป๏ผๆๅพไผๅคๅถ่ฟๆไบบ๏ผๆฏไธชไบบไธไธชๅงฟๅฟใๅ ่ฃๆๅไบบ๏ผๆญฃ้ขๆๅๅไนไธไพง้ข๏ผๅๆฅ reference_images๏ผ่พๅบ็จ็ซๅน ใ็ผ่พ่็น็่ง็ไปๆฏไฝ ๆฅไธ็้ฃๅผ ๅพ๏ผ่ฟไธช่็นๅชๅๆ็คบ่ฏใ A multi-view character sheet is a layout: four standing views in, four poses out. Crop to one person before wiring the image. Wire any sampler / loader output that emits an IMAGE batch โ e.g. LoadImageBatch or a custom collector. | |
| caption_modeopt | COMBO | cache_memory_disk - ็ผๅญ:ๅ ๅญ+็ฃ็(ๆจ่) | Caption cache strategy / ๆ ๆณจ็ผๅญ็ญ็ฅ (only used when reference_images is connected and mode in {edit, multi_ref}). cache_memory_disk (recommended) ็ผๅญ:ๅ ๅญ+็ฃ็ โ in-memory + persistent on-disk cache under <ComfyUI output>/mien_nodes/caption_cache/. cache_memory_only ็ผๅญ:ไป ๅ ๅญ โ RAM-only cache, lost on restart. no_cache ็ฆ็จ็ผๅญ โ always bypass cache. force_recaption_once ๆฌๆฌกๅผบๅถ้ๆๆ โ force fresh captions now (e.g. after editing _caption_image.txt). |
| temperatureopt | FLOAT | 0.700โ2 | Sampling temperature / ้ๆ ทๆธฉๅบฆ. 0.0โ2.0, step 0.05. Lower = strict adherence to system prompt; higher = more surface variation. |
| max_tokensopt | INT | 1638464โ32768 | Token budget / Token ไธ้. 64โ32768. Reasoning models count their thinking against this cap; 16384 is the safe default for the whole plugin. |
| timeoutopt | COMBO | 300 | Per-call timeout (seconds) / ๅๆฌก่ฐ็จ่ถ ๆถ(็ง). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| enhanced_prompt | STRING | โ |