Now part of ModelsLab
Stable Diffusion API
Image generation at scale. SD 1.5, SDXL, Flux, ControlNet, LoRA, and 1,000+ community models — through one REST API.
800M+
Images generated
100K+
Developers
1,490+
Models available
From zero to first image in 30 seconds
Send a POST request with your API key and prompt. Free tier — no credit card.
curl -X POST 'https://stablediffusionapi.com/api/v4/dreambooth' \
-H 'Content-Type: application/json' \
-d '{
"key": "YOUR_API_KEY",
"model_id": "sd-1.5",
"prompt": "a photo of an astronaut riding a horse on mars",
"negative_prompt": null,
"width": "512",
"height": "512",
"samples": "1",
"num_inference_steps": "30",
"guidance_scale": 7.5,
"safety_checker": "no",
"enhance_prompt": "yes",
"seed": null,
"webhook": null,
"track_id": null
}' Most used models
From 1,490+ in the catalog. Each ships with code samples and parameters.
Cyberreal
378.1K images generated
Gakuen De Jikan Yo Tomare AnimagineXL 4 0opt 1754375412
378.1K images generated
Nudify V141
378.1K images generated
Deliberate V2
378.1K images generated
Realistic Vision V51
378.1K images generated
Anything V5
378.1K images generated
Tufos Comic Style Nerd Stallion F1d XL Nerd Stallion F1d V2 1
378.1K images generated
Uncensored Flux LoRA
378.1K images generated
Realistic Vision V60
378.1K images generated
Anything V3
378.1K images generated
Pony Realism V21
378.1K images generated
Anything V4
378.1K images generated
Common questions
- What is Stable Diffusion API?
- Stable Diffusion API is a REST API for generating images using Stable Diffusion and 1,000+ community models. It handles the GPU infrastructure so you can focus on building.
- Is Stable Diffusion API free?
- Yes — the free tier includes 20 image generations. Paid plans start at $8/month with unlimited access to all public models. Pricing is on modelslab.com.
- How do I get a Stable Diffusion API key?
- Sign up at modelslab.com (Stable Diffusion API is part of ModelsLab). Your API key is in the dashboard under API Settings.
- Can I use Stable Diffusion API commercially?
- Yes — you retain full copyright on images you generate via the API and can use them commercially.
- What models can I use?
- Stable Diffusion 1.5, SDXL, Flux, ControlNet, LoRA fine-tunes, anime/photorealistic specialty models, and 1,000+ community uploads. You can also upload your own.
Ready to build?
Free tier includes 20 image generations. No credit card required.
Get your API key →