Skip to content

ComfyUI

ComfyUI is a free program for making images in a browser. A workflow in it is a graph of nodes, boxes that each do one part of the work, such as loading the model, running the steps or saving the image. The gmlx nodes, a node pack that ships with gmlx, run the gmlx image models and the MiniMax-H3 video recipes on the gmlx server, and ComfyUI's own nodes work with them. Like the rest of image generation, it needs a Mac with an M3 chip or newer.

The gmlx model, CLIP and VAE loaders feeding ComfyUI's KSampler in Comfy Desktop, with the image it made

With ComfyUI on your Mac, this command puts the gmlx nodes into it:

gmlx comfyui install

Without ComfyUI, get it first. The ComfyUI reference has the launch options, how the nodes find the server and what they refuse.

Get ComfyUI

ComfyUI is a separate program, and gmlx does not install it. Get it one of two ways.

Comfy Desktop is ComfyUI as a Mac app. Download it from comfy.org/download, open it and create an install. Desktop starts ComfyUI itself, so you start the app, not gmlx launch comfyui.

A ComfyUI folder is a clone of ComfyUI with its environment in a .venv folder, which gmlx launch comfyui starts for you. These commands put it in ~/ComfyUI, where launch looks for it, using uv for Python:

brew install uv
git clone https://github.com/comfyanonymous/ComfyUI ~/ComfyUI
cd ~/ComfyUI
uv venv --python 3.12 .venv
uv pip install -r requirements.txt

ComfyUI's requirements include PyTorch, so the environment takes about 1.7 GB. The gmlx nodes need ComfyUI 0.37 or newer and no Python packages beyond ComfyUI's own. FLUX.3 klein needs ComfyUI 0.41 or newer and MiniMax-H3-Image needs ComfyUI 0.45 or newer, and on an older ComfyUI their model loader stops with a message to update ComfyUI.

Put the gmlx nodes into ComfyUI

gmlx comfyui install finds ComfyUI in these places:

ComfyUI Where its custom_nodes folder is
A clone ~/ComfyUI/custom_nodes
comfy-cli ~/Documents/comfy/ComfyUI/custom_nodes, or in the default or recent workspace that comfy-cli's config names
Comfy Desktop ComfyUI/custom_nodes in each install's folder, which is in ~/ComfyUI-Installs unless you moved it
The old ComfyUI desktop app The custom_nodes folder in its base folder, by default ~/Documents/ComfyUI

With more than one, it lists them and asks for --comfyui-dir. Run it once for each ComfyUI that should have the nodes. A ComfyUI that you add later needs --comfyui-dir too, and install names the command for it:

gmlx comfyui install --comfyui-dir ~/ComfyUI
gmlx comfyui install --comfyui-dir ~/ComfyUI-Installs/Stable

install refuses a ComfyUI older than 0.37 with the steps that update it. The old desktop app keeps a ComfyUI that old, so for it the step is Comfy Desktop. Then install copies the gmlx nodes to ~/.local/share/gmlx/comfyui and links custom_nodes/comfyui-gmlx to that copy, so every ComfyUI shares one copy. A folder of that name that is not gmlx's link, such as a clone of the old ComfyUI-gmlx repository, moves into custom_nodes/.disabled, where ComfyUI skips it. Last, it records the install in ~/.config/gmlx/comfyui.json. Restart ComfyUI if it is running, so it loads the nodes. gmlx comfyui status and gmlx doctor show where the nodes are and whether each ComfyUI's version fits them, and gmlx comfyui lists the flags.

Comfy Desktop

gmlx comfyui install reads Comfy Desktop's list of installs, so it finds an install wherever you put it. After it runs, restart the app, or start it, from the Dock.

gmlx manages the gmlx nodes, and they update when gmlx does. They do not show in Desktop's list of custom nodes or in its snapshots, and restoring a snapshot leaves them in place. ComfyUI-Manager lists them as an unknown pack and cannot update them, which is expected. Comfy Desktop installs has the details of migrated and managed installs.

Make your first image

Download Z-Image-Turbo, then start ComfyUI:

gmlx pull z-image-turbo
gmlx launch comfyui

pull adds the model to your configuration, as Make your first image describes. launch puts the gmlx nodes into ComfyUI, starts the gmlx server when none is running, then starts ComfyUI. Among its lines it prints:

[launch] installed the gmlx nodes in ~/ComfyUI/custom_nodes/comfyui-gmlx (a ComfyUI folder, ComfyUI 0.45.4)
[launch] ComfyUI runs at http://localhost:8188, which you open in a browser, from /Users/you/ComfyUI.

With Comfy Desktop, run gmlx comfyui install in place of launch, then start the app. The loaders start the gmlx server when none is running. Open ComfyUI in the browser, or in the app, then open the example workflow:

  1. Click Templates in the left sidebar.
  2. At the bottom of the list on the left, click Extensions, then comfyui-gmlx. The template search does not find these templates.
  3. Click z-image-turbo-t2i.

Or drag custom_nodes/comfyui-gmlx/example_workflows/z-image-turbo-t2i.json onto the page. Press Run. The first run waits while the server loads the model. If you skipped gmlx pull, the run stops with an error that gives the pull command; run it, then press Run again.

The image shows in the Save Image node, and ComfyUI saves it as gmlx/z-image-turbo_00001_.png in its output folder, counting up with each run. To make another image, change the text of the Positive prompt node and press Run again. Stop ComfyUI with Ctrl+C in the terminal where launch runs. When a command stops with an error, Troubleshooting has the fix.

The nodes you use

The first workflow has these nodes, under the titles they show:

Node What it does
gmlx Model Loader Loads the DiT of the image model picked in model_name. server_url shows the server's address.
gmlx CLIP Loader Loads the model's text encoder, which ComfyUI calls CLIP.
gmlx VAE Loader Loads the model's VAE.
Positive prompt What to make.
Negative prompt What to steer away from. It has no effect at cfg 1.
Empty latent The image's width and height.
KSampler The seed, the steps, the cfg (guidance) and the sampler.
VAE Decode Turns the result into pixels.
Save Image Shows the image and saves it in output, named by filename_prefix.

The model_name list of each loader holds the image and video models in the gmlx server's config. Before you pull one, it holds only the default model's name, and a run with it stops with its pull command. After a pull, press R in ComfyUI to refresh the list. The nodes read the list in the background, so if the model is not there yet, press R again a few seconds later. A new loader's server_url shows the address the nodes found, as How the nodes find the server describes.

For FLUX.3 klein, gmlx CLIP Loader encodes the prompt on the server with the model's GGUF text encoder, so ComfyUI needs no text encoder file of its own. FLUX.3 klein needs ComfyUI 0.41 or newer. Its workflows take the three gmlx loaders with flux-3-klein or flux-3-klein-base in model_name, and ComfyUI's Empty Flux 2 Latent (EmptyFlux2LatentImage) for the image's size. An edit adds its reference images with Set Reference Multi Latent (ReferenceMultiLatent), which encodes each image with the VAE and gives an empty latent of the first one's size, or with a VAE Encode and a Set Reference Latent (ReferenceLatent) for each image. FLUX.3 klein samples at cfg 1 with euler, so its negative can be a Conditioning Zero Out of the positive. FLUX.3 klein Base takes a negative prompt and a higher cfg.

FLUX.2 klein reads its prompt the same way, with the Qwen3-4B GGUF on the server. Its workflows take the three gmlx loaders with flux-2-klein or flux-2-klein-base in model_name, Empty Flux 2 Latent for the image's size, and Flux2Scheduler for the sigmas, which SamplerCustomAdvanced samples on with a CFGGuider and a KSamplerSelect. Flux2Scheduler gives the schedule FLUX.2 klein is made for, which follows the image size, so give it the latent's width and height. The schedulers of KSampler run on another schedule. An edit scales each reference image to one megapixel with Scale Image to Total Pixels (ImageScaleToTotalPixels), encodes it with a VAE Encode, and puts it on the prompt and on the negative with a Set Reference Latent (ReferenceLatent). A Get Image Size of the first scaled image gives Empty Flux 2 Latent and Flux2Scheduler their width and height. FLUX.2 klein samples at cfg 1, so its negative can be a Conditioning Zero Out of the positive. FLUX.2 klein Base takes a negative prompt and a higher cfg. FLUX.2 klein places its reference images by the index method, and an Edit Model Reference Method (FluxKontextMultiReferenceLatentMethod) set to another method is refused with the node's name.

The FLUX.2 klein 9B models take the same nodes and workflows with flux-2-klein-9b or flux-2-klein-base-9b in model_name, and read their prompt with the Qwen3-8B GGUF on the server. On a Mac with 16 GB they make a 1024x1024 image from a prompt, and an edit from 1024x1024 references needs 24 GB or more. Their license allows non-commercial use only.

FLUX.2 klein 9B KV takes the same nodes and workflows with flux-2-klein-9b-kv in model_name. Put ComfyUI's Flux KV Cache (FluxKVCache) between gmlx Model Loader and the guider. The first step of an edit then keeps the keys and values of the reference images on the server, and the later steps reuse them, so they run faster. Without the node, every step runs the reference images again. An edit from 1024x1024 references on FLUX.2 klein 9B KV needs a Mac with 24 GB or more, and its license allows non-commercial use only.

Krea 2 Turbo reads its prompt with the Qwen3-VL-4B-Instruct GGUF on the server. Its workflow, krea-2-turbo-t2i, takes the three gmlx loaders with krea-2-turbo in model_name, EmptySD3LatentImage for the image's size, and BasicScheduler for the sigmas, which SamplerCustomAdvanced samples on with a CFGGuider and a KSamplerSelect. Krea 2 Turbo samples at cfg 1, so its negative can be a Conditioning Zero Out of the positive. No Krea 2 quant fits a 1024x1024 image on a Mac with 16 GB, so set the latent to 512x512 there.

MOSS-Image reads its prompt with the Qwen3.5-9B GGUF on the server, and the gmlx nodes run it on the Mac's GPU without the OpenMOSS ComfyUI plugin or the ComfyUI-MOSS-GGUF bridge. Its workflow, moss-image-t2i, takes the three gmlx loaders with moss-image or moss-image-base in model_name, Empty Flux 2 Latent for the image's size, ModelSamplingSD3 at shift 5, and SkipLayerGuidanceDiTSimple with single_layers set to 22, which leaves block 22 out of the negative pass, as the OpenMOSS workflow does. KSampler samples 50 steps at cfg 3 with euler and sgm_uniform. That is ComfyUI's schedule, not the release's schedule that gmlx image generate and the server run.

MiniMax-H3-Image reads its prompt with the Qwen3-VL-32B-Instruct GGUF on the server, and needs ComfyUI 0.45 or newer and a Mac with 32 GB or more. Its workflows take the three gmlx loaders with minimax-h3-image in model_name and ComfyUI's own MiniMax H3 Image Conditioning (MiniMaxH3ImageConditioning), which takes the prompt and the image's width and height and gives the latent. KSampler samples 6 steps at cfg 1 with euler and simple, and the negative can be a Conditioning Zero Out of the positive. For a larger image, set width and height, such as 4096 each in the minimax-h3-image-t2i-4096 workflow. An edit gives the node up to 16 pictures, each from a Load Image, with the gmlx VAE in its vae input: image_1 is the picture to edit, the prompt names them as Picture 1, Picture 2 and so on, and a width and height of 0 take the size of Picture 1. A LoRA in either set of names applies, as LoRAs says, and the int8 input of gmlx Model Loader runs parts of the DiT in int8 on an M5 or newer, as The model loader's int8 describes.

There are three more gmlx nodes. gmlx Sigmas gives the fixed schedule of a distilled model such as Qwen-Image 2.1 Turbo, for SamplerCustom or SamplerCustomAdvanced, though KSampler works on every model. The schedule of FLUX.2 klein and of Qwen-Image 2.1 follows the image size, so on those gmlx Sigmas takes the image's width and height and stops without them. gmlx PDD Heads sets how a MiniMax-H3-Image model reads its six step heads. With heads_in_order on, step i of the sampler's schedule reads head i, as diffusers samples it, which a LoRA such as pDMD-2steps needs on its own schedule. Off, each step reads the heads of the steps it spans, as stock ComfyUI does. Put it between the model and the sampler, with the schedule from ManualSigmas. A server older than the node stops the run and asks for an update. The minimax-h3-image-pdmd-2steps-t2i workflow loads pDMD-2steps as minimax-h3-image-pdmd-2steps.safetensors in models/loras: the pytorch_lora_weights.safetensors of linoyts/MiniMax-H3-Image-pDMD-2steps, renamed. gmlx Server Status shows whether a model is loaded, the memory it holds and the gmlx version of the nodes. The ComfyUI reference says which stock nodes work with a gmlx model and what runs where.

Make a video

The gmlx nodes run the MiniMax-H3 recipes h3, h3-fast, h3-base and fasth3 with ComfyUI's own MiniMax-H3 nodes and a gmlx prompt node. The gmlx server runs each step and decodes the clip, so you can make 1344x768 clips with sound in ComfyUI. Video needs a Mac with an M3 chip or newer and 32 GB of memory or more, and fasth3 an M5 chip or newer. Download the model:

gmlx video pull h3

Then open the minimax-h3-t2v workflow from the templates, as for the first image, and press Run. It makes a 5 second clip at 1344x768 in 8 steps, and ComfyUI saves it as gmlx/minimax-h3_00001_.mp4 in its output folder. Its nodes, under the titles they show:

Node What it does
gmlx Model Loader Loads the DiT of the recipe picked in model_name, with the recipe's LoRA.
gmlx CLIP Loader Loads the text encoder.
gmlx Video VAE Loader Loads the video VAE, which decodes the frames on the server.
gmlx Audio VAE Loader Loads the audio VAE, which decodes the sound on the server.
Shifts of the h3 recipe ComfyUI's ModelSamplingMiniMaxH3 at the recipe's shifts, 6 for the video and 3 for the sound.
Prompt and clip size gmlx MiniMax-H3 Image to Video, which runs ComfyUI's MiniMax H3 Image to Video: the prompt, and the clip's width, height and length in frames.
Schedule BasicScheduler with the simple scheduler and the recipe's 8 steps.
Noise RandomNoise: the seed of the clip.
Sampler KSamplerSelect with euler.
Guider BasicGuider: the model and the prompt, with no negative prompt.
Sample SamplerCustomAdvanced: samples the clip with the noise, the guider, the sampler and the schedule.
Decode the video, Decode the sound VAE Decode and VAE Decode Audio.
Create Video, Save Video Put the frames and the sound together at 24 frames a second and save the clip.

On an M5 or newer, the int8 input of gmlx Model Loader runs parts of the DiT in int8, as The model loader's int8 describes.

For h3-fast, pick it in model_name on the four loaders and set steps to 4. For h3-base, pick it, set the shifts to 12 and 3 and set steps to 20. A clip too large for the Mac's memory stops with an error from the server before its first step. Clip length, size and memory lists the largest clip each Mac makes.

To start the clip at an image, open the minimax-h3-i2v workflow. Its First frame node, a stock Load Image, feeds first_frame of Prompt and clip size, and an image in last_frame ends the clip at it. The prompt reads both images through the text encoder's vision tower, and the gmlx video VAE encodes them on the server. Add Guide for MiniMax H3 anchors an image, a video or a sound at a frame of the clip, as --guide does on the command line. A guide video runs when the Mac's memory holds its encode beside the models: the nodes send a long one to the server a few seconds at a time, and one that does not fit stops with a video encode ... does not fit in memory. Keyframes and guides describes each, and Clip length, size and memory the memory they take on the command line. Through the nodes, a step is priced beside the caches the server holds, at the share its model's entry books. On a 32 GB Mac at 1344x768, a step with a first frame, a last frame or an image guide runs beside the caches, a step with a 5-frame guide video and its sound runs only while the caches are empty, and a step with both keyframes needs a larger Mac. At 768x768, a step with both keyframes runs beside the caches on a 32 GB Mac.

On an entry with an upsampler, the server rewrites the prompt of Prompt and clip size before it encodes it, as POST /v1/videos does: the upsampler is told the clip's length and whether it has a first or a last frame. ComfyUI's log shows the caption. ComfyUI's own MiniMax H3 Image to Video tells the server neither, so through it a prompt with keyframes is encoded as typed.

A reference of MiniMax H3 Reference to Video, the Fun ControlNet or a noise mask on the latent stops the run with an error that names it, and so do keyframes and guides on fasth3, which runs text to video only.

FastH3

FastH3 makes a clip in 8 steps, each in about half the time of an h3 step, on an M5 chip or newer. Download it, then open the fasth3-t2v workflow from the templates and press Run:

gmlx video pull fasth3

The workflow is the minimax-h3-t2v graph with fasth3 in model_name on the four gmlx loaders and two nodes changed, and ComfyUI saves its clip as gmlx/fasth3_00001_.mp4:

Node What it does
Shifts of the fasth3 recipe ComfyUI's ModelSamplingMiniMaxH3 at the recipe's shifts, 10 for the video and 3 for the sound.
Trained noise levels gmlx Sigmas, in place of BasicScheduler: the 8 noise levels FastH3 was trained at, which no stock scheduler gives.

The clip at 1344x768 for 5 seconds needs a Mac with 36 GB or more. On a 32 GB Mac, set defaults.size to 768x768 in the fasth3 entry and width and height to 768 in Prompt and clip size. Keep the shifts at 10 and 3: on the trained noise levels at other shifts, the run stops with an error that names ModelSamplingMiniMaxH3. With BasicScheduler in place of gmlx Sigmas, FastH3 samples at the shifts in force, 12 and 3 without ModelSamplingMiniMaxH3, as ComfyUI does.

The example workflows

ComfyUI's template browser lists eighteen workflows under comfyui-gmlx. Their files are in custom_nodes/comfyui-gmlx/example_workflows. Each has a note with the commands that install the gmlx nodes and pull its model.

Workflow What it does Needs
z-image-turbo-t2i Z-Image-Turbo text to image at 1024x1024 in 8 steps Nothing beyond the model
z-image-turbo-lora-t2i The same through a stock LoraLoader A Z-Image LoRA named z-image-turbo-style.safetensors in models/loras, or another picked in the node
qwen-image-2.1-edit-two-references A Qwen-Image 2.1 edit from two reference images, through TextEncodeQwenImage21 gmlx pull qwen-image, and reference-1.png and reference-2.png in ComfyUI's input folder
krea-2-turbo-t2i Krea 2 Turbo text to image at 1024x1024 in 8 steps, through BasicScheduler and SamplerCustomAdvanced gmlx pull krea-2-turbo, and on a Mac with 16 GB a 512x512 latent
moss-image-t2i MOSS-Image text to image at 1024x1024 in 50 steps at cfg 3, with block 22 left out of the negative pass through SkipLayerGuidanceDiTSimple gmlx pull moss-image
flux-2-klein-t2i FLUX.2 klein text to image at 1024x1024 in 4 steps, through Flux2Scheduler and SamplerCustomAdvanced gmlx pull flux-2-klein
flux-2-klein-edit-two-references A FLUX.2 klein edit from two reference images, through ReferenceLatent gmlx pull flux-2-klein, and reference-1.png and reference-2.png in ComfyUI's input folder
flux-2-klein-9b-t2i FLUX.2 klein 9B text to image at 1024x1024 in 4 steps, the same graph on the 9B model gmlx pull flux-2-klein-9b
flux-2-klein-9b-kv-edit-two-references A FLUX.2 klein 9B KV edit from two reference images, through ReferenceLatent and Flux KV Cache gmlx pull flux-2-klein-9b-kv, a Mac with 24 GB or more, and reference-1.png and reference-2.png in ComfyUI's input folder
flux-3-klein-t2i FLUX.3 klein text to image at 1024x1024 in 16 steps, through EmptyFlux2LatentImage gmlx pull flux-3-klein, and ComfyUI 0.41 or newer
flux-3-klein-edit-two-references A FLUX.3 klein edit from two reference images, through ReferenceMultiLatent gmlx pull flux-3-klein, ComfyUI 0.41 or newer, and reference-1.png and reference-2.png in ComfyUI's input folder
minimax-h3-t2v A MiniMax-H3 clip with sound from a text prompt, 5 seconds at 1344x768 in 8 steps, through gmlx MiniMax-H3 Image to Video and the gmlx video and audio VAEs gmlx video pull h3, and a Mac with 32 GB or more
minimax-h3-i2v The same clip started at an image, which Load Image gives to first_frame gmlx video pull h3, a Mac with 32 GB or more, and first-frame.png in ComfyUI's input folder
fasth3-t2v A FastH3 clip with sound from a text prompt, 5 seconds at 1344x768 on its 8 trained noise levels, through gmlx Sigmas gmlx video pull fasth3, and a Mac with an M5 chip or newer and 36 GB or more
minimax-h3-image-t2i MiniMax-H3-Image text to image at 2048x2048 in 6 steps, through MiniMax H3 Image Conditioning gmlx pull minimax-h3-image, ComfyUI 0.45 or newer, and a Mac with 32 GB or more
minimax-h3-image-t2i-4096 The same at 4096x4096 gmlx pull minimax-h3-image, ComfyUI 0.45 or newer, and the memory the server prices it at
minimax-h3-image-pdmd-2steps-t2i MiniMax-H3-Image text to image at 1024x1024 in 2 steps through the pDMD-2steps LoRA, on its schedule from ManualSigmas with gmlx PDD Heads gmlx pull minimax-h3-image, ComfyUI 0.45 or newer, a Mac with 32 GB or more, and the pDMD-2steps file named above
minimax-h3-image-edit-two-references A MiniMax-H3-Image edit of one picture with a second as a reference, in 6 steps, through MiniMax H3 Image Conditioning with the gmlx VAE gmlx pull minimax-h3-image, ComfyUI 0.45 or newer, a Mac with 32 GB or more, and reference-1.png and reference-2.png in ComfyUI's input folder

LoRAs

Put a LoRA's .safetensors file in ComfyUI's models/loras folder. A file added while ComfyUI runs shows in the lists after a restart. Use a LoRA says which LoRAs fit a model. To add one to a workflow, double-click an empty part of the canvas, search for Load LoRA (Model and CLIP), which is LoraLoader, and add it. Connect the MODEL and CLIP outputs of the gmlx loaders to its inputs, and its outputs to the nodes that the loaders fed before. The gmlx nodes send each LoRA to the server once, so a change of strength costs one small request. A LoRA runs when the Mac has the memory for it. One that does not fit is refused with the memory it needs, as A LoRA is refused for memory describes. A 503 means the memory is not free yet, and its message says what to wait for or what to free: queue the prompt again when that finishes, or unload a model or close an app as the message says. A LoRA stacks on the LoRA that gmlx Model Loader loads with a recipe that has one, as --adapter does. A LoraLoader of the recipe's own LoRA file sets its strength in place of the recipe's, so that LoRA applies once. LoraLoader works at any strength_model. The text encoder half of a LoRA is not applied in ComfyUI, so set strength_clip to 0. To apply both halves, use the LoRA with gmlx image generate. A MiniMax-H3-Image LoRA works in either set of names: the release's own, such as blocks.0.attn.qkv_proj, or diffusers', such as transformer_blocks.0.attn.to_q. Stock ComfyUI drops the diffusers names on this model; the gmlx nodes apply them.

Upgrades

The gmlx nodes come with gmlx, so an upgrade of gmlx upgrades them. The next gmlx serve, gmlx launch comfyui or gmlx comfyui install replaces the copy, and the server prints a line when it does. A ComfyUI that was running keeps the old nodes until you restart it. A new ComfyUI release can change a part of ComfyUI that the nodes use. Then the nodes show with (not loaded) after their names, and running one gives an error that names the change. Upgrade gmlx as it says, such as with brew upgrade gmlx, then run gmlx comfyui install and restart ComfyUI.

Remove the gmlx nodes

gmlx comfyui uninstall

uninstall removes the comfyui-gmlx link from each ComfyUI, the copy in ~/.local/share/gmlx/comfyui and the record. With --comfyui-dir it removes the nodes from that ComfyUI only, and from the last ComfyUI that has them it also removes the copy and the record. A folder that it moved into custom_nodes/.disabled stays there. If gmlx is already gone, the nodes say so and name the two paths to delete.