).to("cuda") Now pass your prompt to the pipeline. You can also pass a negative_prompt to prevent certain words from guiding how an image is generated:   Copied url = "http://images.cocodataset.org/val2017/000000039769.jpg"