Use the [`AutoPipelineForImage2Image`] to automatically call the combined pipelines under the hood:  
<hfoptions id="image-to-image">
<hfoption id="Kandinsky 2.1">  
```py
from diffusers import AutoPipelineForImage2Image
from diffusers.utils import make_image_grid, load_image
import torch