How to Get Stable Diffusion API Key:
Step 1: Follow these instructions from stability.ai's official documentation Create Stable Diffusion API Key
Step 2: Copy your newly created DreamStudio API key.
Step 3: Go to Admin Panel, AI Management -> AI Settings, and enter your Stable Diffusion API Key and click save.