Now part of ModelsLab
Stable Diffusion API
Get an API key and start generating in 30 seconds — the home of Stable Diffusion and community models
One endpoint for Stable Diffusion 1.5, SDXL, Flux, ControlNet, LoRA, and 2,800+ community models. Plug-and-play API, transparent pricing, unlimited open-source generations on the $149 plan — no GPU, no setup.
800M+
Images generated
100K+
Developers
2,850+
Models available
From zero to first image in 30 seconds
Send a POST request with your API key and prompt. API plans start at $21/month.
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 2,850+ 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?
- No. Creating a ModelsLab account is free, but API access requires a paid plan: Basic at $21/month (3,250 API calls), Standard at $47/month (10,000 API calls), or Open Source Unlimited at $149/month (unlimited open-source model generations; third-party models billed separately). 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?
API plans start at $21/month. Open-source models are unlimited on the $149 plan.
Get your API key →