Free Local Image Generation: ComfyUI App Mode + LM Studio + Gemma
Melvin Vivas · X post · 2026-05-26 · Open on X
Topics: AI Dev Tools & Productivity, Prompt & Context Engineering, Portfolio Projects · Level: intermediate
Summary
The creator describes a fully local, zero-cost image generation setup. ComfyUI's App Mode gives a distraction-free interface, Gemma 4 E2B running in LM Studio makes the prompts more creative, and Z-Image-Turbo generates the images locally.
Key points
- ComfyUI App Mode hides the node graph so you can focus on creating.
- A local LLM (Gemma 4 E2B served by LM Studio) rewrites or expands prompts to make them more creative.
- Z-Image-Turbo generates the images locally.
- The whole pipeline runs on your own machine, with no API costs.
Resources mentioned
- ComfyUI · tool · x.com · free
The official X account for ComfyUI, the node-based tool for generative AI workflows, which announces things like ComfyUI Agent.
Also in: Grok as "Director": Making a Local Anime Clip with ComfyUI on an RTX 3090 (Melvin Vivas on X · notes), FLUX 3 Image Klein: Open-Weights Image Model Now Supported in ComfyUI (Melvin Vivas on X · notes), ComfyUI Templates: Chain Ready-Made Workflows Instead of Building From Scratch (Melvin Vivas on X · notes), Comfy Agent: An AI Agent That Builds ComfyUI Workflows in Comfy Cloud (Melvin Vivas on X · notes) and 32 more - LM Studio · tool · x.com · free
Desktop app for downloading and running LLMs locally, with a developer mode that serves models through an API.
Also in: Run Local LLMs on the Computer You Already Have: A Beginner's Path (Melvin Vivas on X · notes), Running LLMs Locally Without an Expensive Rig (Melvin Vivas on X · notes), Adding Vercel AI Gateway as a provider in AIBackends with Devin (Melvin Vivas on X · notes), LoRA Fine-Tune Qwen3.5-2B on Your Tweets with Unsloth Studio (Melvin Vivas on X · notes) and 32 more - Gemma 4 · tool · ai.google.dev · free
Google's family of open-weight models in several sizes, built to run on devices and offline, with multimodal and agentic abilities, and open to fine-tuning.
Also in: Meetily: Open-Source Local AI Meeting Notes App (Melvin Vivas on X · notes), New Gemma Developer Documentation Site (Melvin Vivas on X · notes), A100 80GB GPUs in Google Colab via Google AI Pro plans (Melvin Vivas on X · notes), A day of work done from a phone with Grok Bot agents (Melvin Vivas on X · notes) and 32 more - Z-Image-Turbo · tool · huggingface.co · free
An open image-generation model that can run on local hardware.
Also in: Local Prompt-to-Image Pipeline: ComfyUI + LM Studio Gemma + Z-Image Turbo (Melvin Vivas on X · notes), Free Local Portraits with Z-Image-Turbo in ComfyUI (Melvin Vivas on X · notes), Free Local Image Generation with Z-Image-Turbo and ComfyUI (Melvin Vivas on X · notes), Local Image Generation Pipeline Built with Claude Code (Melvin Vivas on X · notes)
Try this
- Try ComfyUI App Mode with a local LLM for prompt enhancement and a local image model.
- Build a local image-generation app: Gemma 4 E2B in LM Studio enhances the prompts and Z-Image-Turbo in ComfyUI App Mode renders the images, at zero cost.
More in AI Dev Tools & Productivity
- Shipping Features Fast in Cursor with Multiple AI Models
- Case Study: How Virgin Atlantic Ships Faster with OpenAI Codex
- Automating a Daily AI News Page with Cursor Automations
- Composer 2.5 as the Default Model in Cursor
- Codex limits drained by cache misses during context compaction
- Codex app 26.519: Appshots, Goal mode, remote computer use