Can a 16-megapixel image model run on a small GPU you do not have? We served MiniMax-H3-Image, MiniMax's open text-to-image and editing model, native at about 16 megapixels, on one 48 GB NVIDIA A40 on our cloud, and then pretended the A40 was smaller. Serving means wrapping the model in an HTTP API: prompt in, image out.
The short version: a 4096 x 4096 image took about 45 seconds uncapped. Squeezed into a budget standing in for an 8 GB card, it used at most 7.7 GB of GPU memory, needed 48.9 seconds and returned the same JPEG. The full MiniMax-H3-Image research write-up has every timing, file and command.
Why ComfyUI, and not the official servers
The original weighs about 135 GB. MiniMax's model page points to SGLang and vLLM-Omni recipes, and on one H200 SGLang quotes roughly 10 seconds per 4736 x 3552 image. We went another way. Comfy-Org's repack compresses the weights: the drawing part becomes 12.5 GB, the prompt reader 15.7 GB, plus a 1.2 GB decoder that produces the pixels: 29.4 GB altogether, and it only loads in ComfyUI.
ComfyUI is a desktop app, fine when you sit in front of it. Other programs need an API, so our backend runs it without a window on localhost and posts each request to its HTTP API as the graph from Comfy-Org's template.
One honest gap: the 135 GB original never ran on our side, so any quality loss from compression is unmeasured. Comfy-Org also calls the drawing file "pruned" without documenting what got cut.
Emulating a smaller card, and what to measure
The cap is one environment variable:
# 7.2 GiB stands for an 8 GB card on the 48 GB A40
H3_VRAM_LIMIT_GIB=7.2 IK_KEEP_ALIVE=1 python main.py
The backend turns that number into a hard PyTorch limit with torch.cuda.set_per_process_memory_fraction, and tells ComfyUI to leave the rest of the card alone with --reserve-vram. ComfyUI's dynamic memory management does the rest: the full model sits in system RAM and each slice moves onto the GPU just before use.
Three measurements keep you honest:
| Cap set for a card of | Peak GPU memory | 4096 x 4096 |
|---|---|---|
| None (48 GB) | 30.9 GB | 44.6 to 44.7 s |
| 24 GB | 24.1 GB | 46.8 s |
| 8 GB | 7.7 GB | 48.9 s |
-
Peak from outside the process. We sampled
nvidia-smiat 2 Hz during each request. Readings ran 300 to 500 MiB over the PyTorch limit: the CUDA context (the driver's own bookkeeping) and non-PyTorch memory sit outside it. - Output equality, not "looks fine". Every capped run gave a mean absolute difference of 0.0 on the returned JPEGs.
- System RAM. ComfyUI pinned 31 GB of our 48 GB. The cap moves the pressure to the host, and smaller hosts are untested.
Emulation does not cover slower silicon or storage, so a real small card will be slower. We could not rent one that day, and each cap ran once. We used the same method in our MOSS-Image test under a 12 GB cap.
The trap: a 16 MP PNG does not fit in the result message
A lossless 16-megapixel image is 20 to 30 MB. Results travel back as base64 text (binary spelled out as plain characters) in a queue message. That queue caps a message at 8 MiB, and the message ends up a bit over twice the base64 size. The worker logged max payload size exceeded, the result was dropped, and the caller waited 300 seconds for a 504 inference_timeout.
The backend workaround: JPEG, with quality stepped down until the base64 stays under 3.4 MB. That meant quality 95 for 4 megapixels, 85 for 4096 x 4096 (1.9 to 2.7 MB) and 70 for 5472 x 3072. The platform fix is still open, and the exact log line sits in the remaining problems list of the H3-Image research post. Check your largest output against every hop's size limit first.
Two smaller traps. Image models build a picture in repeated denoising steps, and guidance sets how hard each step follows the prompt. This model was distilled (retrained to need fewer steps) down to 6 steps with guidance 1, and any other value gets a 400. Size also changes the composition. The seed (the random starting point) was 42 in both runs, yet the fox stood at 2048 and leapt at 4096.
Read the license before the code
The weights are free, but the MiniMax-H3-Image Community License is narrow. Teams in the EU, the UK, the US or Korea are outside its territory and have to contact MiniMax. Everywhere else, MiniMax's prior written authorization is required to serve the model to anyone outside your company (an API counts), or once annualized revenue passes 1 million USD. Compressed derivatives such as the ComfyUI repack fall under the same terms. Ours was a short private evaluation inside an EU company, with no license requested.
Credit
MiniMax released the model, Comfy-Org built the repack, nodes and templates we drove, and the Qwen team built Qwen3-VL, the base of its text encoder. Abiray published GGUF conversions (not tested here), the SGLang and vLLM-Omni teams wrote the official recipes, and AI Search's tutorial video is where we first spotted the model. We wrote the backend that exposes ComfyUI as an API, ran the measurements and published an SDK example on GitHub.
Per-stage timings, edit results, license clauses and setup steps are in the MiniMax-H3-Image deployment notes on inferencekey.com.

Top comments (0)