mold
Generate images and short video clips on your own GPU. No cloud, no Python, no fuss.
Documentation | Getting Started | Models | API
That's it. Mold auto-downloads the model on first run and saves the image to your current directory.
Install
|
This downloads the latest tagged release from
releases/latest and
installs it to ~/.local/bin/mold. On Linux, the installer auto-detects your
NVIDIA GPU and picks the right binary (RTX 40-series or RTX 50-series). macOS
builds include Metal support.
Pin a specific version with MOLD_VERSION:
| MOLD_VERSION=v0.10.0
Nix
AUR — Arch Linux
Conflicts with extra/mold (the rui314 linker) — they share the /usr/bin/mold
path. See packaging/aur/README.md for details and
the Blackwell (sm_120) build flag.
From source
&& &&
Add preview, expand, discord, or tui to the features list as needed.
Manual download
Pre-built binaries on the releases page.
Desktop app
Mold also has a native desktop app for macOS and Linux. It brings Generate, Gallery, Models, Chains, History, Jobs, RunPod, and Settings into one interface, and can use this device alongside multiple remote Mold hosts. The unified Catalog keeps installed models above the live catalog with image/video filters and pinned downloads, and lets you choose which host receives a download. Its Installed shelf merges every connected host with host badges, while both that screen and each host detail page show host-scoped pull progress. Size labels separate checkpoint weights from the larger footprint including shared runtime components. Curated built-in variants take precedence over ambiguous multi-checkpoint Hugging Face repositories, so a pull targets one runnable model instead of an entire aggregate repository. Every remembered remote host is retried immediately whenever the app launches, independently of This Mac's startup; unreachable hosts stay visible and retry. Chains also uses the all-host video-model union and keeps creation, progress, previews, and durable job actions routed to the selected model's host.
Download Mold for macOS · Desktop guide
The macOS DMG is signed and notarized. Linux builds are currently available through Nix or as source/CI artifacts; tagged releases do not publish an AppImage yet. Detailed setup, multi-host behavior, and update-channel guidance live in the desktop guide.
Usage
Inline preview
Display generated images directly in the terminal (requires preview feature):
Piping
| |
Terminal UI
Model management
Remote rendering
# On your GPU server
# From your laptop
MOLD_HOST=http://gpu-server:7680
Cloud GPU via mold runpod
Generate on a cloud GPU without managing pods yourself:
mold runpod run selects an available GPU, streams progress, and keeps the pod
warm for reuse. See the RunPod CLI guide
for provisioning, storage, diagnostics, and lifecycle commands.
See the full CLI reference, configuration guide, and model catalog in the documentation.
Models
Supports 11 model families with 80+ variants:
| Family | Models | Highlights |
|---|---|---|
| FLUX.1 | schnell, dev, + fine-tunes | Best quality, 4-25 steps, LoRA support |
| Flux.2 Klein | 4B and 9B | Fast 4-step, low VRAM, default model |
| SDXL | base, turbo, + fine-tunes | Fast, flexible, negative prompts |
| SD 1.5 | base + fine-tunes | Lightweight, ControlNet support |
| SD 3.5 | large, medium, turbo | Triple encoder, high quality |
| Z-Image | turbo | Fast 9-step, Qwen3 encoder |
| Qwen-Image | base + 2512 | High resolution, CFG guidance, GGUF quant support |
| Qwen-Image-Edit | 2511 | Multimodal image editing, repeatable --image, negative prompts |
| Wuerstchen | v2 | 42x latent compression |
| LTX-2 / LTX-2.3 | 19B, 22B | Joint audio-video generation, MP4-first workflows |
| LTX Video | 0.9.6, 0.9.8 | Text-to-video with APNG/GIF/WebP/MP4 output |
Bare names auto-resolve: mold run flux-schnell "a cat" picks the best available variant.
See the full model catalog for sizes, VRAM requirements, and recommended settings.
Features
- txt2img, img2img, multimodal edit, inpainting — full generation pipeline
- Image upscaling — Real-ESRGAN super-resolution (2x/4x) via
mold upscale, server API, or TUI; first use auto-downloads the upscaler on the host running the job, and post-generation upscale retains both original and upscaled gallery artifacts - LoRA adapters — FLUX, Flux.2, LTX-2, SD1.5, SD3/SD3.5, SDXL, Qwen-Image, Qwen-Image-Edit, and Z-Image
- ControlNet — canny, depth, openpose (SD1.5)
- Prompt expansion — local LLM (Qwen3-1.7B) enriches short prompts
- Negative prompts — CFG-based models (SD1.5, SDXL, SD3, Wuerstchen)
- Pipe-friendly —
echo "a cat" | mold run | viu - - PNG metadata — embedded prompt, seed, model info
- Terminal preview — Kitty, Sixel, iTerm2, halfblock
- Smart VRAM — quantized encoders, block offloading, drop-and-reload
- Qwen family encoder control — selectable Qwen2.5-VL variants for Qwen-Image and Qwen-Image-Edit, with quantized auto-fallback when BF16 would be too heavy
- Shell completions — bash, zsh, fish, elvish, powershell
- REST API —
mold servewith SSE streaming, auth, rate limiting - Discord bot — slash commands with role permissions and quotas
- Interactive TUI — generate, gallery, models, settings
- Native desktop — local and multi-host generation, gallery, model library, chains, history, jobs, RunPod, and settings
Deployment
| Method | Guide |
|---|---|
| NixOS module | Deployment: NixOS |
| Docker / RunPod | Deployment: Docker |
| mold runpod CLI | Deployment: RunPod CLI |
| Systemd | Deployment: Overview |
How it works
Single Rust binary built on candle for the in-tree model families. LTX-2 now runs through the native Rust stack in mold-inference, so the full model surface stays in Rust with no libtorch dependency.
mold run "a cat"
│
├─ Server running? → send request over HTTP
│
└─ No server? → load model locally on GPU
├─ Encode prompt (T5/CLIP text encoders)
├─ Denoise latent (transformer/UNet)
├─ Decode pixels (VAE)
└─ Save PNG
Requirements
- NVIDIA GPU with CUDA or Apple Silicon with Metal
- Models auto-download on first use (~2-30GB depending on model)