All posts

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.

The MintUI web UI: a night-time cabin by a mountain lake in the viewer, the edit prompt and the input image in the panel on the right.
The MintUI web UI after an edit: the original daytime photo is the input image on the right, and the result is in the viewer. Generated with FLUX.2 klein 9B in 26.6 seconds.

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.1 only. 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 menu

The 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:

ProfileModelsDownload
liteFLUX.2 klein 9B~11 GB
standardklein 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 photograph

It 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
A wooden cabin by a misty mountain lake at golden hour.The same cabin and lake at night under a full moon, with lit windows.
Before and after. Left: generated from a text prompt in 12.9 s. Right: the same image edited to night in 26.6 s. The cabin, trees and mountains stay in place.

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 MintUI History section with three cards: a fox-shaped teapot, the cabin at night marked as an edit, and the cabin at golden hour, each with its prompt, model, size and time.
History keeps the prompt and settings of every image. The badge marks edits. Above it, the empty generator suggests starting points.

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 MintUI Examples page: category filters and a grid of example cards, each with an image, a prompt, its model and seed, and Use, Copy prompt and Copy CLI buttons.
The Examples page: search, filter by category, and load any prompt with one click.

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 MintUI desktop app window showing the generator, a grid of suggested starting points and the History list.
The MintUI desktop app on first open: suggested starting points in the viewer and History below.

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-gen generates an image, or edits one with -i.
  • mint-anim chains edits into an animated GIF.
  • mint-bench times 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.

A terminal running mint-gen twice: first generating lighthouse.png in 12 seconds, then editing it into winter.png in 23 seconds.
mint-gen in a terminal. It prints the model, steps, CFG and seed of each image it saves.
A risograph-style print of a lighthouse on a rocky coast at dawn in pink and teal.The same lighthouse print turned into a snowy winter night with the beam lit.
The two images from that session: 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.

ModelLicenceEditsUse it for
FLUX.2 klein 9B (default)FLUX Non-Commercial v2.1yesAlmost everything, editing, GIFs
Z-Image TurboApache 2.0noPhotos, short lettering
Qwen ImageApache 2.0noLong layout instructions; slow
A ceramic teapot shaped like a sleeping fox, studio product photo on a grey background.
A product-photo prompt with FLUX.2 klein 9B at 768×768, made in 12.1 s: “a ceramic teapot shaped like a sleeping fox, studio product photo, soft light, plain warm grey background”.

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.

ModelTaskSizeTime
FLUX.2 klein 9BGenerate, 4 steps768×76811.9 s
FLUX.2 klein 9BGenerate, 4 steps1024×102421.4 s
FLUX.2 klein 9BEdit an image768×76823.7 s
FLUX.2 klein 9BEdit an image1024×102445.1 s
Z-Image TurboGenerate, 8 steps1024×102429.8 s
Qwen ImageGenerate, 20 steps1024×640138.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 an Authorization: Bearer key.
  • 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.

Get MintUI

MintUI is on GitHub

The code is at github.com/havemint/MintUI. Leave your email to hear when a new version comes out.

Only MintUI release news, a few emails a year. Unsubscribe with one click. How we handle your address.

Read more about MintUI