Nodes/Ernie_Image_Real_Diffusers/Eric ERNIE Prompt Rewriter
ComfyUI Node

Eric ERNIE Prompt Rewriter

Expand a short prompt into a detailed ERNIE-Image description via LM Studio.

By EricRollei·Created 4 months ago·Updated 4 months ago· 3
Eric ERNIE Prompt Rewriter
    • enhanced_prompt
    prompt
    api_urlhttp://localhost:1234/v1
    modelqwen3-8b
    languageEnglish
    width1024
    height1024
    temperature0.60
    passthroughfalse
    custom_instructions
    CategoryEric ERNIE Image

    Inputs (9)

    NameTypeDefaultDescription
    promptSTRINGShort prompt to expand into a detailed description.
    api_urlSTRINGhttp://localhost:1234/v1OpenAI-compatible API base URL. LM Studio default: http://localhost:1234/v1 Ollama default: http://localhost:11434/v1
    modelSTRINGqwen3-8bModel name as shown in LM Studio / Ollama. Qwen3-8B, Llama3-8B, or any instruct model works well.
    languageCOMBOEnglishLanguage for the enhanced prompt. Chinese matches ERNIE-Image's training data origin but English works equally well.
    widthINT1024256–8192Target width - passed to the LLM for aspect-ratio-aware expansion.
    heightINT1024256–8192Target height - passed to the LLM for aspect-ratio-aware expansion.
    temperatureFLOAT0.600–2LLM temperature. 0.6 matches the PE defaults. Lower = more faithful.
    passthroughBOOLEANfalseSkip rewriting and pass the prompt unchanged. Useful for A/B testing.
    custom_instructionsoptSTRINGExtra instructions appended to the system prompt.

    Outputs (1)

    NameTypeDescription
    enhanced_promptSTRING