DiffHub Logo
HomeGlossaryGuidesClassesComparison
DiffHub Logo
DiffHub Logo

Master ComfyUI and diffusion models with comprehensive education and community support.

Resources

  • Glossary
  • Classes
  • Creator Plan
  • Service Comparison
  • Contact
  • About

Stay Updated

Get the latest tutorials, tips, and news delivered to your inbox.

No spam, unsubscribe at any time.

This site contains affiliate links. We may earn a commission from purchases made through these links at no additional cost to you.

© 2026 DiffHub. All rights reserved.
Privacy PolicyTerms of ServiceImprintSupport
Guides
Krea 2 in ComfyUI: Reference Images, Inpainting & 4K Upscaling
Back to Guides
Intermediate
Intermediate

Krea 2 in ComfyUI: Reference Images, Inpainting & 4K Upscaling

Build Krea 2 workflows in ComfyUI for reference-guided generation, image-to-image editing, inpainting, multi-pass refinement, and 4K upscaling.

18 min
4 views
ComfyUI
Upscaling
Krea 2
LoRA
AI Image Generation
Reference Images
Inpainting
Image-to-Image

Krea 2 in ComfyUI: Reference Images, Inpainting & 4K Upscaling

Krea 2 is now available with ComfyUI support, offering a range of models from the compact 8GB NVFP4 version up to BF16 for high-end GPUs. This guide walks you through setting up Krea 2 workflows, including reference image encoding, image-to-image generation, upscaling options, multi-image composition, and inpainting. You'll learn how to leverage conditioning rebalancing for improved prompt adherence and explore the model's capabilities with various styles and resolutions.

Special Offer - $5 Credit Included!

When you sign up for RunPod using our affiliate link, you'll receive a $5 credit that can be used to generate up to 9,000 images and 300 videos. This gives you plenty of resources to explore ComfyUI and AI image/video generation without any upfront cost!

What You'll Learn

    • How to load Krea 2 models and select the right variant for your GPU
    • Setting up the sampling workflow with optimal steps and CFG values
    • Using conditioning rebalancing to improve prompt adherence
    • Encoding reference images for style transfer and composition
    • Performing image-to-image generation with denoise control
    • Upscaling options including 2x VAE and Ultimate SD Upscale
    • Combining multiple reference images for complex compositions
    • Changing aspect ratios and performing inpainting with SAM 3

Prerequisites

Based on the tutorial, you'll need:

  • ComfyUI installed with access to custom nodes (RG3 Power LoRA Loader, KJ Nodes, RG3 Fast Group Mute/Bypass)
  • A GPU with sufficient VRAM - the NVFP4 model requires only 8GB download and works well on lower VRAM systems
  • The Krea 2 model files (NVFP4, FP4, FP8, or BF16 variants) and corresponding CLIP models
  • Optional: SAM 3 segmentation for automatic mask creation
  • Optional: Ultimate SD Upscale node for detailed upscaling

Step-by-Step Process

Step 1: Load the Model and CLIP

1
Load Krea 2 Model and CLIP

Start by loading the Krea 2 diffusion model in the checkpoint loader node. The tutorial begins with the NVFP4 model, which is only an 8GB download and works well for most users. For the CLIP model, the BF16 version is recommended for ComfyUI, but if you have lower system RAM, the FP8 option is a great alternative.

The model variants available include:

  • NVFP4 (8GB) - smallest and fastest, recommended for low VRAM
  • FP4 - good balance of quality and performance
  • FP8 - for systems with lower RAM
  • BF16 - highest quality, requires more VRAM

For loading LoRAs, use the RG3 Power LoRA Loader node which allows you to stack multiple LoRAs in one node.

Step 2: Configure Sampling Settings

2
Configure K Sampler and Noise Scheduling

The K sampler works with standard sampler/scheduler combinations. A great starting point is 8 steps at CFG 1. The model sampling node can help fix noisy artifacts and improve composition by adjusting the noise scheduling setting, which can transform generations for cleaner, sharper images.

For image-to-image work, adjust the denoise value based on how much you want to change the image. A denoise under 0.5 is usually the sweet spot for keeping at least some of the original image, though this depends on the sampler and scheduler used.

Step 3: Set Up Conditioning Rebalancing

3
Add Conditioning Rebalancing Node

Conditioning rebalancing is a new feature described as "a conditioning optimizer with per-layer weighting that offers IP adapter-like features for ComfyUI, along with bypassing the built-in quality dilution from the trained safety filter."

In practice, it can improve prompt adherence but may reduce the model's ability to generate clear text. Set the mult value to around 0.5 for best results with most prompts. You can increase or decrease this value as needed.

The tutorial demonstrates that enabling conditioning rebalancing with a mult of 0.5 helped shrink an oversized portal in the generated image and improved adherence to the fantasy art style rather than photorealism.

Step 4: Load and Encode Reference Images

4
Load Reference Images for Conditioning

You can load images and encode them along with your prompt using the text encode when image edit plus node. This acts as a reference image feature, even though Krea 2 isn't specifically an editing model.

The reference image strongly influences the output style and composition. In the tutorial, using the ComfyUI example image resulted in a more cartoony, childlike drawing style with features like clouds and distinctive hair - all without changing the prompt.

You can use up to three reference images simultaneously. When using multiple images, you may find they stack or form a grid - fix this by using a lower denoise value in the K sampler (around 0.3 with linear quadratic scheduler).

Step 5: Generate with Standard Prompting

5
Generate Images with Natural Language Prompts

Krea 2 was trained on natural language and works fine with short, medium, or long prompts. The tutorial uses a complex prompt testing text, style, and positioning: "rodent mage summoning cheese using his biscuit tin."

The model handles various styles well:

  • Watercolor - produces one of the better watercolor styles seen, correctly showing cake sponge inside a cake woman
  • Cartoon - handles cartoon styles with correct text in speech bubbles
  • Photorealistic - handles complex scenes with fire, ice, and wool buildings at 1920x1080

If you prefer AI assistance with prompts, use the built-in generate text node with the loaded CLIP model and a custom system prompt.

Step 6: Perform Image-to-Image Generation

6
Image-to-Image with Denoise Control

Krea 2 handles standard image-to-image generation by lowering the denoise in the K sampler. Use a denoise value under 0.5 to keep elements of the original image while applying prompt changes.

The tutorial demonstrates:

  • Changing a character to an anime style with a Tokyo night market background using denoise 0.4
  • Converting cartoon to photorealistic style with detailed skin textures using an empty latent
  • Combining image encoding with image-to-image for more dramatic changes (can go up to full denoise when image is encoded)

For style changes, you can use an empty latent at any resolution while encoding the reference image, allowing you to change aspect ratios easily.

Step 7: Upscale with Multiple Options

7
Upscale Using VAE, Refiners, or Ultimate SD Upscale

Krea 2 offers several upscaling options:

  1. 2x VAE - Doubles resolution quickly without changing the image. The default generation is up to 2048x2048, and the 2x VAE can produce 4096x4096 results in seconds.

  2. Ultimate SD Upscale - Keeps the image very similar to the original while adding detail. The tutorial shows a 1152x1536 result with clearer knitted wool effects.

  3. Refiner stages - Using Krea as an upscaler through two stages of refining produces more photorealistic results. A 1200x1600 result featured clock eyes and more detail, though artifacts may appear (like on the neck at denoise 0.45).

The choice depends on whether you want minimal changes (2x VAE), slight detail enhancement (Ultimate SD Upscale), or more dramatic refinement (refiners).

Step 8: Combine Multiple Reference Images

8
Multi-Reference Composition

You can load and encode up to three images for complex compositions. The tutorial demonstrates:

  • Two images: a face and a pattern, producing a photorealistic portrait with the pattern as background
  • Three images: a pattern, a rodent character, and a landscape, blended into one cohesive scene

For three images, use a lower denoise (around 0.3) with linear quadratic scheduler to prevent grid stacking. The result blended all three elements perfectly - the landscape with the rodent posing against a magical pattern sky.

Remember that Krea 2 isn't an editing model, so reference images act more like suggestions than strict guides.

Step 9: Change Aspect Ratios

9
Adjust Aspect Ratio with Empty Latents

When encoding images with empty latents, you can easily change the aspect ratio. The tutorial demonstrates going to 1080x1920 (portrait orientation) while asking for an oil painting style with thick brush strokes.

This works well for style transfers where you want to maintain the subject but change the composition orientation. Simply set the empty latent dimensions and encode your reference image.

Step 10: Perform Inpainting

10
Inpainting with Masked Latents

For inpainting, use a masked latent. The tutorial uses SAM 3 segmentation to create masks automatically, though you can draw them yourself.

The example prompt asks for "the head of a bearded man" who "has perhaps seen better days." Krea 2 delivers exactly this, replacing only the masked area while keeping the rest of the image unchanged.

This provides a simple way to do head or face changes while preserving the rest of the composition.

Related Guides

  • ComfyUI Installation Guide
  • ComfyUI RunPod Setup

Next Steps

Now that you have Krea 2 working in ComfyUI, experiment with different model variants to find the best balance of speed and quality for your hardware. Try combining reference images with various prompts to explore the model's creative capabilities, and adjust conditioning rebalancing values to fine-tune prompt adherence. Remember to check the license details if you're using Krea 2 for commercial purposes, especially as a large corporation.

Related Guides