prompt = "a photo of an astronaut riding a horse on mars"
image = pipe(prompt).images[0]
image
```  
<Tip warning={true}>  
Generating multiple prompts in a batch can [crash](https://github.com/huggingface/diffusers/issues/363) or fail to work reliably. We believe this is related to the [`mps`](https://github.com/pytorch/pytorch/issues/84039) backend in PyTorch. While this is being investigated, you should iterate instead of batching.  
</Tip>