Are you the type of person who likes to have computers do all your thinking for you?
Did you look at the lazy people in Wall-E, floating around, unable to do anything without assistance, and think "YES! That's a major life goal!"?
OR do you just want help making better prompts from basic disjointed concepts?
Well then this is the tool for you!
EA LM Studio
https://github.com/EnragedAntelope/EA_LMStudio
- What it is: A custom ComfyUI node that connects to your local [LM Studio](https://lmstudio.ai/) instance (you must have LM Studio installed with at least one model for this to work)
- What it does: Sends text to a local LLM, gets the response back, and outputs it as a ComfyUI STRING — ready to wire into any text input
- Why it's awesome:
- 100% local — no API keys, no cloud, no rate limits
- Any model — use Qwen, Gemma, Mistral, Llama, or your favorite suspiciously uncensored models
- Zero config — auto-discovers models from LM Studio at startup
- Auto VRAM management — unloads the LLM after inference to free VRAM for image generation
- Full control — temperature, top_p, top_k, repeat_penalty, max_tokens, thinking mode, and more
A sample workflow (created by comfy-draftsman MCP) using EA LM Studio for Krea2 Turbo is attached.
Example Run
User Input: "A grumpy cat wearing a tiny astronaut helmet, floating in space with pizza slices orbiting around it like planets"
System Prompt: "You are a creative prompt engineer. Expand the given idea into a single, vivid, highly detailed image prompt..."
Enhanced Prompt (actual LLM output):
> A grumpy orange tabby cat with fur bristling in zero gravity, wearing an oversized, dented silver astronaut helmet that foggy condensation clings to the visor, expression deeply unimpressed and scowling, floating weightlessly amidst a vast starfield. Surrounding the cat are several pepperoni pizza slices acting as miniature planets, complete with glowing orange crusts and radiating gravitational distortion lines, connected by thin, shimmering rings of cosmic dust and stardust. Dramatic volumetric lighting from distant supernovas casts long, ethereal blue and violet shadows across the scene, creating a high-contrast chiaroscuro effect. Macro photography style with an f/1.2 aperture for creamy bokeh on background nebulae, hyper-realistic texture on the cat's whiskers and the cheesy pizza slices, 8k resolution, octane render, intricate detail, whimsical sci-fi atmosphere, mood of cosmic indifference.
Installation
Prerequisites
- [ComfyUI](https://github.com/comfyanonymous/ComfyUI) (tested on v0.29.0+)
- [LM Studio](https://lmstudio.ai/) running locally with at least one model loaded
To install EA LM Studio Node:
Option 1: ComfyUI Manager (Recommended)
1. Open ComfyUI Manager
2. Search for "EA LM Studio"
3. Click Install
4. Restart ComfyUI
Option 2: Git Clone
Navigate to your ComfyUI/custom_nodes folder.
git clone https://github.com/EnragedAntelope/EA_LMStudio.git
Description
This example workflow is for Krea 2 Turbo, but this tool can be used with any model.
Comments (1)
I've tried a bunch of workflows and specialty nodes that I ended up feeling frustrated with. I was able to get this to work pretty easily. I am super happy, LLMs are great for sprucing up simple concepts into detailed prompts. It's cool that you can use any LLM you already use in LM studio. Also it automatically loads and unloads the models, so it frees up vram for generation. Thanks buddy <3


