How to Run Image Diffusion Models Locally with Unsloth
Generate and edit AI images on your own computer using diffusion models without writing code or setting up a complex workflow. With Unsloth, you can run models like MiniMax-H3, Z-Image and FLUX locally with support for GGUFs, FP8, LoRAs, reference images, and more. Start with a text prompt or an existing image, then create, transform, edit, extend, upscale, or fine-tune images using the tools and workflows supported by each model.
Choose from MiniMax-H3, Z-Image, LTX, Qwen-Image, FLUX, SDXL and more.
To create your own LoRA, fine-tune a supported model on your dataset. See Fine-tune an image model to learn more.

⚡ Quickstart
Install or update
The desktop app is the easiest way to get started.
Follow the installer, then open the app from your applications. If you already have it installed, make sure it is up to date before continuing.
Command line
Prefer the terminal? Run the command for your operating system. The same command will update an existing installation.
MacOS, Linux, WSL:
Windows PowerShell:
Launch Unsloth
Once the installation finishes, launch Unsloth:
Open http://localhost:8888 if it does not open automatically.
Enter a prompt
Describe the image you want to generate.
For example:
Top-down shot of a tranquil koi pond in a Japanese garden, orange, white and black koi swimming beneath the clear water, surrounded by moss-covered stepping stones and small wooden bridges, with red maple leaves floating on the surface. Bright midday light, saturated colour, crisp reflections. Whimsical cartoon illustration, 50mm.
You can keep the recommended settings for your first image.
⭐ Features
The available workflows depend on the model you load. Unsupported workflows are hidden automatically.
Create and edit images
Create: Generate an image from a text prompt.
Transform: Use an existing image as the starting point for a new generation.
Inpaint: Select and regenerate part of an image.
Extend: Generate content beyond the original canvas.
Upscale: Increase the resolution of an image.
Reference: Guide a generation with one or more reference images.
Edit: Describe the changes you want to make to an image.
Edit requires a compatible model such as Qwen-Image-Edit or FLUX.1 Kontext.
LoRAs and ControlNet
Load compatible LoRAs to add a character, subject or visual style to your generations. Adjust the LoRA weight to control how strongly it affects the result.
Supported models can also use ControlNet to guide the structure of an image. Adjust its strength to control how closely the result follows the guidance image.
Gallery
Generated images are saved to the local gallery. Open a result to view its prompt and settings, select Recipe to restore its generation setup or download the image.
Supported models and workflows
Generate or transform images
Z-Image, Qwen-Image, FLUX.1, SDXL
Edit using instructions
Qwen-Image-Edit, FLUX.1 Kontext
Use reference images
FLUX.2 klein
More models are available in the model picker. Formats and workflows vary by model, and unsupported workflows are hidden automatically.
Generation settings
The default settings are a good starting point. However, it is possible to adjust settings to get the best result, these are the main parameters you may want to change:
Prompt
Describes the image you want to create. In Edit, this becomes the instruction to follow.
Aspect ratio and resolution
Set the shape and size of the image. Larger images use more memory and take longer.
Steps
Control how long the model spends generating. More steps do not always improve the result.
Guidance
Controls how strongly the prompt guides the result. Some models work best at 0.
Seed
Helps recreate a result. Leave it empty to use a random seed.
⚠️ Troubleshooting
❓ FAQ
Last updated
Was this helpful?




