← Back to all generators

stability-ai/sdxl

A text-to-image generative AI model that creates beautiful images

Capabilities

1:1 4:3 3:4 16:9 9:16 2:3 3:2 Reference Images Negative Prompt Seed

Cost

Community model (estimated from hardware time)

Input Parameters

apply_watermark boolean

Applies a watermark to enable determining if an image is generated in downstream applications. If you have other provisions for generating or deploying images safely, you can use this to disable watermarking.

Default: true
disable_safety_checker boolean

Disable safety checker for generated images. This feature is only available through the API. See [https://replicate.com/docs/how-does-replicate-work#safety](https://replicate.com/docs/how-does-replicate-work#safety)

Default: false
guidance_scale number

Scale for classifier-free guidance

Default: 7.5 min: 1, max: 50
height integer

Height of output image

Default: 1024
high_noise_frac number

For expert_ensemble_refiner, the fraction of noise to use

Default: 0.8 min: 0, max: 1
image string

Input image for img2img or inpaint mode

lora_scale number

LoRA additive scale. Only applicable on trained models.

Default: 0.6 min: 0, max: 1
mask string

Input mask for inpaint mode. Black areas will be preserved, white areas will be inpainted.

negative_prompt string

Input Negative Prompt

Default: ""
num_inference_steps integer

Number of denoising steps

Default: 50 min: 1, max: 500
num_outputs integer

Number of images to output.

Default: 1 min: 1, max: 4
prompt string

Input prompt

Default: "An astronaut riding a rainbow unicorn"
prompt_strength number

Prompt strength when using img2img / inpaint. 1.0 corresponds to full destruction of information in image

Default: 0.8 min: 0, max: 1
refine string

Which refine style to use

Default: "no_refiner"
no_refiner expert_ensemble_refiner base_image_refiner
refine_steps integer

For base_image_refiner, the number of steps to refine, defaults to num_inference_steps

replicate_weights string

Replicate LoRA weights to use. Leave blank to use the default weights.

scheduler string

scheduler

Default: "K_EULER"
DDIM DPMSolverMultistep HeunDiscrete KarrasDPM K_EULER_ANCESTRAL K_EULER PNDM
seed integer

Random seed. Leave blank to randomize the seed

width integer

Width of output image

Default: 1024
Version: 7762fd07cf82 Updated: 2/26/2026 84.0M runs