Stability AI
image-gen
“Get API key” opens Stability AI’s console where you can sign in, claim free credits, and generate your key. “Documentation” shows how to set it up and call the API.
Stable Diffusion and SDXL image generation with high quality customizable outputs.
❆ 25 free credits on signup
Models
stable-diffusion-v1-6stable-diffusion-xl-1024-v1-0
Details
Auth: api_key
Uptime: 100% uptime · 7d
Avg latency: 110ms
Checked: 2h ago
Pricing: ~$0.01–$0.04 per image (credit-based)
Rate limit: 150 req/10 sec
Free credits: 25 free credits on signup
SDKs: pythonjavascript
Regions: global
Tags: stable-diffusion, sdxl, image
Code snippets
80ms avg
import requests, base64
res = requests.post(
"https://api.stability.ai/v1/generation/stable-diffusion-v1-6/text-to-image",
headers={"Authorization": "Bearer YOUR_KEY"},
json={"text_prompts": [{"text": "a cat in space"}], "samples": 1}
)
with open("out.png", "wb") as f:
f.write(base64.b64decode(res.json()["artifacts"][0]["base64"]))Status history (7 days)
06-10
06-11
06-12
06-13
06-14
06-15
06-21