Use the [`AutoPipelineForText2Image`] to automatically call the combined pipelines under the hood:  
<hfoptions id="text-to-image">
<hfoption id="Kandinsky 2.1">  
```py
from diffusers import AutoPipelineForText2Image
import torch