Stable Diffusion models
Stable Diffusion represents a series of open-source image generation models developed by Stability AI. See the pricing page for pricing details.
Stable Diffusion XL 1.0
- Efficient image generation model
- Good quality and performance
- Suitable for general use
Stable Diffusion 3
- Advanced model with better prompting
- Higher image quality and details
- Ideal for professional work
Stable Diffusion 3.5 Large
- Latest model with best quality
- Exceptional detail and realism
- Superior artistic capabilities
Previews
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The Stable Diffusion model version to use.
sdxl
, sd3
, sd3_5
"sd3_5"
Text prompt for image generation.
1 - 4000
"An astronaut riding a rainbow unicorn, cinematic, dramatic"
Description of what to exclude from the image. Only supports sdxl.
4000
""
Random seed for reproducible generations.
x <= 4294967295
"42"
The size of the generated images.
1024x1024
, 1344x768
, 768x1344
"1024x1024"
Number of steps to run the sampler for. Supports sd3 and sd3_5. For sd3, must be between 1 and 28, default is 28. For sd3_5, must be between 1 and 50, default is 40.
28
The guidance scale tells the model how similar the output should be to the prompt. For sd3 and sd3_5, must be between 0 and 20. For sdxl, must be between 1 and 50. Default is 3.5 for sd3, 4.5 for sd3_5, and 7.5 for sdxl.
"3.5"
Number of images to generate. Only supports sdxl.
1 <= x <= 4
1
Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Supports for sd3 and sd3_5.
x <= 100
90
Which sampler to use for the diffusion process. Only supports sdxl.
K_EULER
, DDIM
, DDPM
, K_DPMPP_2M
, K_DPMPP_2S_ANCESTRAL
, K_DPM_2
, K_DPM_2_ANCESTRAL
, K_EULER_ANCESTRAL
, K_HEUN
, K_LMS
"K_EULER"
Number of denoising steps. Between 1 and 500. Only supports sdxl.
1 <= x <= 500
50
Response
An array of generated image URLs.