Skip to content

Image generation

gmlx makes images from a text prompt, and edits images you give it, with the Z-Image-Turbo, Qwen-Image 2.1, Krea 2 Turbo, MOSS-Image, FLUX.2 klein, FLUX.3 klein and MiniMax-H3-Image models. You can run them from the command line, call them from an app through the OpenAI image API, or use them in ComfyUI. Image generation came with gmlx 0.5 and needs a Mac with an M3 chip or newer and 16 GB of memory or more, and 32 GB for MiniMax-H3-Image. An M1 or M2 runs only Z-Image-Turbo, in float16, when you allow it.

Choose a model

Every model but MiniMax-H3-Image runs on a Mac with 16 GB. pull downloads the quant that suits your Mac's memory, so the download is larger on a Mac with more. The image size is the one you get when you ask for none.

Model Download, 16 GB Mac Download, 24 GB Mac Image size License
z-image-turbo 7.7 GB 10.9 GB 1024x1024 Apache 2.0, any use
qwen-image-turbo 14.4 GB 17.5 GB 1024x1024 Research and evaluation only
qwen-image 14.4 GB 17.6 GB 1024x1024 Research and evaluation only
krea-2-turbo 9.8 GB 14.1 GB 512x512 on 16 GB, else 1024x1024 Free commercial use under $1M of yearly revenue
moss-image 9.8 GB 14.4 GB 1024x1024 Apache 2.0, any use
moss-image-base 9.8 GB 14.4 GB 1024x1024 Apache 2.0, any use
flux-2-klein 6.6 GB 8.1 GB 1024x1024 Apache 2.0, any use
flux-2-klein-base 6.4 GB 8.3 GB 1024x1024 Apache 2.0, any use
flux-2-klein-9b 13.6 GB 13.6 GB 1024x1024 Non-commercial only
flux-2-klein-base-9b 13.8 GB 13.8 GB 1024x1024 Non-commercial only
flux-2-klein-9b-kv 13.6 GB 13.6 GB 1024x1024 Non-commercial only
flux-3-klein 7.3 GB 9.8 GB 1024x1024 Non-commercial, and commercial use of the images under $5M of yearly revenue
flux-3-klein-base 7.3 GB 9.8 GB 1024x1024 Non-commercial, and commercial use of the images under $5M of yearly revenue
minimax-h3-image Needs 32 GB Needs 32 GB 2048x2048 No grant in the US, the EU, the UK or South Korea, and authorization from $1M of yearly revenue

MiniMax-H3-Image needs a Mac with 32 GB or more. Its download is 33.3 GB there, and 41.1 GB on a Mac with 64 GB or more.

gmlx pull --list prints the same models under Image models with the download for this Mac, and a bare gmlx pull picks one from a list.

Start with Z-Image-Turbo: it is the fastest, as Benchmarks shows, and its license allows any use. Models and quants lists the steps each model runs and what it edits from.

Make your first image

Create a configuration with gmlx init if you have none, then download the model and make an image:

gmlx pull z-image-turbo
gmlx image generate z-image-turbo --prompt "a lighthouse at dusk" --seed 1 --output lighthouse.png

An image model is three files: the DiT that makes the image, the text encoder that reads the prompt, and the VAE that turns the result into pixels. pull shows what it will download and the license, then downloads the three and adds the model to your configuration. On a 16 GB Mac it prints:

pull z-image-turbo (Z-Image-Turbo): DiT Q4_K_M, encoder Q8_0, the default for a 16 GB Mac
  dit      z-image-turbo-Q4_K_M.gguf                  3.6 GB  download
  encoder  Qwen3-4B-Q8_0.gguf                         4.0 GB  download
  vae      vae/diffusion_pytorch_model.safetensors    0.2 GB  download, packed to z-image-vae-BF16.gguf
  ...
  the three parts: 7.7 GB, which fit this Mac's 16 GB RAM
  license: Z-Image-Turbo apache-2.0 (https://huggingface.co/Tongyi-MAI/Z-Image-Turbo); encoder apache-2.0
...
registered z-image-turbo in /Users/you/.config/gmlx/gmlx.yaml (the image default)
try it: gmlx image generate z-image-turbo --prompt "a red bicycle" --output out.png

generate writes the image to the --output file. Without --output it writes gmlx-<time>-<seed>.png in the current folder. The PNG keeps the prompt, the seed and the settings it was made with. Each generate loads the model before its first step, which takes a while on every run.

gmlx image generate has the flags for size, steps, edits from an image and several images at once. When a command stops with an error, Troubleshooting has the fix.

MiniMax-H3-Image

MiniMax-H3-Image makes large, detailed images in 6 steps, 2048x2048 when you ask for no size, and edits up to 16 pictures. It needs a Mac with 32 GB or more. Its license grants nothing in the United States, the European Union, the United Kingdom or South Korea without a separate license from MiniMax, as Licenses says. Download it and make an image:

gmlx pull minimax-h3-image
gmlx image generate minimax-h3-image --seed 3 --output cabin.png \
    --prompt "a log cabin in a snowy pine forest at dusk, warm light in its windows, smoke rising from the chimney, photograph"

pull downloads the DiT, the Qwen3-VL-32B-Instruct text encoder with its vision tower, the VAE, and MiniMax's prompts for its prompt expander. The model runs the 6 steps it was distilled to, at guidance 1, and refuses another guidance, or another step count without --sigmas. A LoRA such as pDMD-2steps brings steps of its own, as Adapter schedules describes.

Larger images

--size sets a larger image, up to 20 megapixels, such as 4096x4096:

gmlx image generate minimax-h3-image --size 4096x4096 --seed 1 --output cabin-4096.png \
    --prompt "a log cabin in a snowy pine forest at dusk, warm light in its windows, smoke rising from the chimney, photograph"

A size has from 655,360 to 20,000,000 pixels, each side a multiple of 32 and at most 7712, at a shape from 1:3 to 3:1, and another size exits 2. On a 32 GB Mac the DiT that pull takes makes 4096x4096 images. image generate and the server refuse a size that does not fit this Mac's memory, with the memory it needs.

Edit pictures

--ref gives the model up to 16 pictures. The first is the picture to edit, and the prompt names them as Picture 1, Picture 2 and so on:

gmlx image generate minimax-h3-image --ref sofa.png --ref cat.png --seed 1 --output edit.png \
    --prompt "Put the cat from Picture 2 on the sofa in Picture 1"

Without --size the output has the size of Picture 1, its short side scaled into 1024 to 2048 pixels. The text encoder reads the pictures through its vision tower, which pull sets as the entry's encoder_mmproj. A picture outside 1:3 to 3:1 exits 2. On the server an edit goes to the edits route, as Edits and variations describes.

Prompt expander

MiniMax's prompt expander is a chat model of its own that rewrites your prompt as a detailed caption, and sees the pictures of an edit. Download its GGUF, 17.9 GB at Q5_K_M, and its vision tower from mradermacher/MiniMax-H3-Image-PE-GGUF. pull adds it to your configuration as minimax-h3-image-pe, with the tower as its mmproj:

gmlx pull hf:mradermacher/MiniMax-H3-Image-PE-GGUF/MiniMax-H3-Image-PE.Q5_K_M.gguf MiniMax-H3-Image-PE.mmproj-f16.gguf

Then name it as the entry's upsampler:

image_models:
  minimax-h3-image:
    # the rest of the entry that pull wrote
    upsampler: minimax-h3-image-pe

Every prompt of the entry is then rewritten, and --no-upsample runs one as typed. The prompt expander under Prompt upsampling says how it reads an edit and how it samples.

Faster images with int8

On an M5 or newer, --int8 runs parts of the DiT in 8-bit integer math in place of its default float math. It is off unless you set it. The image changes: it is not the one off makes from the same seed.

gmlx image generate minimax-h3-image --int8 linears --prompt "..."
--int8 Runs in int8 DiT memory
off nothing (the default) the file's
attention the attention the file's
linears the linear layers of each block 5.9 GB more on the UD-Q4_K_XL file
all the attention and the linear layers 5.9 GB more on the UD-Q4_K_XL file

Benchmarks has the time of a step at each value. For linears and all, gmlx converts the weights of those layers as the DiT loads, and the memory check counts them, so a size that fits at off can be refused at linears. Set int8 in the entry's defaults to run every image of the entry at one value. A server request's int8 changes the attention alone, since the linear layers are set when the DiT loads, and in ComfyUI the int8 input of gmlx Model Loader does the same, as The model loader's int8 says.

LoRA files

A MiniMax-H3-Image LoRA can name MiniMax's modules, such as blocks.0.attn.qkv_proj, the names ComfyUI reads, or diffusers' modules, such as transformer_blocks.0.attn.to_q, bare or under transformer., as pDMD-2steps does. gmlx applies both, and so do the gmlx nodes in ComfyUI. A LoRA in DiffSynth's form, one that sets a module's config and one that grows the output head into a bank of heads are refused with the reason. Use a LoRA has the commands.

In ComfyUI

The gmlx nodes run MiniMax-H3-Image in ComfyUI 0.45 or newer, with workflows for 2048x2048, 4096x4096, an edit of two pictures and pDMD-2steps, as The example workflows lists.

Call it from an app

gmlx serve answers the OpenAI image routes with the image models of your configuration. Start it, and keep it running in its own terminal:

gmlx serve

A request names the model and the prompt. The answer holds the image as base64, which this command decodes into a PNG:

curl -s localhost:8080/v1/images/generations \
  -H "Content-Type: application/json" \
  -d '{"model": "z-image-turbo", "prompt": "a lighthouse at dusk"}' \
  | jq -r '.data[0].b64_json' | base64 -d > lighthouse.png

The openai Python package, which pip install openai installs, works the same way. gmlx's own fields, such as seed and steps, go in extra_body:

import base64

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8080/v1", api_key="none")
result = client.images.generate(model="z-image-turbo",
                                prompt="a lighthouse at dusk",
                                extra_body={"seed": 1, "steps": 8})
with open("lighthouse.png", "wb") as f:
    f.write(base64.b64decode(result.data[0].b64_json))

Leave out size to get the model's default size, which fits your Mac. When the server has an API key, pass it as api_key, or to curl as -H "Authorization: Bearer KEY".

The model loads on its first request and shares the memory budget with the chat models. When a chat model and an image model do not fit side by side, the server unloads one to load the other, so the first request after a switch waits for the load. Image API lists every field, edits from your own images, streaming and the errors.

gmlx launch open-webui starts Open WebUI with its image generation turned on, the image button in its chat box, using the server's default image model.

Use a LoRA

A LoRA is a small file that changes a model's style or teaches it a subject. Hugging Face and Civitai host many. Take one made for the same model you run, such as a Z-Image-Turbo LoRA for z-image-turbo, as a .safetensors file:

gmlx image generate z-image-turbo --prompt "a lighthouse at dusk" \
    --adapter ~/models/loras/watercolor.safetensors:0.8 --output lighthouse.png

The number after the colon is the strength, 1 when you leave it out. Repeat --adapter to stack LoRAs. The command applies both halves of a LoRA that also trains the text encoder.

On the server, the LoRAs in the entry's adapters apply to every request, both halves. A request adds its own in adapters. Each id is a path inside a model folder, such as loras/watercolor.safetensors for ~/models/loras/watercolor.safetensors, or the file name of an entry adapter, which sets that adapter's strength for the request:

{"model": "z-image-turbo", "prompt": "a lighthouse at dusk",
 "adapters": [{"id": "loras/watercolor.safetensors", "strength": 0.8}]}

An absolute path gets 400, and so does a file name that two entry adapters share. A request LoRA with text encoder layers also gets 400. List that one in the entry's adapters, where both halves apply. LoHa, LoKr, DoRA and the other kinds that are not plain LoRA pairs are refused by name, as is a LoRA of another model. The server books a request LoRA's memory when its job runs, before it reads the file, and refuses one that does not fit with the memory it needs, as A LoRA is refused for memory describes. ComfyUI takes LoRAs as LoRAs describes. Chat models take the same id forms, as Mixing adapters per request describes.

Adapter schedules

Some LoRAs are trained to sample on a schedule of their own. pDMD-2steps, a MiniMax-H3-Image LoRA that makes an image in 2 steps, samples at the noise levels, or sigmas, 1, 12/13 and 0, at 1024x1024. gmlx knows that file by its sha256, so it runs on that schedule unless you give another, and the command prints a line that names the adapter and what it sets. The file is pytorch_lora_weights.safetensors in the Hugging Face repository linoyts/MiniMax-H3-Image-pDMD-2steps, here renamed:

gmlx image generate minimax-h3-image \
    --prompt "a log cabin in a snowy pine forest at dusk, warm light in its windows, smoke rising from the chimney, photograph" \
    --adapter ~/models/loras/minimax-h3-image-pdmd-2steps.safetensors \
    --output cabin.png
[image] adapter schedule of pDMD-2steps (gmlx's table of known adapters, linoyts/MiniMax-H3-Image-pDMD-2steps): sigmas 1, 0.923077, 0, heads in order, default size 1024x1024

pDMD-2steps was trained on captions from MiniMax's prompt expander, so give it a long, descriptive prompt or turn on the prompt expander: on a short prompt its image can show ghosted shapes and white bars at its edges.

MiniMax-H3-Image has six step heads, one trained for each of its six steps. On a schedule of its own, step 1 reads head 1, step 2 reads head 2 and so on, as diffusers samples it. A schedule names three things, each optional:

Field Meaning
sigmas The noise levels from the first to the last, one step between each two
heads in_order: step i reads head i, as sigmas imply. span: a step reads the heads of the default steps it spans, by its share of each, as ComfyUI does
size The image size, WxH, when the request gives none

Each field comes from the first of these that sets it:

  1. The request: --sigmas, --steps and --size, or sigmas, steps or quality, and size on the server. A step count runs the model's own schedule. The size of an edit's or an init image and the entry's defaults.size count as the request's size.
  2. The adapter's item in the entry's adapters, which takes sigmas, heads and size beside path.
  3. The adapter's sidecar, a file named as the adapter with .gmlx.json added, such as pdmd-v2.safetensors.gmlx.json.
  4. gmlx's table of known adapters, which holds pDMD-2steps.
  5. The model's own schedule and size.

Two adapters that set different values are refused, with a message that names both and the flag that chooses. An adapter at strength 0 sets nothing.

To declare the schedule of a new LoRA, or of a new version of one, run it once with --save-adapter-schedule. The command writes the sidecar from --sigmas and --size, then makes the image, and every later run of that file, on the command line or the server, takes the schedule:

gmlx image generate minimax-h3-image \
    --prompt "a log cabin in a snowy pine forest at dusk, warm light in its windows, smoke rising from the chimney, photograph" \
    --adapter ~/models/loras/pdmd-v2.safetensors \
    --sigmas 1,12/13,0 --size 1024x1024 --save-adapter-schedule

The sidecar holds the file's sha256. A sidecar of another file is refused with its path, as is one that does not read: write it again or delete it. ComfyUI reads no sidecar. Give it the schedule with ManualSigmas and the heads with gmlx PDD Heads, as the minimax-h3-image-pdmd-2steps-t2i workflow does.

Prompt upsampling

Prompt upsampling turns your prompt into a long, detailed caption before the text encoder reads it: a chat model of your choice rewrites it with a system prompt written for that image model, and the image follows the caption. FLUX.3 klein and FLUX.3 klein Base were trained on such captions, not on the short prompts people type, and a prompt sent as typed gives weaker images. On the other families the rewrite is optional, and helps most with short prompts and with text in the image.

Family System prompt
FLUX.3 klein, FLUX.3 klein Base Ships with gmlx, from Black Forest Labs
FLUX.2 klein, all sizes and variants Ships with gmlx, from Black Forest Labs
Krea 2 Ships with gmlx, from Krea
Z-Image, Z-Image-Turbo Ships with gmlx, from the Z-Image-Turbo demo of Tongyi-MAI
MOSS-Image, MOSS-Image Base Ships with gmlx, written by gmlx from the prompt-enhancer skill of OpenMOSS
Qwen-Image 2.1, Qwen-Image 2.1 Turbo Your own file, as Qwen-Image 2.1 describes
MiniMax-H3-Image MiniMax's, as MiniMax-H3-Image describes

OpenMOSS publishes its prompt enhancer as an agent skill, not a system prompt, so gmlx's MOSS-Image prompt follows the skill's rules for a caption and writes prose only. It writes no layout boxes, so run a layout JSON prompt with --no-upsample.

Qwen3.5-9B writes captions close to those of BFL's own FLUX.3 upsampler, and its Q6_K GGUF is a good choice for every family. Any chat model of your configuration can write them. Add it under models, and name it as the upsampler of the image model's entry:

models:
  qwen3.5-9b:
    path: Qwen3.5-9B-Q6_K.gguf
image_models:
  flux-3-klein:
    path: flux3_image_klein_sd-Q4_K_M.gguf
    encoder: Qwen3-VL-4B-Instruct-Q8_0.gguf
    vae: flux2-vae-BF16.gguf
    upsampler: qwen3.5-9b

With an upsampler set, each prompt is rewritten:

  • gmlx image generate flux-3-klein loads the chat model, writes the caption, and unloads the chat model before the image model loads. --upsampler names a chat model, a GGUF or a models id, for one run.
  • gmlx serve writes the caption with the chat model, which loads and unloads as it does for a chat request, and returns the caption as revised_prompt with the image. A request with the same prompt and another seed reuses the caption, except on MiniMax-H3-Image. With the prompt cache on, a new prompt reuses the system prompt's prefill. The first caption also loads the chat model, which pin: true on its models entry keeps loaded.
  • The ComfyUI pack rewrites the prompt of its text encode node, and ComfyUI's log shows the caption.

The chat model writes the same caption for the same prompt. MiniMax-H3-Image's expander samples, so the same prompt and seed rerun its caption on the surface that wrote it: the CLI and the server write different captions for one seed. In ComfyUI the expander writes at a fixed seed, so a graph reruns its caption at any sampler seed. The PNG keeps the caption beside your prompt. A prompt with reference images or an init image runs as typed, except a MiniMax-H3-Image edit, and the negative prompt is never rewritten. In ComfyUI the text encode node does not see the references of an edit, so the server also encodes the prompt as typed, and the pack samples an edit and a negative prompt on that encoding. MiniMax-H3-Image's conditioning node shows the expander the edit's pictures, so that edit samples on the caption.

To run a prompt as typed, pass --no-upsample, send "prompt_upsampling": false in the request, or set upsample: false on the entry, which a request with "prompt_upsampling": true turns back on. Without an upsampler, FLUX.3 klein runs each prompt as typed and prints a warning that names the upsampler setting and Qwen3.5-9B, unless the entry has upsample: false. The other families run it as typed without a warning.

Your own system prompt

upsample_prompt on an entry names a text file whose system prompt the upsampler takes in place of the family's, and --upsample-prompt FILE does the same for one gmlx image generate run. A relative path is found in model_dirs, as a model path is. The server reads the file for each request, so an edit to it takes effect on the next prompt, and captions written with the old file are not reused.

image_models:
  krea-2-turbo:
    path: Krea-2-Turbo-Q6_K.gguf
    encoder: Qwen3-VL-4B-Instruct-Q8_0.gguf
    vae: qwen-image-vae-BF16.gguf
    upsampler: qwen3.5-9b
    upsample_prompt: prompts/krea-2-short.txt

The reply is read without its reasoning, as the family's own system prompt asks for it: the caption as written on FLUX.3 klein and FLUX.2 klein, the last paragraph on Krea 2, rewritten_prompt of a JSON object on Qwen-Image 2.1, or the reply as written when it has no {, and the caption as written, or revised_prompt of a JSON block, on Z-Image. A Qwen-Image reply with a { but no rewritten_prompt in it, such as one cut off at the token limit, is an error. On Z-Image, a {prompt} in your file is replaced by the typed prompt. Your file should ask for the same form.

Qwen-Image 2.1 rewriter prompt

Qwen publishes the system prompt of its text to image rewriter as system_prompt.txt in the Hugging Face repository Qwen/Qwen-Image-2.1-PE-T2I, under the Qwen Research License, which allows non-commercial use only. gmlx does not ship it. gmlx pull qwen-image downloads it next to the model's other files, says its license, and names it as the entry's upsample_prompt, so setting an upsampler is all that is left to do. A file of that name already there that is not Qwen's, such as your own prompt, stays as it is, and the pull says to move or delete it. A new entry then goes without it, and an entry that already names the file keeps naming it, as the warning says. Without the file, a Qwen-Image request with an upsampler set is refused with a message that says where to get it. The rewrite keeps the image size you ask for; the aspect ratio in Qwen's reply is not used.

MiniMax-H3-Image prompt expander

MiniMax's prompt expander, MiniMaxAI/MiniMax-H3-Image-PE, is a chat model of its own, a Qwen3.8-27B fine-tune: set its GGUF as the upsampler. mradermacher/MiniMax-H3-Image-PE-GGUF has GGUF files of it, which gmlx pull minimax-h3-image does not fetch; gmlx pull hf: fetches them, as Prompt expander shows. Its prompts are under the MiniMax-H3-Image Community License, and gmlx ships none of them. gmlx pull minimax-h3-image downloads prompt/manifest.json and the files it lists, and names the manifest as the entry's upsample_prompt.

The expander also sees the reference images of an edit, through the vision tower that mmproj on its models entry names, or --upsampler-mmproj for one run. The expander's own mmproj and Qwen3.8-27B's are the same tower, every tensor equal, so either serves. An edit with prompt upsampling and no tower is refused. It samples as MiniMax's request does, seeded by the image's seed, so the same prompt and seed write the same caption and another seed writes another; in ComfyUI it writes at a fixed seed. It thinks before it answers: the thinking closes after 3072 tokens, and the reply has 2048 more. The caption is expanded_caption of its JSON reply. The image keeps the size you ask for; the aspect ratio in the reply is not used.

ComfyUI

ComfyUI builds image workflows from nodes in a browser. The gmlx node pack runs these image models in it, on the gmlx server.

Models and quants

Name Model Steps Edits Text encoder
z-image-turbo Z-Image-Turbo 8 From one image Qwen3-4B
qwen-image Qwen-Image 2.1 40 From up to 10 reference images Qwen3-VL-8B-Instruct, with its mmproj
qwen-image-turbo Qwen-Image 2.1 Turbo 8 From up to 10 reference images Qwen3-VL-8B-Instruct, with its mmproj
krea-2-turbo Krea 2 Turbo 8 From one image Qwen3-VL-4B-Instruct
moss-image MOSS-Image 50 From one image Qwen3.5-9B
moss-image-base MOSS-Image Base 50 From one image Qwen3.5-9B
flux-2-klein FLUX.2 klein 4B 4, with guidance 1 only From up to 10 reference images Qwen3-4B
flux-2-klein-base FLUX.2 klein Base 4B 50 From up to 10 reference images Qwen3-4B
flux-2-klein-9b FLUX.2 klein 9B, non-commercial 4, with guidance 1 only From up to 10 reference images Qwen3-8B
flux-2-klein-base-9b FLUX.2 klein Base 9B, non-commercial 50 From up to 10 reference images Qwen3-8B
flux-2-klein-9b-kv FLUX.2 klein 9B KV, non-commercial 4, with guidance 1 only From up to 10 reference images Qwen3-8B
flux-3-klein FLUX.3 klein 16, with the euler sampler and guidance 1 only From up to 10 reference images Qwen3-VL-4B-Instruct
flux-3-klein-base FLUX.3 klein Base 50 From up to 10 reference images Qwen3-VL-4B-Instruct
minimax-h3-image MiniMax-H3-Image 6, with guidance 1 only From up to 16 reference images Qwen3-VL-32B-Instruct, with its mmproj

FLUX.3 klein is distilled to sample without guidance, and with euler alone, so a request or a flag that sets another guidance or sampler is refused. FLUX.3 klein Base takes both. FLUX.3 klein reads its reference images without the encoder's vision tower, so it edits with the encoder file alone. FLUX.3 klein and Krea 2 Turbo use the same Qwen3-VL-4B-Instruct file, and pull downloads it once for both.

FLUX.2 klein is distilled to sample without guidance too, so a request or a flag that sets another guidance is refused, and it samples with euler or uni_pc_bh2. FLUX.2 klein Base takes guidance. FLUX.2 klein also edits with the encoder file alone, since its encoder reads the prompt and the VAE encodes the reference images. FLUX.2 klein 4B and Z-Image-Turbo use the same Qwen3-4B file, and FLUX.2 klein at both sizes and FLUX.3 klein decode with the same VAE, so pull downloads each once. The 9B models run the 4B models' steps and edit rules, with Qwen3-8B as the text encoder, and their license allows non-commercial use only, as Licenses says.

FLUX.2 klein 9B KV is a version of FLUX.2 klein 9B made for faster edits. Its reference images attend to each other alone, at time zero, so the first step of an edit computes their keys and values in every block, and the later steps reuse them and run the image and the prompt alone. A 1024x1024 edit from two 1024x1024 references takes about half the time it takes on FLUX.2 klein 9B. Without reference images it runs as FLUX.2 klein 9B does.

MOSS-Image is OpenMOSS's fine-tuned model, and MOSS-Image Base the model it is tuned from. Both run 50 steps at guidance 3, and leave block 22 out of the negative pass, as OpenMOSS runs them. They read the prompt with Qwen3.5-9B and edit from an init image, not from reference images.

MiniMax-H3-Image is the pruned release of MiniMax's image model: the MiniMax-H3 DiT without its audio stream, distilled to 6 steps at guidance 1 with one output head trained for each step. It reads the prompt with Qwen3-VL-32B-Instruct, the text encoder of MiniMax-H3 video, and the pictures of an edit with that encoder's vision tower.

pull takes the DiT at the quant for your Mac's memory, and the text encoder at Q8_0. A Mac takes the column of the largest class its memory holds. --quant and --encoder-quant pick others, and gmlx pull lists every flag.

Model 16 GB 24 GB 32 GB 64 GB or more
z-image-turbo Q4_K_M Q8_0 BF16 BF16
qwen-image Q4_K_M Q8_0 Q8_0 F16
qwen-image-turbo AD-Q4_K Q8_0 BF16 BF16
krea-2-turbo Q3_K_M Q6_K Q8_0 Q8_0
moss-image Q6_K Q8_0 Q8_0 Q8_0
moss-image-base Q6_K Q8_0 Q8_0 Q8_0
flux-2-klein Q4_K_M Q8_0 Q8_0 Q8_0
flux-2-klein-base Q4_K_M Q8_0 Q8_0 Q8_0
flux-2-klein-9b Q4_K_M Q4_K_M Q8_0 Q8_0
flux-2-klein-base-9b Q4_K_M Q4_K_M Q8_0 Q8_0
flux-2-klein-9b-kv Q4_K_M Q4_K_M Q8_0 Q8_0
flux-3-klein Q4_K_M Q8_0 Q8_0 Q8_0
flux-3-klein-base Q4_K_M Q8_0 Q8_0 Q8_0
minimax-h3-image None None UD-Q4_K_XL Q8_0

No Krea 2 quant fits a 1024x1024 image on 16 GB, so a pull of the 16 GB default sets the entry's default size to 512x512, and a pull with another --quant sets none. Of Krea 2, gmlx runs Turbo, and it refuses a Krea 2 Raw GGUF by name.

On 16 GB a MOSS-Image pull takes the encoder at Q4_K_M, since the Q8_0 encoder leaves too little memory for the DiT there.

A MiniMax-H3-Image pull takes the encoder at Q4_K_M, the one quant it pulls. On a Mac with less than 32 GB it downloads nothing and names 32 GB, unless --quant names a DiT. On 32 GB the UD-Q4_K_XL DiT makes 4096x4096 images, and a Q5_K_M DiT makes 2048x2048 but not 4096x4096.

On 16 GB the FLUX.2 klein 9B models make a 1024x1024 image from a prompt. An edit there fits at a smaller size: a 768x768 image from one 768x768 reference, or a 640x640 image from two of that size. image generate and the server refuse a larger edit with the memory it needs. On 24 GB the Q4_K_M DiT makes a 1024x1024 image from up to four 1024x1024 references, and a Q8_0 one from one at most. FLUX.2 klein 9B KV keeps the keys and values of its references, so its edits take more memory. On 16 GB it makes a 640x640 image from one 640x640 reference, or a 512x512 image from two of that size. On 24 GB its Q4_K_M DiT takes up to two 1024x1024 references and its Q8_0 DiT none, and on 32 GB its Q8_0 DiT takes two.

Licenses

Model License Use
Z-Image-Turbo Apache 2.0 Any, under the license's terms
Qwen-Image 2.1 Qwen Research License Research and evaluation only. Commercial use needs a license from Qwen.
Qwen-Image 2.1 Turbo Qwen Research License Research and evaluation only. Commercial use needs a license from Qwen.
Krea 2 Turbo Krea 2 Community License Free commercial use for a company, affiliates counted, under $1M of revenue in the last twelve months. A deployment must filter what it makes.
MOSS-Image, MOSS-Image Base Apache 2.0 Any, under the license's terms
FLUX.2 klein 4B, FLUX.2 klein Base 4B Apache 2.0 Any, under the license's terms
FLUX.2 klein 9B, FLUX.2 klein Base 9B FLUX Non-Commercial License Non-commercial use only, on the terms below
FLUX.2 klein 9B KV FLUX Non-Commercial License Non-commercial use only, on the terms below
FLUX.3 klein, FLUX.3 klein Base FLUX Kommunity License Non-commercial, and commercial use of the images under $5M of yearly revenue, on the terms below
MiniMax-H3-Image, its VAE, its prompt expander and MiniMax's expander prompts MiniMax-H3-Image Community License On the terms below
Qwen3-4B, Qwen3-8B, Qwen3-VL-8B-Instruct, Qwen3-VL-4B-Instruct, Qwen3-VL-32B-Instruct, Qwen3.5-9B Apache 2.0 Any, under the license's terms

Under the FLUX Kommunity License, a user whose yearly revenue, affiliates counted, is under $5M may use FLUX.3 klein images commercially with content filters or a review of each image for unlawful or infringing content before it is shared, and with a disclosure that the image is made with AI where the law requires one. Other commercial use of FLUX.3 klein needs a license from Black Forest Labs.

Under the MiniMax-H3-Image Community License:

  • It grants nothing in the United States, the European Union, the United Kingdom or South Korea without a separate license from MiniMax.
  • Use above $1 million of yearly revenue, affiliates counted, and hosting the model for others need MiniMax's written authorization.
  • A commercial user interface must show MiniMax-H3-Image.
  • A service for others needs safeguards for its users.
  • Images you post publicly must be marked as made by a machine.

The LoRAs published for it, such as pDMD-2steps, name the same license.

Under the FLUX Non-Commercial License, FLUX.2 klein 9B, FLUX.2 klein Base 9B and FLUX.2 klein 9B KV may be used for non-commercial purposes only, as the license defines them, with content filters or a review of each image for unlawful or infringing content before it is shared, and with a disclosure that the image is made with AI where the law requires one. Commercial use of them needs a license from Black Forest Labs.

The system prompts gmlx ships for prompt upsampling are under Apache 2.0, from Black Forest Labs' flux-3-image-klein and flux2 repositories, Krea's krea-2 repository and Tongyi-MAI's Z-Image-Turbo Space. The MOSS-Image caption prompt is gmlx's own, written from the prompt-enhancer skill of OpenMOSS's MOSS-Image repository, which is under Apache 2.0. Qwen's rewriter prompt, which gmlx pull qwen-image downloads, is under the Qwen Research License, for non-commercial use only. MiniMax's expander prompts, which gmlx pull minimax-h3-image downloads, are under the MiniMax-H3-Image Community License.

gmlx has no content filter of its own, so a deployment that a license asks to filter adds its own.

The GGUF files are quantized by unsloth, the Qwen-Image 2.1 Turbo files by AtomicChat, the Krea 2 Turbo files by Abiray, the FLUX.2 klein 9B KV files by QuantStack, the FLUX.3 klein and MOSS-Image files by realrebelai and the MiniMax-H3-Image prompt expander files by mradermacher, under the same licenses. The Krea 2 VAE comes from Comfy-Org's Krea 2 repository, and the MOSS-Image VAE from OpenMOSS-Team's MOSS-Image-SFT repository, under Apache 2.0. The MiniMax-H3-Image VAE comes from Comfy-Org's MiniMax-H3-Image repository, under its model's license. The FLUX.2 VAE, which FLUX.2 klein at both sizes and FLUX.3 klein decode with, comes from Black Forest Labs' FLUX.2 klein 4B repository, under Apache 2.0. The 9B repositories hold the same file.