MintUI: run a private AI image generator on your own Linux machine
MintUI turns a Linux computer with a GPU into a private image generation server. You install it with one script, and from then on you make and edit images in a web UI, a desktop app or the terminal. Nothing is uploaded: the models, your prompts and your images stay on your machine. This post walks through all of it with screenshots taken from MintUI itself.

Why run image generation locally?
Most AI image generators are cloud services. You type a prompt into someone else's website, the image is made on someone else's GPU, and both are stored on someone else's servers. That is convenient, but it means an account, usage limits, and handing over every prompt you write.
A self-hosted AI image generator does the same work on your own hardware. MintUI is built for that, with three rules:
- Your hardware, your data. The image server and the web UI listen on
127.0.0.1only. Prompts and images never leave the computer. - Pinned and verified. The engine is built at a tested commit, and every model file is pinned to a repository commit and checked by sha256 before it is used.
- No accounts, no telemetry. There is nothing to sign up for. After the install, image generation works offline.
Under the hood MintUI uses stable-diffusion.cpp, a C++ inference engine, and does not include an engine of its own. MintUI adds the installer, the model management, one server for several models, the web UI, the desktop app and the command-line tools.
What you need
- Linux. There are no Windows or macOS builds yet.
- A GPU with Vulkan support, ideally. Without one, MintUI falls back to the CPU, which is much slower.
- Disk space for the models: about 11 GB for the smallest profile, up to about 50 GB for all three models.
To be clear about testing: MintUI v0.5-alpha has been measured on exactly one machine, an AMD Ryzen AI Max+ 395 with Radeon 8060S graphics, 30 GiB RAM and 32 GiB VRAM, on Ubuntu with Vulkan. NVIDIA, Intel, other AMD GPUs and machines with less memory have not been tested yet. Every screenshot and timing in this post comes from that machine.
Update, 4 December 2026: MintUI has since been measured on NVIDIA RTX 4090, 5080, 3080 Ti, 3090, 3080, 3070 and RTX 2000 Ada cards and on CPU-only machines. See the benchmarks.
Install with one script
Start with a dry run. It prints every step the installer would take and changes nothing:
git clone https://github.com/havemint/MintUI.git mintui && cd mintui
./install.sh --dry-run # see what it will do, changes nothing
./install.sh --services # install packages, build, download models, start the services
./install.sh --desktop # optional: MintUI in your applications menuThe installer builds stable-diffusion.cpp at a pinned commit, downloads the models for your profile and checks each file by sha256. It only finishes when a smoke test produces an image on the GPU. With --services it also installs two systemd services that start at boot: the image server on 127.0.0.1:8080 and the web UI on 127.0.0.1:7860. Running it again is safe, because finished steps are verified and skipped.
You choose how much to download with --profile:
| Profile | Models | Download |
|---|---|---|
| lite | FLUX.2 klein 9B | ~11 GB |
| standard | klein 9B + Qwen Image | ~40 GB |
| extra (opt-in) | standard + Z-Image Turbo | ~50 GB |
| apache (opt-in) | Z-Image Turbo + Qwen Image, Apache 2.0 only | ~39 GB |
The default, auto, picks standard when RAM plus dedicated VRAM is at least 48 GiB, and lite otherwise.
Generate in the web UI
Open http://127.0.0.1:7860 and you get the generator: a model picker, a prompt box, sizes, and a Generate button. Prompt helpers sit under the prompt: Templates for common kinds of image, Idea for a random starting point, and Phrases for adding lighting, lenses or styles without typing them out. The More options panel holds steps, CFG and the seed; a fixed seed gives the same image again with the same prompt and model.
The first image of this walk-through is a plain text-to-image prompt with FLUX.2 klein 9B at 1024×640:
a cozy wooden cabin by a mountain lake at golden hour, pine trees, soft mist on the water, landscape photographIt took 12.9 seconds. The same prompt with the same seed always gives the same picture on this setup.
Edit an image by describing the change
FLUX.2 klein 9B can also edit. Click Edit on any image, or drop your own picture into the panel, and write what should change. MintUI suggests edit phrases as you type, such as keep the composition, which tell the model what to leave alone.
same scene at night, moonlight on the water, warm light in the cabin windows, keep the composition

Edits take about twice as long as a new image of the same size, because the model also reads the input. Chain several edits and MintUI can turn them into an animated GIF, from the Animated GIF tab or with mint-anim.
History and 149 worked examples
Everything you make is listed under the generator in History, with its prompt, model, size and time. Each card can be reused, edited, varied with four new seeds, or copied as the equivalent command-line call.

The Examples page is the fastest way to learn what the models are good at. It has 149 prompts in 17 groups, from product photos and portraits to typography, icons, game art and animations. Every example shows the image that prompt made on this setup, and Use loads the prompt, model and settings into the generator.

The desktop app
If you prefer an app to a browser tab, ./install.sh --desktop adds MintUI to your applications menu. It opens the same web UI in its own window (pywebview on WebKitGTK), so everything above works the same. When the web UI service is not running, the window tells you how to start it.

The command line
Everything the web UI does is also available from the terminal, which makes it easy to script. After source cli/mint.sh you have three commands:
mint-gengenerates an image, or edits one with-i.mint-animchains edits into an animated GIF.mint-benchtimes a fixed set of images and saves a shareable JSON with no personal data.
Here is a real session: one new image, then an edit of it. -S fixes the seed so the result can be repeated.



lighthouse.png (12 s) and the edit winter.png (23 s). The print style and composition carry over.The command line and the web UI give the same image for the same prompt, model, size and seed, and every History card has a CLI button that copies the matching mint-gen command. Try something by hand in the browser, then script it.
Which model to use
One server holds all installed models. Each request names its model and the server loads it on demand, so switching needs no restart, and a model stays loaded once used.
| Model | Licence | Edits | Use it for |
|---|---|---|---|
| FLUX.2 klein 9B (default) | FLUX Non-Commercial v2.1 | yes | Almost everything, editing, GIFs |
| Z-Image Turbo | Apache 2.0 | no | Photos, short lettering |
| Qwen Image | Apache 2.0 | no | Long layout instructions; slow |

For text inside images, neither model wins outright. In side-by-side tests klein followed “no other text” more reliably, while Z-Image Turbo spelled a short chalkboard menu correctly more often. Text the prompt does not spell out, such as dates or labels, is usually invented. For real designs, generate the layout without text and add the words afterwards.
How fast is it?
Measured with mint-bench through the server on the test machine, median of two runs, with all three models already loaded. Every run gave a pixel-identical image.
| Model | Task | Size | Time |
|---|---|---|---|
| FLUX.2 klein 9B | Generate, 4 steps | 768×768 | 11.9 s |
| FLUX.2 klein 9B | Generate, 4 steps | 1024×1024 | 21.4 s |
| FLUX.2 klein 9B | Edit an image | 768×768 | 23.7 s |
| FLUX.2 klein 9B | Edit an image | 1024×1024 | 45.1 s |
| Z-Image Turbo | Generate, 8 steps | 1024×1024 | 29.8 s |
| Qwen Image | Generate, 20 steps | 1024×640 | 138.6 s |
The first image after switching to a model also includes loading it: about 18 seconds for Z-Image Turbo and much longer for Qwen Image, which spills into system RAM on this machine. Your times will differ on other hardware; run mint-bench to measure yours.
What MintUI does not do yet
- It runs on Linux only, and has been tested on one machine.
- It does not generate video.
- The web UI has no login, so it is meant for the machine it runs on. To reach the image server from another computer, start it with
--api-key-file; clients then send anAuthorization: Bearerkey. - It is an alpha (v0.6): expect changes between versions.
Licences and responsible use
MintUI's own code is MIT-licensed. No model weights ship with it: the installer downloads each model from its official page to your machine. FLUX.2 klein 9B may only be used non-commercially as a model, but the images it makes may be used for any purpose, including commercial, except to train a competing model. Z-Image Turbo and Qwen Image are Apache 2.0, and --profile apache installs only those. Read each model's licence before you publish, and mark generated images as AI-generated.
Please do not use MintUI to impersonate real people, to make images of real people without their consent, or to imitate trademarks and brands.
MintUI is on GitHub
The code is at github.com/havemint/MintUI. Leave your email to hear when a new version comes out.