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: ComfyUI Agent: early access announcement (Melvin Vivas on X · notes), Comfy Router: One API for Image, Video, 3D and Audio Model Providers (Melvin Vivas on X · notes), Generating AI Video Locally with MiniMax H3 in ComfyUI on an RTX 3090 (Melvin Vivas on X · notes), Running MiniMax M3 Locally in ComfyUI on an RTX 3090 (Melvin Vivas on X · notes) and 23 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: 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), AIBackends: An API Layer Between Your App and AI Models (Now with Jev) (Melvin Vivas on X · notes) and 31 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: Gemma 4 Runs Locally On-Device in the Antigravity SDK (Melvin Vivas on X · notes), On-Device AI: Running Gemma 4 E2B Offline on an iPhone with LiteRT (Melvin Vivas on X · notes), Running Gemma 4 Models Offline on an iPhone (Melvin Vivas on X · notes), Fine-tuning Gemma4-E2B on your own tweet style with Unsloth (Melvin Vivas on X · notes) and 25 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