# Repository Briefing: Acly/krita-ai-diffusion
> Source: https://repoforai.com/repo/Acly/krita-ai-diffusion (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Acly/krita-ai-diffusion
- **Official Docs / Website**: https://www.interstice.cloud
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: GPL-3.0
- **Engineering Health**: A (81/100 · Maintenance 35/35 · Adoption 18/25 · Releases 17/20 · License 11/20)
- **Latest Release**: v1.53.0 (2026-08-22) — https://github.com/Acly/krita-ai-diffusion/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Local AI, GPU
- **Momentum**: 10,988 ★ total (+2 24h / +29 7d) · 672 forks
- **Topics**: `generative-ai`, `krita-plugin`, `stable-diffusion`
- **When to Use**: Best for: Krita artists and studios that want selection-based retouching, outpainting, or guided generation without leaving the canvas, with the option to own the inference setup. Skip if: The node graph is your primary workspace, you need a standalone generation service, or you need responsive live painting on CPU-only hardware and cannot use a remote backend.

## Overview
```text
### Architecture & Core Mechanics
Krita AI Diffusion is a Python plugin, not a standalone inference application. Its AI Image Generation docker is a dockable Krita panel, not a container. The plugin turns canvas context, selections, layer-defined regions, prompts, and visual guides into generation requests for ComfyUI. Artists queue jobs, cancel them, and preview previous results without leaving the editor. ComfyUI handles inference and can run as a plugin-managed local server or as a separately configured local or remote service.

The tree contains the Krita plugin descriptor `ai_diffusion.desktop` and the `ai_diffusion/` source directory. `pyproject.toml` declares Python >=3.10 for the project, but the installed plugin runs in Krita's embedded Python. The requirements file describes the Krita 5-era runtime as standard library plus Qt5 and lists tools such as `ruff`, `pyright`, and `pytest` for development and testing; those entries are not workstation runtime prerequisites. The Krita 6 prerelease moves the host integration to Qt6.

### Key Capabilities & Differentiators
The core workflow is editing an existing image rather than relying on a prompt for the entire frame. Selections constrain inpainting and object replacement; outpainting extends the canvas; adjustable refinement strength controls how much existing content changes. Layer-defined regions can carry separate prompts. ControlNet supports guides including scribble, line art, Canny edges, pose, depth, normals, and segmentation, while IP-Adapter adds reference-based style and composition guidance.

The supported model list includes Flux 2, Z-Image, Stable Diffusion 1.5, XL, and Illustrious, as well as edit models driven by text instructions. Style presets expose checkpoints, LoRAs, and samplers without making every painting session a configuration exercise. Live painting gives feedback as the canvas changes, while queued jobs and history support less interactive iteration. The upscaling workflow targets 4K, 8K, and beyond; treat those as output sizes, not a memory guarantee for every model and GPU.

### Trade-offs & Limitations
Compared with working in ComfyUI directly, the plugin trades direct access to the node graph for controls that map to painting tasks: selections, layers, presets, and guides. This is a good exchange when the image is the work in progress. Use ComfyUI directly when the workflow graph itself is the artifact you need to inspect or redesign. A custom server preserves the option to manage the backend separately, but you must keep the required extensions and models compatible.

Local execution avoids sending canvas inputs to a remote inference service, but shifts model storage, GPU sizing, and maintenance to the operator. CPU support is a slow fallback, not a practical substitute for a GPU when using live painting. Remote or cloud execution reduces workstation compute requirements but adds network dependence and makes it important to decide where canvas content may be sent. GPL-3.0 applies to the plugin; check the terms of individual model weights and other assets before adopting them in a commercial pipeline.

### Hardware & Deployment Guide
Install the release ZIP from Krita's Tools → Scripts → Import Python Plugin from File, restart, open a document, and enable Settings → Dockers → AI Image Generation. Use Configure to install the managed local server or connect to ComfyUI. An existing local or remote server needs compatible extensions and models for the chosen workflows. Cloud generation is a separate option when you do not want to provision local inference hardware.

The local recommendation is an NVIDIA GPU with at least 6 GB of VRAM. CUDA, ROCm, and XPU are listed for Windows/Linux, and MPS is supported on macOS 14+ with Apple Silicon. Match the plugin ZIP to the host: v1.53.0 recommends Krita 5.3.2.1 and adds Anima segmentation control. v1.54.0-pre recommends Krita 6.0.4, moves to Qt6, and does not run on Krita 5. That prerelease has had limited testing and is known to perform poorly on macOS, so evaluate that combination before committing production work to it.
```

## Key Capabilities
```text
- Execution split: Krita handles canvas interaction; ComfyUI runs generation on a managed local, existing local, or remote server.
- Spatial control: Selections bound edits, layer-defined regions carry separate prompts, and ControlNet accepts inputs such as line art, pose, depth, and segmentation.
- Model coverage: Flux 2, Z-Image, Stable Diffusion 1.5, XL, and Illustrious are listed alongside instruction-based edit models and custom checkpoint and LoRA presets.
- Iteration: Live painting feeds back on canvas changes, while the queue supports cancellation and history preserves access to results and prompts.
- Hardware paths: CUDA, ROCm, and XPU on Windows/Linux; MPS on macOS 14+ with Apple Silicon; slow CPU fallback.
- Host compatibility: v1.53.0 targets Krita 5; v1.54.0-pre moves to Krita 6/Qt6 and drops Krita 5 compatibility.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/Acly/krita-ai-diffusion.git
cd krita-ai-diffusion
```
