# pass prompt and image to pipeline
image = pipeline(prompt, image=init_image, output_type="latent").images[0]
```  
<Tip>  
It is important to specify `output_type="latent"` in the pipeline to keep all the outputs in latent space to avoid an unnecessary decode-encode step. This only works if the chained pipelines are using the same VAE.  
</Tip>