Local Image Generation Pipeline Built with Claude Code
Melvin Vivas · X post · 2026-03-18 · Open on X
Topics: Portfolio Projects, AI Dev Tools & Productivity · Level: intermediate
Summary
The creator used Claude Code to build a local image-generation pipeline that needs no external APIs. It runs Z-Image-Turbo and FLUX.2 dev on ComfyUI with an RTX 3090. They are considering running it 24/7 to produce stock photos at scale.
Key points
- The pipeline is fully local and calls no paid APIs.
- Models used: Z-Image-Turbo and FLUX.2 dev, both running on ComfyUI.
- Hardware: one RTX 3090.
- Claude Code was used to build and automate the pipeline.
- Use case: producing stock photos at scale, possibly running 24/7.
Resources mentioned
- Z-Image-Turbo · tool · huggingface.co · free
An open image-generation model that can run on local hardware.
Also in: Free Local Image Generation: ComfyUI App Mode + LM Studio + Gemma (Melvin Vivas on X · notes), 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) - FLUX.2 dev · tool · huggingface.co · free
Black Forest Labs' open-weight image generation model that can run on local hardware.
Also in: Free Local Image Generation with FLUX.2 Dev in ComfyUI (Melvin Vivas on X · notes) - 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 - Claude Code · tool · code.claude.com · paid · recommended by both Bashiri Smith & Melvin Vivas
Build agents and pipelines from the terminal; the guide's main agentic coding tool.
Also in: First impressions: Claude Code in the cloud is good and fast (Melvin Vivas on X · notes), Why Claude Code feels faster: gzipped turns and instant cloud sessions (Melvin Vivas on X · notes), Watch What Fills Your Coding Agent's Context and When to Clear (Melvin Vivas on X · notes), Claude Code's Right Sidebar and Context Breakdown (Melvin Vivas on X · notes) and 124 more
Try this
- Build an automated local stock-photo production pipeline with ComfyUI, Z-Image-Turbo and FLUX.2 dev, using Claude Code to write the automation.