Nodes/Eric_Qwen_Edit_Experiments/Eric Qwen ControlNet Prompt Rewriter (Vision)
ComfyUI Node

Eric Qwen ControlNet Prompt Rewriter (Vision)

A ComfyUI node in Eric Qwen-Image with 11 inputs and 2 outputs.

By EricRollei·Created 5 months ago·Updated 3 months ago· 19
Eric Qwen ControlNet Prompt Rewriter (Vision)
  • image
  • prompt
  • cn_type_index
creative_direction
cn_typeSoftline
api_urlhttp://localhost:1234/v1
modelqwen3-vl
languageEnglish
temperature0.7
max_tokens2048
custom_instructions
passthroughfalse
image_max_side1024
CategoryEric Qwen-Image

Inputs (11)

NameTypeDefaultDescription
imageIMAGEReference image for the VLM to analyse.
creative_directionSTRINGDescribe how the new image should differ from the reference. Can be brief — the VLM will expand it into a full descriptive prompt. Example: 'cyberpunk warrior in neon-lit alley' Example: 'oil painting in Rembrandt style' Example: 'same scene but underwater'
cn_typeCOMBOSoftlineWhich ControlNet preprocessor will be used. Informs the VLM about what structural info is preserved vs what must be described: • Softline — soft contours (idx 1) • DWPose — body skeleton only (idx 2) • Depth — spatial depth layout (idx 3) • CannyEdge — hard edges/outlines (idx 4) • PyraCanny — multi-scale edges (idx 5)
api_urlSTRINGhttp://localhost:1234/v1OpenAI-compatible vision API URL. Ollama: http://localhost:11434/v1 LM Studio: http://localhost:1234/v1 OpenAI: https://api.openai.com/v1
modelSTRINGqwen3-vlVision model name. Must support image input. Ollama: qwen3-vl, qwen2.5-vl:7b, llava OpenAI: gpt-4o-mini, gpt-4o
languageoptCOMBOEnglishLanguage for the rewritten prompt.
temperatureoptFLOAT0.70–2VLM temperature. Lower = more faithful.
max_tokensoptINT2048256–8192Max tokens for the VLM response.
custom_instructionsoptSTRINGAdditional instructions for the VLM. Example: 'Use a cinematic photography style' Example: 'Emphasize dramatic lighting' Appended to the system prompt.
passthroughoptBOOLEANfalseSkip VLM rewriting. Passes creative_direction through as-is (for A/B testing).
image_max_sideoptINT1024256–2048Max pixel size (longest side) for the image sent to the VLM. Larger = more detail but slower and more tokens.

Outputs (2)

NameTypeDescription
promptSTRING
cn_type_indexINT