Skip to content

AI art creation with ComfyUI and Krita

Create stunning AI-powered artwork by connecting ComfyUI's advanced AI capabilities with Krita's professional digital art tools. This guide shows you how to set up your complete AI art workflow with Olares.

Understanding the components

Your AI art studio consists of three key pieces working together:

  • ComfyUI: The AI engine running in your Olares environment that powers image generation.
  • Krita: Professional-grade digital art software where you'll create and edit your artwork.
  • Krita AI Diffusion Plugin: The connector that enables seamless communication between Krita and ComfyUI.

What you'll need

Before starting, ensure you have:

  • A working Olares installation with internet access
  • A computer connected to the same local network as Olares
  • Sufficient system resources (recommended: 16GB RAM for optimal performance)

Set up ComfyUI

  1. Install ComfyUI from Market based on your role:

    • For admin: Install both "ComfyUI For Cluster" and "ComfyUI".
    • For team members: Ensure your admin has installed "ComfyUI For Cluster", and install "ComfyUI" only.
  2. Configure ComfyUI.

    a. Open Settings, navigate to Applications > ComfyUI > Entrances.

    b. Set the Authentication level to Internal. ComfyUI authentication level

  3. Launch ComfyUI from your desktop, and verify the installation by generating a sample image.

  4. Copy the address of ComfyUI for next steps.

TIP

For security, you should always run AI applications within your local network. When properly configured, your ComfyUI URL should contain .local.

If .local is missing, check your local network environment and make sure no external network proxy service is enabled.

Set up Krita

  1. Download Krita.
  2. Download the Krita AI Diffusion plugin.
  3. Launch Krita, and navigate to Tools > Scripts > Import Python Plugin from File, and select the downloaded ZIP package. Import AI plugin
  4. Confirm the plugin activation and restart Krita.
  5. Open Krita, and verify the installation in Settings > Configure Krita > Python Plugin Manager. Verify AI plugin

Connect Krita to ComfyUI

Establish a secure connection between Krita and ComfyUI:

  1. Create a new document in Krita.

    TIP

    Start with a 512 x 512 pixel canvas to optimize performance and manage graphics memory efficiently.

  2. Click Settings > Dockers > AI Image Generation to enable the plugin. You could position the panel to where it's convenient. Enable AI plugin

  3. Click Configure to access the plugin settings. Configure AI plugin

  4. Set up ComfyUI connection.

    a. In Connection, select Custom Server, and paste your ComfyUI URL.

    b. Click Connect to verify the connection. A green "Connected" indicator confirms successful connection. Connect ComfyUI

    INFO

    If connection fails:

    • Verify network connectivity between your computer and Olares.
    • Confirm ComfyUI's authentication level is set to "Internal".
    • Check for and disable any interfering proxy services.
    • Ensure ComfyUI is running correctly on your Olares.
  5. Adjust ComfyUI settings.

    a. In Styles, configure your preferred style templates and select appropriate model checkpoints.

    b. Keep default values for other settings unless you need specific optimizations.

Create AI art with text prompts

Now comes the exciting part - creating AI-generated artwork using natural language prompts.

  1. Enter your prompts in the text box, and click Generate.
  2. Browse through the generated image variations.
  3. Select a preferred result, and click Apply to save it to the canvas. Generate AI art

TIP

If the results aren't quite what you want, you could:

  • Create additional variations with new generations.
  • Fine-tune the generation parameters.
  • Refine your text prompt for more precise results.
  • Experiment with different style settings.