ComfyUI Node
Eric ERNIE Prompt Rewriter
Expand a short prompt into a detailed ERNIE-Image description via LM Studio.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Short prompt to expand into a detailed description. | |
| api_url | STRING | http://localhost:1234/v1 | OpenAI-compatible API base URL. LM Studio default: http://localhost:1234/v1 Ollama default: http://localhost:11434/v1 |
| model | STRING | qwen3-8b | Model name as shown in LM Studio / Ollama. Qwen3-8B, Llama3-8B, or any instruct model works well. |
| language | COMBO | English | Language for the enhanced prompt. Chinese matches ERNIE-Image's training data origin but English works equally well. |
| width | INT | 1024256–8192 | Target width - passed to the LLM for aspect-ratio-aware expansion. |
| height | INT | 1024256–8192 | Target height - passed to the LLM for aspect-ratio-aware expansion. |
| temperature | FLOAT | 0.600–2 | LLM temperature. 0.6 matches the PE defaults. Lower = more faithful. |
| passthrough | BOOLEAN | false | Skip rewriting and pass the prompt unchanged. Useful for A/B testing. |
| custom_instructionsopt | STRING | Extra instructions appended to the system prompt. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| enhanced_prompt | STRING | — |