Nodes/ComfyUI-RT-LTX2-RareTools/RT Qwen Image 2.1 Prompt Enhancer
ComfyUI Node

RT Qwen Image 2.1 Prompt Enhancer

A ComfyUI node in RareTutor/Prompt with 24 inputs and 5 outputs.

By monnky·Created 9 months ago·Updated a day ago· 16
RT Qwen Image 2.1 Prompt Enhancer
  • image_1
  • image_2
  • image_3
  • image_4
  • image_5
  • image_6
  • image_7
  • image_8
  • image_9
  • image_10
  • image
  • enhanced_prompt
  • json_output
  • wh_ratio
  • ratio_follow
  • diagnostics
◄llm_modelNo supported models (.gguf or .safetensors) found in clip/text_encoders/llm►
◄vision_modelNo supported models (.gguf or .safetensors) found in clip/text_encoders/llm►
◄user_input►
◄mode01. Edit Prompt Enhancer (Image-to-Image / Multi-Image)►
◄thinking_modeDisabled (Fast / Direct JSON - Recommended)►
◄image_resolution1.0 Megapixel (1008x1008 - Ultra Detail, Recommended)►
◄max_tokens4096►
◄creativity0.8 - Balanced (Recommended)►
◄seed-1►
◄n_ctx8192►
◄n_gpu_layers-1►
◄keep_model_loadedtrue►
◄debug_consoletrue►
CategoryRareTutor/Prompt

Inputs (24)

NameTypeDefaultDescription
llm_modelCOMBONo supported models (.gguf or .safetensors) found in clip/text_encoders/llmSelect a GGUF text model or multimodal base model.
vision_modelCOMBONo supported models (.gguf or .safetensors) found in clip/text_encoders/llmSelect a GGUF vision projector / mmproj model (required when input images are used).
user_inputSTRING—
modeCOMBO01. Edit Prompt Enhancer (Image-to-Image / Multi-Image)01: Rewrites image editing instructions with strict attribute disentanglement. 02: Expands short text into rich T2I prompts. 03: Generates a style transfer instruction from image1 (content) + image2 (style reference) - no text input needed.
thinking_modeCOMBODisabled (Fast / Direct JSON - Recommended)Disable internal <think> reasoning for instant generation (3-5 seconds) and to avoid token budget truncation. Enable only if you want full chain-of-thought analysis.
image_resolutionCOMBO1.0 Megapixel (1008x1008 - Ultra Detail, Recommended)Visual resolution for reference images. 1.0 MP (1008x1008) provides ~1296 tokens per image, preserving small text, facial features, and subtle textures. 28-pixel patch alignment is strictly enforced.
max_tokensCOMBO4096Maximum output tokens to generate. Default 4096 provides ample headroom for reasoning models.
creativityCOMBO0.8 - Balanced (Recommended)Sampling temperature. Lower is more literal; higher is more elaborative.
seedINT-1-1–18446744073709550000Random seed for reproducible generation (-1 for random).
n_ctxINT81922048–32768Context window size in tokens.
n_gpu_layersINT-1-1–128Number of model layers to offload to GPU VRAM (-1 = all layers to GPU, 0 = CPU only).
keep_model_loadedBOOLEANtrueKeep model loaded in VRAM across workflow runs to avoid reloading latency.
debug_consoleBOOLEANtruePrint detailed progress and diagnostic metrics to the terminal console.
image_1optIMAGEReference image 1 (<image1>). Primary canvas, target scene, or main subject.
image_2optIMAGEReference image 2 (<image2>). Secondary reference, style, face, clothing, or background.
image_3optIMAGEReference image 3 (<image3>).
image_4optIMAGEReference image 4 (<image4>).
image_5optIMAGEReference image 5 (<image5>).
image_6optIMAGEReference image 6 (<image6>).
image_7optIMAGEReference image 7 (<image7>).
image_8optIMAGEReference image 8 (<image8>).
image_9optIMAGEReference image 9 (<image9>).
image_10optIMAGEReference image 10 (<image10>).
imageoptIMAGEAlternative single image or batched image input.

Outputs (5)

NameTypeDescription
enhanced_promptSTRING—
json_outputSTRING—
wh_ratioSTRING—
ratio_followSTRING—
diagnosticsSTRING—