Automate 3000+ Apps AI Support Chatbot Rent Cloud GPUs Smart Forms Free Rank In AI Search Track Your Rankings
Automate 3000+ Apps AI Support Chatbot
Free Email Marketing AI Data Analyst Funnels + Email Free AI Agent Workspace Build AI Apps No Code No-Code AI Agents
Home » Local AI Image Generation on Mac » Best Models by RAM

Best Local AI Image Models for Mac by RAM: 16, 32 and 64 GB

On a 16 GB Mac, run Z-Image Turbo or FLUX.2 klein 4B at 8 bit or lower. On 32 GB, every current image model runs comfortably and LoRA training becomes practical. On 64 GB, you can run the largest image models unquantized, train LoRAs with room to spare, and keep other heavy apps open while you do it. The number that decides all of this is peak memory during a run, and for Z-Image Turbo at 8 bit that measures 7.5 GB for a 1024 by 1024 image.

Why RAM Is the Whole Question on a Mac

So on a PC the limit is the graphics card's own memory, called VRAM, and a card with 12 GB can only load a 12 GB model no matter how much system RAM the machine has. A Mac does not work that way. Apple Silicon uses "unified memory", which means the processor and the graphics chip share 1 pool, so a 64 GB Mac can hand most of 64 GB to an image model. That is why a MacBook can load models that would need a very expensive NVIDIA card on a PC.

Now the other side of that, the Mac's graphics chip is slower than a high end NVIDIA card at the actual math. So the trade is simple, a Mac lets you load big models, and it runs them slower. A 64 GB Mac basically means "I can run nearly anything, I just wait longer", and a 24 GB NVIDIA card means "I can run fewer things, very fast".

The memory also is not all yours. macOS, your browser and whatever else is open take their share first, usually 6 to 10 GB on a machine in normal use. So a 16 GB Mac has more like 8 GB free for a model, which is exactly why the 7.5 GB peak number matters so much.

The Numbers That Are Actually Measured

Most memory figures you see online are guesses or file sizes, and a file size is not memory use. The mflux project publishes real measured peaks in its docs, taken on Apple Silicon with Z-Image Turbo at 1024 by 1024 and 9 steps:

SetupPeak memory
Z-Image Turbo, 8 bit, saved copy, 1 image7.5 GB
Same, 2 seeds in 1 run11.8 GB
Same, 2 seeds with the small text encoder9.6 GB
Same model loaded from the Hugging Face cacheabout 26 GB
Weights held in memory, full precision20.5 GB
Weights held in memory, 8 bit11.0 GB

Two things jump out. First, how the model is loaded changes the peak by a factor of about 3 and a half, the saved 8 bit copy peaks at 7.5 GB and the cache load peaks at 26 GB, for the same image. The reason is the cache holds the transformer as 32 bit floats, and converting them takes room. Second, a single image from the command line uses less than the full weight size, because the tool frees the text encoder before the main work starts. When the model stays loaded, as it does in a script or a server that makes image after image, plan around the 11 GB figure instead.

The fix for the big peak is 1 command, mflux-save, which writes a quantized copy to disk. It is in the mflux install guide.

What Quantization Does to Memory and Quality

Quantization means storing each number in the model with fewer bits. The full models use 16 bits per number, 8 bit halves that, and 4 bit halves it again. So a 6 billion parameter model is about 12 GB at 16 bit, 6 GB at 8 bit and 3 GB at 4 bit, for the main transformer alone, with the text encoder and the image decoder on top.

For quality, 8 bit is very hard to tell from the full model. 6 and 5 bit are still good. 4 bit is where you start to see softer detail and weaker text rendering in some images, and 3 bit is a last resort for a machine that cannot fit anything else. mflux supports 3, 4, 5, 6 and 8, so the rule is use the highest level that fits and step down only when the machine starts swapping.

16 GB Macs

This is the tight one, and it still works for images. The models that fit:

Use the --low-ram flag, generate 1 image per run, and keep to 1024 by 1024 or smaller. What does not fit: the 20B Qwen Image, Krea 2 at 12B unless heavily quantized, and anything where the text encoder alone is bigger than the machine (Lens ships with a 20B text encoder). Training is the hard part on 16 GB, a small LoRA on the smallest models may run, slowly, and video is not realistic at all.

32 and 36 GB Macs

This is where it gets comfortable. Every image model in mflux runs, the mid sized ones at 8 bit without closing anything, and the large ones at 4 to 6 bit. Good picks at this size are FLUX.2 klein 9B, Qwen Image 2.1 (7.1B plus an 8B text encoder), Krea 2 at 8 bit, and FLUX 3 Image Klein for text and layouts.

Training opens up here too. The mflux docs say that on a 32 to 36 GB Mac, FLUX.2 klein training fits when you turn on a setting called gradient checkpointing and train at 8 bit, and that without it the first training step needs more memory than the machine has and the process gets killed. So 32 GB basically means "training works if I use the memory saving settings". Details are in how to train a LoRA on a Mac.

64 GB and Up

On 64 GB the question changes from "what fits" to "what else do I want running". A 7.5 to 11 GB image model is around 15% of the machine, so you can keep a local language model loaded, a browser full of tabs and your editor, and generate images next to all of it. You can also run the big ones, Qwen Image at 20B, and the mid sized models with no quantization at all.

For training, 64 GB runs LoRA jobs on Z-Image, FLUX.2 klein 9B and Qwen Image 2.1 without the memory saving settings, which makes each step about 30% faster than a machine that needs them. Video is the 1 area where 64 GB is the starting point and not the comfortable end, the video models are 14B to 19B and their memory use while running is not published anywhere reliable. That is covered in generating AI video locally on a Mac.

Quick Reference

Mac memoryGenerate imagesTrain a LoRAVideo
8 GBSmallest models only, 4 bit, slowNoNo
16 GBZ-Image Turbo, FLUX.2 klein 4B at 8 bitSmallest models, tightNo
24 GBMost models at 6 to 8 bitSmall and mid models with memory saving onTiny models only
32 to 36 GBAll models, large ones quantizedYes, with gradient checkpointingSmall models
64 GBAll models, most unquantizedYes, comfortablyShort clips, slow
128 GB and upEverythingEverything mflux supportsBest a Mac can do

Does the Chip Matter, or Only the RAM?

RAM decides what runs, the chip decides how long you wait. A newer chip and a higher tier (Pro, Max, Ultra) both add graphics cores, and image generation scales pretty directly with those. The mflux docs measured an M1 Max at 6.8 seconds per step on FLUX.2 klein 4B and 10.7 seconds per step on Z-Image Turbo, both at 4 bit and 1024 by 1024, so a full image is roughly 30 seconds to a minute and a half on a 5 year old chip. Newer chips are faster, and the Max and Ultra tiers faster again, so treat the M1 Max figures as the slow end of what current hardware does.

So if you are choosing a machine for this, memory first. A base chip with 32 GB runs more than a Max chip with 16 GB, it just runs it slower, and slow still finishes while "does not fit" never does.

How to Check What Your Mac Is Doing

You do not have to guess whether a model fits, macOS will tell you. Run these before and after a generation:

sysctl hw.memsize          # total memory in bytes
sysctl vm.swapusage        # swap file in use
vm_stat | grep Swapouts    # pages written to swap
memory_pressure            # overall memory state

If swap use and Swapouts stay flat, the model fit. If they climb during the run, the model is bigger than your free memory and the Mac is writing it to the SSD, which is slow and wears the drive over time. Activity Monitor shows the same thing as a graph under the Memory tab, green is fine, yellow is tight, red means pick a smaller model or a lower bit level.

Pick by peak memory, not by file size. Take your Mac's memory, subtract about 8 GB for the system and open apps, and what is left is your budget. Z-Image Turbo at 8 bit needs 7.5 GB of it for a single image, which is why it is the default answer for a 16 GB Mac and an easy fit on everything above.