Models · family

Image generation

17 model builds · MiniMax-H3-Image · FLUX 3 Klein · FLUX.2 klein · Z-Image-Turbo · Qwen-Image · FLUX.1-schnell · HiDream-O1 · Stable Diffusion XL / 3.5 · Bonsai Image. Local image generation through an OpenAI-compatible /v1/images API — the same server the desktop app's Images tab uses.

Pick one

One command per model, smallest memory floor first. The floor is the alias's minimum-memory setting; the size is what rapid-mlx models --modality image-gen reports. Install the extra once with pip install rapid-mlx==1.1.2 (Python 3.12+); weights download on first use.

rapid-mlx serves POST /v1/images/generations (and POST /v1/images/edits) in the OpenAI Images shape, rendering through mflux and pinned native MLX runtimes entirely on your Mac. One image model is resident at a time — same single-worker discipline as the video lane. In the desktop app, the Images tab drives the same endpoints: pick a model, prompt, refine, and every render lands in a filmstrip you can step back through.

family
Image generation (mflux + native MLX)
model builds
17
install
pip install rapid-mlx==1.1.2
OpenAI base URL
http://localhost:8000/v1

New image models and edits in 1.0.4 and 1.0.5

flux3-klein and flux3-klein-base use a 24 GB catalog minimum and support up to ten edit references through the API and Desktop. They remain unavailable on 16 GB Macs. FLUX 3 downloads and disk-space checks count only runtime components.

rapid-mlx serve flux3-klein
rapid-mlx serve flux3-klein-base

minimax-h3-image (4-bit, 64 GB catalog minimum) and minimax-h3-image-8bit (96 GB minimum) generate images and combine up to 16 edit references through the API; Desktop currently limits attachments to ten. The MiniMax-H3-Image Community License excludes the EU, UK, Republic of Korea and US; separate authorization is required above US$1M annual revenue or for hosted third-party services. Responses carry the required attribution, and weights download only from the upstream Hub.

rapid-mlx serve minimax-h3-image
rapid-mlx serve minimax-h3-image-8bit

For image LoRAs, put your .safetensors files in ~/.rapid-mlx/loras and select them by name for generation or edits. GET /v1/images/loras lists available adapters. Image LoRAs are supported only on compatible FLUX, Qwen-Image and Z-Image runtimes; MiniMax-H3-Image does not support them. The image runtime uses mflux 0.23 with unchanged generation behavior.

Qwen-Image reference limits are checkpoint-specific: qwen-image-2.1 and qwen-image accept one, qwen-image-2.1-bf16 accepts ten, and qwen-image-2.1-turbo accepts none. Exceeding a model’s edit reference limit returns HTTP 400.

In 1.0.5, FLUX.2 Klein 4B and Z-Image Turbo use their catalog memory minimums for admission on 16 GB Macs. Desktop saves generated and edited images across relaunch, newest first, and deleting an image removes its file.

Usage

pip install rapid-mlx==1.1.2
rapid-mlx serve z-image-turbo

curl http://localhost:8000/v1/images/generations \
  -H 'Content-Type: application/json' \
  -d '{"model":"z-image-turbo","prompt":"a lighthouse at dusk, oil painting","size":"1024x1024"}'

Family pages

Z-Image, FLUX and Qwen-Image have their own pages with usage and download details:

Notes & caveats

Frequently asked questions

Can I generate images locally on a Mac?

Yes — POST /v1/images/generations renders entirely on Apple Silicon. No cloud, no per-image cost. The desktop Images tab uses the same server.

Which image models run on Apple Silicon?

Sixteen aliases, from qwen-image-2.1 and flux2-klein-4b (8–12 GB Macs) up to qwen-image-edit (96 GB). flux2-klein-4b is the fast default.

Where next