Stability AI's REST API provides access to Stable Diffusion 3.5, SDXL, and Stable Video Diffusion. Generate high-quality images from text prompts, transform existing images, upscale, remove backgrounds, and generate short video clips.
https://api.stability.ai/v2beta
Auth type
Bearer Token
Auth header
Authorization: Bearer sk-...
Rate limit
150 requests/10s
Pricing
from $0.07/mo
Free quota
25 free credits on signup
Documentation
https://platform.stability.ai/docs/api-reference
Endpoint status
Server online — HTTP 404 — server is online but path returned an error (may require auth)455ms
(checked Mar 29, 2026)
Builder score
B
66%
builder-friendly
Bearer token authentication using your Stability AI API key.
Authorization: Bearer sk-...
Credits: $10 = 1,000 credits. SD3.5 Large: 6.5 credits/image. SDXL 1.0: 0.2 credits/image. Video: 20 credits/clip.
| Method | Path | Description |
|---|---|---|
| POST | /stable-image/generate/sd3 |
Text-to-image with Stable Diffusion 3.5 |
| POST | /stable-image/generate/core |
Core text-to-image generation |
| POST | /stable-image/upscale/conservative |
Upscale an image up to 4x |
| POST | /stable-image/edit/remove-background |
Remove image background |
| POST | /image-to-video |
Generate video from an image |
curl https://api.stability.ai/v2beta/stable-image/generate/sd3 \ -H "Authorization: Bearer $STABILITY_API_KEY" \ -H "Accept: image/*" \ -F prompt="A photorealistic mountain lake at golden hour" \ -F aspect_ratio="16:9" \ -F model="sd3.5-large" \ --output image.png
# Returns raw image bytes (PNG/JPEG) # Headers include: Content-Type: image/png Stability-Finish-Reason: SUCCESS Stability-Seed: 3456789
Data sourced from API Map. Always verify pricing and rate limits against the official Stability AI documentation.