A web-based creative engine for generating and editing images with Stable Diffusion and other AI models, featuring a unified canvas and node-based workflows.
Acly/krita-ai-diffusion
A Krita plugin that brings generative AI image creation, inpainting and outpainting into your painting workflow, backed by a local or cloud ComfyUI server.
Open-source alternative to:Adobe Photoshop Generative Fill
- Stars
- 10,745
- Forks
- 646
- Open issues
- 124
- Last commit
- 17 days ago
What is it?
This is a Krita plugin for generating and editing images with AI directly inside the painting application. It focuses on inpainting and outpainting: you select an area on the canvas and generate content for it, with an optional text prompt, without having to tune generation parameters.
The plugin supports a range of diffusion models, including Flux, Stable Diffusion 1.5, SDXL and Illustrious, along with ControlNet inputs such as scribbles, line art, depth and pose, and IP-Adapter for reference images and style transfer. Regions can be assigned individual prompts through layers, and a live painting mode updates results as you draw.
Generation runs on a ComfyUI backend that the plugin can install automatically or connect to as an existing local or remote server. It runs on Windows, Linux and macOS, with NVIDIA, AMD, Intel and Apple Silicon GPU support, and cloud generation is available as an alternative.
Key features
- 01Inpainting and outpainting within Krita selections and canvas areas
- 02Live painting mode that previews AI output as you draw
- 03ControlNet inputs including scribble, line art, depth and pose
- 04IP-Adapter for reference images, style transfer and face swap
- 05Region-based prompts assigned to layers
- 06Custom presets with checkpoints, LoRA and samplers
Use cases
- Extending the edges of a painting or photo with outpainting
- Removing or adding objects in an existing image with inpainting
- Sketching a composition and refining it with control layers
- Running generation locally on a personal GPU without a cloud subscription
Quick start
- 1
Install Krita version 5.2.0 or newer
- 2
Download the plugin ZIP from the releases page
- 3
In Krita, use Tools > Scripts > Import Python Plugin from File and select the ZIP
- 4
Restart Krita, then click Configure in the AI Image Generation docker to install or connect a local server
Things to know
- A powerful GPU with at least 6 GB VRAM (NVIDIA) is recommended for local generation; CPU use is very slow.
- Requires a ComfyUI backend, either auto-installed by the plugin or set up manually.
Topics
FAQ
- What is krita-ai-diffusion?
- A Krita plugin that brings generative AI image creation, inpainting and outpainting into your painting workflow, backed by a local or cloud ComfyUI server. This is a Krita plugin for generating and editing images with AI directly inside the painting application. It focuses on inpainting and outpainting: you select an area on the canvas and generate content for it, with an optional text prompt, without having to tune generation parameters.
- Is krita-ai-diffusion free to use? What license does it have?
- krita-ai-diffusion is open source under the GPL-3.0 license. Check the license terms before using it in commercial products.
- Is krita-ai-diffusion still maintained?
- Actively maintained. The last commit to krita-ai-diffusion was on Oct 3, 2026.
- What can I use krita-ai-diffusion for?
- Extending the edges of a painting or photo with outpainting Removing or adding objects in an existing image with inpainting Sketching a composition and refining it with control layers Running generation locally on a personal GPU without a cloud subscription
- How do I install krita-ai-diffusion?
- Install Krita version 5.2.0 or newer Download the plugin ZIP from the releases page In Krita, use Tools > Scripts > Import Python Plugin from File and select the ZIP Restart Krita, then click Configure in the AI Image Generation docker to install or connect a local server
- Where can I get krita-ai-diffusion?
- The source code and installation instructions are on GitHub: https://github.com/Acly/krita-ai-diffusion
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A Gradio-based web UI for running Stable Diffusion and newer image/video models, continuing the Forge fork with added model support and optimizations.
Offline, open-source image generator built on Stable Diffusion XL that lets you focus on prompts instead of manual parameter tuning.
A modular web UI for AI image, video and audio generation, built on Stable Diffusion, Flux, Wan and other models, with a ComfyUI workflow tab.
A node-graph GUI, API and backend for running diffusion models locally to generate images, video, audio and 3D content.
Training, generation and utility scripts for Stable Diffusion and other image generation models, covering LoRA and fine-tuning.