← Back to all generators

stability-ai/sdxl

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

Capabilities

1:14:33:416:99:162:33:2Reference ImagesNegative PromptSeed

Cost

Community model (estimated from hardware time)

Input Parameters

apply_watermarkboolean

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_checkerboolean

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_scalenumber

Scale for classifier-free guidance

Default: 7.5min: 1, max: 50
heightinteger

Height of output image

Default: 1024
high_noise_fracnumber

For expert_ensemble_refiner, the fraction of noise to use

Default: 0.8min: 0, max: 1
imagestring

Input image for img2img or inpaint mode

lora_scalenumber

LoRA additive scale. Only applicable on trained models.

Default: 0.6min: 0, max: 1
maskstring

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

negative_promptstring

Input Negative Prompt

Default: ""
num_inference_stepsinteger

Number of denoising steps

Default: 50min: 1, max: 500
num_outputsinteger

Number of images to output.

Default: 1min: 1, max: 4
promptstring

Input prompt

Default: "An astronaut riding a rainbow unicorn"
prompt_strengthnumber

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

Default: 0.8min: 0, max: 1
refinestring

Which refine style to use

Default: "no_refiner"
no_refinerexpert_ensemble_refinerbase_image_refiner
refine_stepsinteger

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

replicate_weightsstring

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

schedulerstring

scheduler

Default: "K_EULER"
DDIMDPMSolverMultistepHeunDiscreteKarrasDPMK_EULER_ANCESTRALK_EULERPNDM
seedinteger

Random seed. Leave blank to randomize the seed

widthinteger

Width of output image

Default: 1024
Version: 7762fd07cf82Updated: 7/25/202684.0M runs