MFLUX Brings 10 Pro Image Models to Your Mac for Free
mflux brings 10+ state-of-the-art image generation models to Apple Silicon, with quantization, LoRA, editing, and upscaling -- all free and local
ProTakeaways
- MFLUX is a free, MIT-licensed toolkit running 10+ image generation models natively on Apple Silicon via Apple's MLX framework.
- Supported models include Z-Image (6B), FLUX.2 (4B/9B), Krea 2 (12B), Qwen Image (20B), SeedVR2 upscaler, Ideogram 4, and more.
- Key features: quantization (4-bit/8-bit), multi-LoRA, image editing, inpainting, ControlNet, upscaling, and depth estimation.
- Install with one command:
uv tool install --upgrade mflux; models auto-download from Hugging Face on first run. - A growing ecosystem includes ComfyUI integration, web UIs, a native macOS paint app, and step-skipping speed-ups via TeaCache.
- Repo: filipstrand/mflux -- 2,200+ stars, actively maintained, Python 3.10+.
MFLUX is a growing open-source toolkit that lets you run state-of-the-art image generation models natively on your Mac, using Apple's MLX framework. What started as a clean port of Black Forest Labs' FLUX.1 has quietly expanded into a full image generation platform supporting 10+ model families -- from 3B upscaling models to a 20B multimodal generator -- all running locally, for free, on Apple Silicon.
Built the Karpathy way
MFLUX is a line-by-line MLX port of models from the Hugging Face Diffusers and Transformers libraries. All models are implemented from scratch in MLX, using only tokenizers from Hugging Face Transformers -- kept minimal and explicit, Karpathy style. There are no config files, no heavy abstractions, and no framework magic. Network architectures are hardcoded directly in Python, making the codebase unusually readable and hackable.
Since it was rebuilt from scratch specifically for Mac from professional-grade image generation AI (Diffusers-based), it maximizes the performance of Apple Silicon. The key insight is that MLX, Apple's own ML framework, treats the CPU, GPU, and Neural Engine as a single unified memory pool -- which means large models that would normally require a discrete GPU can run efficiently on a MacBook Pro or Mac Studio.
A model zoo, not just a FLUX port
The model lineup has grown well beyond its FLUX origins. Here's what's currently supported:
| Model | Size | Strength |
|---|---|---|
| Z-Image | 6B | Fast, high realism, distilled |
| FLUX.2 | 4B / 9B | Fastest + smallest, edit support |
| Krea 2 | 12B | Creative styles, wide range |
| FIBO | 8B | JSON-based prompt understanding, editing |
| Qwen Image | 20B | Strong world knowledge, editing |
| SeedVR2 | 3B / 7B | Best-in-class upscaling |
| Ideogram 4 | 9B | Typography-focused generation |
| ERNIE-Image | 8B | Vivid, high-contrast output |
| Depth Pro | -- | Fast depth estimation (Apple) |
| FLUX.1 | 12B | Legacy, Kontext editing, ControlNet |
Each model has its own CLI command and Python API. The project recommends using a coding agent like Claude Code or Cursor to navigate the surface area, which has grown large enough that even the maintainers suggest it.
What it can actually do
Beyond basic text-to-image, the feature set covers most of what you'd expect from a cloud-based pipeline:
- Quantization -- models can be loaded at 4-bit or 8-bit precision, dramatically reducing memory usage and speeding up inference
- LoRA support -- multi-LoRA, per-LoRA scale control, and Hugging Face library lookup
- Image editing -- in-context editing, multi-image editing, virtual try-on (via Qwen Image and FIBO)
- Inpainting and fill -- mask-based region editing
- ControlNet -- Canny edge and depth conditioning for FLUX.1
- Upscaling -- SeedVR2 is a dedicated diffusion-based super-resolution model designed to be fast (often 1-step) and highly faithful to the original image. Unlike the ControlNet-based upscaler, it does not require a text prompt, and is the preferred method for high-fidelity upscaling.
- Depth map extraction -- via Apple's own Depth Pro model
- Metadata export and reuse -- save and replay generation parameters
Getting started in two commands
Installation is a single command: uv tool install --upgrade mflux. From there, each model family gets its own CLI entry point. Here's a minimal example using Z-Image Turbo, the fastest and most practical starting point for most workflows:
mflux-generate-z-image-turbo \
--prompt "A puffin standing on a cliff" \
--width 1280 \
--height 500 \
--seed 42 \
--steps 9 \
-q 8
The -q 8 flag enables 8-bit quantization, which cuts memory usage significantly while keeping quality high. For scripting, there's also a clean Python API:
from mflux.models.z_image import ZImageTurbo
model = ZImageTurbo(quantize=8)
image = model.generate_image(
prompt="A puffin standing on a cliff",
seed=42,
num_inference_steps=9,
width=1280,
height=500,
)
image.save("puffin.png")
Where it shines -- and where it doesn't
MFLUX targets users who want to leverage powerful image generation models efficiently on Apple Silicon hardware, offering features like quantization for reduced memory usage and faster inference, LoRA support, and various image manipulation tools. If you're doing local prototyping, building a creative pipeline, or want to avoid cloud API costs, this is the most capable option available on a Mac today.
The tradeoffs are real, though. The 20B Qwen Image model is slow by design -- it's a large base model without distillation. The FLUX.1 12B model is labeled "legacy" and mostly kept around for ControlNet workflows. And while quantization helps a lot, very large models on 16GB unified memory machines will still feel constrained. The sweet spot is the 4B-8B distilled models like Z-Image Turbo and FLUX.2, which are fast enough for iterative work.
A community built on top of it
The project has attracted a healthy ecosystem of wrappers and UIs. Community projects include MindCraft Studio (a macOS app), mflux-paint (a native macOS inpaint/edit app with 16 models, mask painting, and multi-seed batch), Mflux-ComfyUI, MFLUX-WEBUI, mflux-fasthtml, mflux-streamlit, and mlx-taef for tiny-autoencoder live previews. There's also mlx-teacache, which implements TeaCache -- a technique that skips redundant denoising steps to speed up generation without retraining the model.
Development is active, and the project is available for anyone to use freely under the MIT license. It has received high praise from users around the world on GitHub, making it a reliable choice. The repo has grown to over 2,200 stars and 164 forks, with a fork called MLX-Gen already using it as the backend for a broader local generation runtime.
Why this matters beyond the Mac
The broader significance of MFLUX is what it signals about the state of local AI inference. Apple Silicon's unified memory architecture -- where CPU, GPU, and Neural Engine share the same memory pool -- turns out to be genuinely well-suited for large diffusion models. MLX is especially good for fast model exploration and inference on Mac, and projects like MFLUX show practical image generation pipelines that run locally. The gap between "cloud-only" and "runs on your laptop" continues to close, and MFLUX is one of the clearest examples of that shift happening in image generation.
It's free, MIT-licensed, and installable in one line. If you have an Apple Silicon Mac and haven't tried local image generation yet, this is the place to start.