Create an account on Stability AI Developer platform.
A new account should come with 23 free credits when you sign up. This is enough for about 3 images. Add more credits on the billing page. The minimum is $10 ($12.30 for europeans)
Each image generation consumes credits. See the pricing page for credit usage for each image.
Create an API key on your account’s API keys page. You can create a new one or use an existing one.
Copy the API key.
Open this Colab notebook.
Run the notebook by clicking the play button on the left next to the prompt.
Alternatively.... Sign up for an account over at https://pixeldojo.ai and get access to Stable Diffusion 3, SD3 Image to Image, Creative Upscaling, Style Transfer, a consistent character generator, and a dozen other diffusion models all for $9.95 per month.