For image-to-image, pass the initial image and text prompt to condition the image to the pipeline. Start by loading the prior pipeline:  
<hfoptions id="image-to-image">
<hfoption id="Kandinsky 2.1">  
```py
import torch
from diffusers import KandinskyImg2ImgPipeline, KandinskyPriorPipeline