Diffusion on the Mac
Image generation in MLX runs through diffusion models — Stable Diffusion variants, FLUX (the current quality leader for many use cases), and the long tail of community-trained models. The MLX-native packaging effort is led by argmaxinc's mlx-FLUX work and the older mlx-examples/stable_diffusion reference, both of which target Apple Silicon's unified memory directly.
The fast path is argmaxinc/mlx-FLUX.1-schnell — a 4-step quality-leading diffusion model in MLX format. "Schnell" is German for "quick," and it lives up to it; you get full-quality generations in a fraction of the steps required by older Stable Diffusion variants.
The wall-clock you should expect
FLUX schnell 4-bit quantized on an M-Pro generates a 1024×1024 image in roughly 10–30 seconds; on M-Ultra closer to the 5–15 second range. That's a working iteration loop — you can sketch with a model in real-time-ish, no GPU rental needed.
The MLX vs CoreML decision for image generation
For the same model class on the same chip, MLX and CoreML perform similarly — sometimes within noise of each other. The decision isn't about raw speed; it's about workflow:
- MLX — Python-first, easy to script and integrate into pipelines, full control over the diffusion sampler, easy A/B between quantization levels. Use this for research or any pipeline where Python is already the integration layer.
- CoreML — Swift-first, easy to embed in macOS / iOS apps, optimized for on-device deployment. Use this when you're shipping a feature inside an app and need the App Store distribution + privacy guarantees.
Hosted APIs vs local generation
For commercial-grade image generation as a single user, a hosted API (Replicate, fal, OpenAI's image API) is often cheaper per image than running a local Mac that's idle most of the day. Local Mac generation wins when (1) the privacy or air-gap matters, (2) you're generating in volume and the per-image cost adds up, or (3) you want full control over the model and sampler. For one-off use, the hosted API is usually the right call; for a creative tool you use daily, the Mac wins on cumulative cost.