Krita AI Diffusion is a free plugin that puts AI image generation inside Krita, the open-source painting app. Instead of typing prompts into a separate tool, you sketch, select and paint on a normal canvas, and the AI fills, refines or upscales right there.
Under the hood it runs on ComfyUI, either installed for you, connected to your own ComfyUI, or through a paid cloud service. It supports SDXL, Flux, Illustrious and other popular model families.
This guide shows how to install Krita AI Diffusion, choose a server, generate and refine images, use inpainting, live mode and control layers, and fix common problems. It follows the plugin’s official GitHub page and docs as of November 2026 (plugin v1.53).
- What: a free, GPL-3.0 Krita plugin for AI image generation, powered by ComfyUI.
- Needs: Krita 5.2 or newer (5.3.2.1 recommended) from krita.org, not the Windows Store, Steam or Flatpak builds.
- Install: Tools > Scripts > Import Python Plugin from File, pick the release ZIP, restart.
- Server: local managed server (auto-install), your own ComfyUI, or the online service.
- GPU: NVIDIA with 6 GB+ VRAM recommended; Apple Silicon, Intel Arc and AMD ROCm also work.
- Cloud: €10 for 5,000 tokens; a 1024×1024 image costs about 5 tokens.
What Krita AI Diffusion Does
- Generate: create a new image at your canvas size from a prompt.
- Refine: improve an existing sketch or painting while keeping its layout.
- Inpaint and fill: change only the part you select.
- Live mode: watch the AI update as you paint.
- Control layers: guide results with scribbles, line art, depth or pose.
- Upscale: enlarge images with optional detail refinement.
It suits artists who want control over composition rather than one-shot prompting. If you prefer a simple prompt box, the Fooocus guide may suit you better.
Requirements
| Item | Requirement |
|---|---|
| Krita | 5.2 or newer (5.3.2.1 recommended) from krita.org or the AppImage |
| Avoid | Windows Store and Steam builds, and the Linux Flatpak |
| GPU (local) | NVIDIA RTX 2060 or better (6 GB+ VRAM), Apple Silicon M1 to M5, Intel Arc 8 GB+, or AMD with ROCm |
| CPU only | Works, but very slow |
| Disk (local) | At least 10 GB, often 50 GB or more with several models |
The 1.x plugin is for Krita 5. A 2.x plugin for Krita 6 is listed as coming soon. Unsure about your GPU? See the best GPU for local AI guide.
Install the Plugin
- Download the release ZIP from the plugin’s GitHub releases page. Don’t use GitHub’s “Source code” ZIP; it won’t work.
- Open Krita and go to Tools > Scripts > Import Python Plugin from File.
- Select the ZIP and confirm.
- Restart Krita.
- Create a new document (for example 1024×1024).
- Enable the docker: Settings > Dockers > AI Image Generation.
- Click Configure in the docker to set up a server.
Choose a Server
| Option | Best for | Notes |
|---|---|---|
| Local Managed Server | Most people with a decent GPU | The plugin installs ComfyUI and models for you |
| Custom Server | Existing ComfyUI users | Connect to your local or remote ComfyUI; needs specific nodes and models |
| Online Service | Laptops and weak GPUs | Cloud GPUs; nothing to install |
Local managed server steps:
- Choose Local Managed Server in the Configure dialog.
- Pick the backend for your hardware (for example CUDA on NVIDIA).
- Select model packages to download, such as an SDXL or Flux set.
- Click Install and wait. This downloads many gigabytes.
- Click Launch once it’s done. The docker connects when the server is running.
Online service pricing: new accounts get some free tokens. After that it’s €10 for 5,000 tokens or €28 for 15,000, and tokens don’t expire. A live preview costs about 1 token and a 1024×1024 image about 5 tokens.
Use Your Own ComfyUI
If you already run ComfyUI, choose Custom Server and enter its address (usually http://127.0.0.1:8188). Your ComfyUI needs these custom nodes:
- comfyui_controlnet_aux (Fannovel16)
- ComfyUI_IPAdapter_plus (cubiq)
- comfyui-inpaint-nodes (Acly)
- comfyui-tooling-nodes (Acly)
You also need at least one checkpoint plus the supporting models listed for each model family in the plugin docs. File names must match what the plugin searches for, and the repo’s download_models.py script places them correctly. The MAT inpaint model goes in models/inpaint.
New to ComfyUI? Start with how to install ComfyUI and our ComfyUI guide.
Generate and Refine Images
- Pick a style (model preset) in the docker.
- Type a prompt, such as “cozy cabin in a snowy forest at dusk, warm window light”.
- Keep Strength at 100% and press Shift+Enter or click Generate to make a new image.
- Browse the results in the history and apply the one you like as a layer.
- To refine, paint or sketch over it, lower Strength (for example 40-60%) and generate again. The AI keeps your layout and improves the detail.
Lower strength keeps more of your canvas. Higher strength gives the AI more freedom.
Inpaint With Selections
- Select an area with any Krita selection tool.
- Describe what should go there, or leave the prompt for a natural fill.
- At 100% strength the plugin fills the selection with new content.
- Below 100% it refines what’s already in the selection.
- Apply the result and keep painting.
This is the fastest way to fix hands, remove objects or extend a background without touching the rest of the image.
Live Mode, Control Layers and Regions
- Live mode: switch to Live and press Play. The preview updates as you paint, using a fixed seed so changes stay predictable.
- Control layers: add a layer as scribble, line art, depth or pose guidance to steer composition.
- Regions: give different layers their own text prompts, so each part of the image gets its own description.
Live mode works best with fast models and a GPU with plenty of VRAM, or the cloud service.
Upscale Your Image
- Switch to the Upscale workspace in the docker.
- Choose the target size.
- Turn on refine if you want extra detail added in tiles.
- Run it and compare with the original.
Supported Models
| Support level | Model families |
|---|---|
| Full | SD 1.5, SDXL, Illustrious/NoobAI, Flux 1 (and Kontext), Flux 2 (Klein), Z-Image |
| Limited | Chroma, SD 3.5, Qwen Image |
| Recent additions | Anima (v1.53), basic Krea 2 support (v1.52) |
Version 1.53 also moved the managed server to CUDA 13 and PyTorch 2.13, added int8/int4 model support, and removed Nunchaku and Face-ID. Cloud images now carry an AI metadata tag. For other free options, see best free AI image generators.
A Simple First Workflow
If you’re new to the plugin, try this short exercise to learn the main controls in about ten minutes.
- Block in shapes: paint rough colour blobs for sky, ground and a main subject on a blank canvas.
- Refine at 50%: describe the scene and generate. The AI turns your blobs into a picture with the same layout.
- Fix one area: select a part you don’t like and regenerate only that region.
- Paint over details: add a few brush strokes, then refine again at a lower strength to blend them in.
- Upscale: finish in the Upscale workspace and export.
Repeating this loop of painting and refining is where the plugin really beats prompt-only tools.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| Plugin greyed out in Krita | Installed from a source ZIP | Reinstall from the release ZIP |
| Changes not showing after update | Krita not restarted | Restart Krita |
| Server won’t start: port in use | Another app on port 8188 | Close it, or change the port |
| HeaderTooLarge error | Corrupt model download | Use Manage > Verify and re-download |
| Windows missing DLL | No Visual C++ runtime | Install the VC++ Redistributable |
| Windows path too long | Deep install folder | Use a shorter path or enable long paths |
| macOS install fails | Missing build tools | Install the Xcode command-line tools |
| Custom ComfyUI rejected | Missing nodes or models | Install the four node packs and required models |
| Disk full | Model caches | Move caches with HF_HOME or UV_CACHE_DIR |
Running out of VRAM? See our CUDA out of memory fix.
FAQ
Is Krita AI Diffusion free?
Yes. The plugin is free and open source (GPL-3.0). Local generation is free; the online service is paid with tokens.
Which Krita version do I need?
Krita 5.2 or newer, ideally 5.3.2.1, downloaded from krita.org or as an AppImage.
Does Krita AI Diffusion need ComfyUI?
It runs on ComfyUI, but the local managed server installs it for you. You can also connect your own ComfyUI or use the cloud.
How much VRAM do I need?
At least 6 GB on NVIDIA is recommended. More VRAM helps with Flux and live mode.
Does it support Flux?
Yes. Flux 1, Flux Kontext and Flux 2 Klein have full support.
Can I use it without a GPU?
Yes, with the online service. CPU generation works locally but is very slow.
Why is the plugin greyed out?
It was probably installed from GitHub’s source ZIP. Download the release ZIP instead.



