| [ Web Proxy ] |
| Viewing: https://unsloth.ai/docs/basics/diffusion-image | [Back] [Original] |
I'm here to help you with the docs.
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, Qwen-Image-2.1, 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, Qwen-Image-2.1, Z-Image, LTX, 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.
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:
Once the installation finishes, launch Unsloth:
Open http://localhost:8888 if it does not open automatically.
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.
The available workflows depend on the model you load. Unsupported workflows are hidden automatically.
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.
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.
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.
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.
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.
These controls change how the model runs on your device. Adjust them to reduce memory usage, improve performance or troubleshoot generation.
Speed
Controls compilation and performance optimizations. Compiled modes may take longer during the first generation.
Precision
Changes the numerical format used to run the model. Lower precision can reduce memory usage. Available options depend on the model and hardware.
Attention
Selects the attention implementation used during generation.
Memory
Balances generation speed against GPU memory usage. Try Low VRAM if a model is close to your memory limit.
Step cache
Reuses some calculations between diffusion steps to improve generation speed.
CPU offload
Moves parts of the model into system memory. This reduces GPU memory usage but may make generation slower.
Update to the latest version, then restart the app. See Updating Unsloth for instructions.
Some image models are large and take time to download. Check that you have enough free storage and a stable internet connection.
Some models also require you to accept their licence on Hugging Face and add a Hugging Face token before downloading them.
Try a smaller GGUF quantization or a 4-bit version of the model. For GGUF models, start with the size marked recommended.
You can also:
Lower the image resolution.
Keep the batch size at 1.
Close other applications using the GPU.
Choose a smaller model.
A TIGHT model may use system memory and run more slowly. A model marked OOM is unlikely to fit.
The available workflows depend on the loaded model. Unsupported workflows will not appear.
For example, instruction-based editing requires a model such as Qwen-Image-Edit or FLUX.1 Kontext.
Yes. Once a model is downloaded, image generation runs on your device.
Transform redraws an existing image using a prompt that describes the complete result.
Edit follows instructions such as changing a background or adding an object. It requires a compatible editing model.
Yes. Fine-tune a supported model on your own images, then load the finished LoRA in Create.
See Fine-tune an image model to learn more.
Last updated 1 month ago
Was this helpful?
Unsloth, 2026
Was this helpful?
curl -fsSL https://unsloth.ai/install.sh | shirm https://unsloth.ai/install.ps1 | iexunsloth studio -H 0.0.0.0 -p 8888| Web Proxy Viewer | New URL | Original Page |