ComfyUI Node
Eric Qwen Prompt Rewriter
A ComfyUI node in Eric/QwenImage with 10 inputs and 1 output.
Eric Qwen Prompt Rewriter
- enhanced_prompt
◄prompt—►
◄api_urlhttp://localhost:1234/v1►
◄model►
◄languageEnglish►
◄temperature0.7►
◄max_tokens2048►
◄custom_instructions►
◄lora_triggers►
◄trigger_modeincorporate►
◄passthroughfalse►
CategoryEric/QwenImage
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Original image description to enhance | |
| api_url | STRING | http://localhost:1234/v1 | OpenAI-compatible API base URL. Examples: LM Studio: http://localhost:1234/v1 Ollama: http://localhost:11434/v1 DeepSeek: https://api.deepseek.com/v1 OpenAI: https://api.openai.com/v1 |
| modelopt | STRING | Model name override. Leave empty to auto-detect the loaded model from the API server. Ollama: qwen3:8b, llama3.1:8b DeepSeek: deepseek-chat OpenAI: gpt-4o-mini | |
| languageopt | COMBO | English | Language for the rewritten prompt |
| temperatureopt | FLOAT | 0.70–2 | LLM temperature — lower = more faithful, higher = more creative |
| max_tokensopt | INT | 2048256–8192 | Maximum tokens for the LLM response. Set higher for thinking models (DeepSeek-R1) where reasoning tokens consume part of this budget. 2048 is a safe default. |
| custom_instructionsopt | STRING | Optional additional instructions appended to the system prompt. Example: 'Focus on cinematic lighting and dramatic shadows.' Leave empty to use the default Qwen-style rewriting. | |
| lora_triggersopt | STRING | LoRA trigger words or phrases, one per line or comma-separated. These are special tokens that activate LoRA styles or subjects. Example: artdeco style ohwx person watercolor painting, soft edges | |
| trigger_modeopt | COMBO | incorporate | How to add LoRA trigger words to the prompt: incorporate — LLM weaves triggers naturally into the rewritten text prepend — add triggers before the prompt text (no LLM needed) append — add triggers after the prompt text (no LLM needed) off — ignore trigger words entirely |
| passthroughopt | BOOLEAN | false | If True, skip rewriting and pass the prompt through unchanged (for A/B testing). Prepend/append triggers are still applied. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| enhanced_prompt | STRING | — |