Nodes/Eric_Qwen_Edit_Experiments/Eric Qwen Prompt Rewriter
ComfyUI Node

Eric Qwen Prompt Rewriter

A ComfyUI node in Eric/QwenImage with 10 inputs and 1 output.

By EricRollei·Created 5 months ago·Updated 3 months ago· 19
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)

    NameTypeDefaultDescription
    promptSTRINGOriginal image description to enhance
    api_urlSTRINGhttp://localhost:1234/v1OpenAI-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
    modeloptSTRINGModel 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
    languageoptCOMBOEnglishLanguage for the rewritten prompt
    temperatureoptFLOAT0.70–2LLM temperature — lower = more faithful, higher = more creative
    max_tokensoptINT2048256–8192Maximum 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_instructionsoptSTRINGOptional 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_triggersoptSTRINGLoRA 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_modeoptCOMBOincorporateHow 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
    passthroughoptBOOLEANfalseIf True, skip rewriting and pass the prompt through unchanged (for A/B testing). Prepend/append triggers are still applied.

    Outputs (1)

    NameTypeDescription
    enhanced_promptSTRING