In this article, I will explain how to use Krita AI Diffusion to leverage the powerful image generation capabilities of ComfyUI within Krita's intuitive interface. This allows for more creative expression.
This article is linked to my YouTube video. Please be sure to watch the video along with this article.
・Krita AI Diffusion Environment Setup: June 2025 Latest Version for Endless AI Image Generation
・Krita AI Diffusion Custom Server Mode Configuration for ComfyUI Users
ComfyUI and Krita

ComfyUI is a highly flexible, node-based image generation tool that allows you to build Stable Diffusion workflows exactly as you imagine them.
However, when you want to paint masks or make fine adjustments as if you were actually drawing, you might feel the need for integration with painting software. In such cases, I recommend the plugin called "Krita AI Diffusion."
What is Krita?Krita is an open-source, high-performance painting software developed with the philosophy of making Photoshop-like features available to everyone for free.
It is packed with features like layers, masks, and brushes, making it a very user-friendly and popular tool used by professional artists and illustrators.
Krita AI Diffusion is a plugin that enables image generation using Stable Diffusion within Krita. Since Krita AI Diffusion uses ComfyUI as its image generation engine, it is very familiar to users who already use ComfyUI.
With Krita AI Diffusion, you can achieve intuitive image generation by combining the excellent image generation capabilities of ComfyUI with the drawing capabilities of Krita.
Preparing to Use Krita AI Diffusion
Here, we will set up the environment to use Krita AI Diffusion. We will install the Krita application and add the Krita AI Diffusion plugin. Please note that the setup method is also explained in detail in the videos on my YouTube channel, so please refer to them along with this article.
・Krita AI Diffusion Environment Setup: June 2025 Latest Version for Endless AI Image Generation
・Krita AI Diffusion Custom Server Mode Configuration for ComfyUI Users
Download the installer for Krita from the official website and install it. I recommend specifying a folder created directly under a storage drive with plenty of free space (preferably an SSD rather than an HDD) for the installation location.
Adding the Krita AI Diffusion PluginDownload the latest ZIP file from the GitHub releases page. There is no need to unzip the ZIP file.
Launch Krita, and from the Krita menu, select "Tools" -> "Scripts" -> "Import Python Plugin from File," then select the downloaded ZIP file. Follow the messages to enable the plugin.
Setting Up the ComfyUI Server
Types of ComfyUI Setup for Krita AI DiffusionWhen using ComfyUI with Krita AI Diffusion, there are three types of setup methods. Here, I will explain the Local Standard Server mode and the Custom Server mode in detail.
Local Managed Server mode
・You can set up ComfyUI automatically and easily.If you already have ComfyUI, this will set up a second instance of ComfyUI, but since it is easy to manage, it is recommended if you have enough storage space.
・You should usually choose this.
Custom Server mode
・For those who already use ComfyUI. You can use your existing ComfyUI environment as is.
・To integrate with Krita AI Diffusion, you need to manually set up the necessary custom nodes and models.
Online Service mode
・You can use the plugin via a paid GPU cloud service prepared by the developers.
Choose which mode to use and proceed with the setup.
How to set up in Local Managed Server modeLaunch Krita and open a new file. Check the "AI Image Generation" panel displayed on the right. Click the "Configure" button in the panel to open the server settings screen. In the mode selection screen that appears, select "Local Managed Server".
Specify the folder created when you installed Krita as the "Server Path".
Also, configure the hardware settings according to your PC.
NVIDIA GPU (GTX1060 6GB or higher) → CUDA
AMD GPU (12GB VRAM or higher) → DirectML
Intel Arc (12GB or higher) → XPU
Other / No GPU → CPU
After applying the settings above, press the install button to start the installation. It will take some time as it downloads models and other files, so please wait for it to complete. (It takes about 15 to 40 minutes, depending on the number of models selected and your network conditions.)
Once the installation is complete, the Krita AI Diffusion setup is finished.
Place image generation models in the following folders. In Krita AI Diffusion, the storage location is outside the main ComfyUI folder to make it easier to migrate models. You can use either this location or the standard ComfyUI model storage location.
Also, if you are already using ComfyUI or Stable Diffusion WebUI, you can share models with them. By adding the model storage location of other apps to "extra_model_paths.yaml" located in the "ComfyUI" -> "ComfyUI" folder, it will read models placed in your preferred paths. For example, you can add the path of another ComfyUI to the section below and remove the "#" symbol from each line.
#comfyui: base_path: path/to/comfyui/You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads
#is_default: true checkpoints: models/checkpoints/ clip: models/clip/ clip_vision: models/clip_vision/ configs: models/configs/ controlnet: models/controlnet/ diffusion_models: | models/diffusion_models models/unet embeddings: models/embeddings/ loras: models/loras/ upscale_models: models/upscale_models/ vae: models/vae/
An input example is as follows. (Please configure according to your environment.)
※ In this example, the portable version of ComfyUI is set up directly on the E drive.
comfyui:
base_path: E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI
# You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads
#is_default: true
checkpoints: models/checkpoints/
clip: models/clip/
clip_vision: models/clip_vision/
configs: models/configs/
controlnet: models/controlnet/
diffusion_models: |
models/diffusion_models
models/unet
embeddings: models/embeddings/
loras: models/loras/
upscale_models: models/upscale_models/
vae: models/vae/How to set up in Custom Server mode
When setting up in Custom Server mode, you need to configure the ComfyUI side in advance according to the following dialog.
Please start the setup from wherever you need. Note that if your ComfyUI is outdated, it may not work correctly, so make sure to update ComfyUI to a recent version.
Checking ComfyUI ManagerLaunch ComfyUI and check if there is a "Manager" icon in the top right; if so, ComfyUI Manager is already installed. If not, follow the steps described next to install ComfyUI Manager. If it is already installed, start from the custom node settings.
ComfyUI Manager installation steps1. Open the folder where you installed ComfyUI.
2. Check the "custom_nodes" folder inside.
3. Right-click in this folder while holding the Shift key and select "Open in Terminal" or "Open PowerShell here".
4. Enter the following command to check if Git is available.
git --version
If the version is displayed, you are good to go. If it is not displayed, please install it from the official Git website.
5. If Git is installed, enter the following command in the terminal to install ComfyUI Manager. Once installed, restart ComfyUI.
git clone https://github.com/ltdrdata/ComfyUI-Manager comfyui-manager
6. Install the nodes required for Krita AI Diffusion. While looking at the node list on the official installation instructions page, open the "Custom Nodes Manager" in ComfyUI Manager and install the custom nodes from the list.
7. Download the models used in Krita AI Diffusion and save them in the designated locations under "ComfyUI" -> "models".
- If the downloaded file name is different from the list, rename it to the name in the list before saving it in the designated location.
- For folders not present in models (e.g., "ipadapter", "inpaint"), please create the folders yourself.
- There are quite a lot of them, which is difficult. It can be easier to first set up in "Local Standard Server Mode," and then copy the files from the "models" folder created by the local standard server into the models folder of the ComfyUI you want to use as a custom server.
8. Launch the ComfyUI you intend to use.
9. Launch Krita and open a new file. Check the "AI Image Generation" panel displayed on the right. Click the "Configure" button in the panel to open the server settings screen. In the mode selection screen that appears, select "Custom Server".
10. Press the Connect button.
Once the connection is complete, the setup is finished. A major advantage of setting it up this way is that you can directly access your existing ComfyUI instance from Krita to send image generation requests, allowing you to use your usual models and settings as they are. However, when updating Krita AI Diffusion, you may also need to update the custom nodes, so be careful with node management. If you have enough storage, I recommend setting it up in "Local Standard Server Mode".
Style Settings and Image Generation
With the above, the setup in either "Local Standard Server Mode" or "Custom Server Mode" is complete. Here, as a usage example, I will try generating an image with a model of my choice. This time, I will use the Illustrious-based model "NovaAnimeXL". It can be downloaded from the link below.
Style SettingsIn Krita AI Diffusion, it is common practice to configure style settings for each Checkpoint. In styles, you set common prompts, negative prompts, samplers, step counts, and CFG scales along with the Checkpoint.
Open the style settings screen. First, add a new style. Press the "+" button in the top right.
Give the style an easy-to-understand name. Also, select the model to use in the model (checkpoint) selection field.
Open the checkpoint details and select the model type. Illustrious-based models are not automatically distinguished from SDXL-based ones, so if it is an Illustrious-based model, be sure to select "illustrious". Since ControlNet and LoRA models are different for SDXL-based and Illustrious-based models, this distinction is important.
Enter the positive prompt common to the style in the style prompt.
The same applies to the negative prompt.
If you enter common prompts here, they will always be effective during image generation.
Select a sampler. Since recommended samplers vary depending on the model used, check the model's usage instructions before setting it.
Use step counts and CFG scales that are appropriate for the model and the image you want to generate.
Once everything is entered, press the "OK" button to confirm the style.
画像生成モデル novaAnimeXL_ilV80.safetensors スタイルプロンプト masterpiece, best quality, amazing quality, very aesthetic, high resolution, ultra-detailed, absurdres, newest, scenery, Prompt, BREAK, depth of field, volumetric lighting ネガティブプロンプト modern, recent, old, oldest, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured, long body, lowres, bad anatomy, bad hands, missing fingers, extra digits, fewer digits, cropped, very displeasing, (worst quality, bad quality:1.2), bad anatomy, sketch, jpeg artifacts, signature, watermark, username, signature, simple background, conjoined,bad ai-generated サンプラー:Euler A ステップ数:30回 CFGスケール:5.0
Select the style you configured earlier from the style selection list.
Enter your prompt in the prompt input field.
Once you are ready, press the generate button to create an image.
1girl, blonde hair, making V sign, highly detailed, white shirt and tie
This concludes the explanation. The content introduced here is also explained in detail in the video below, so please refer to it along with this article.
On my YouTube channel, 'Takanome Weekend Programmer Channel,' I have published many videos on how to master Krita AI Diffusion, so please take a look.