SDXL Lightning

Run SDXL at the speed of light

Input

Fields marked * are required. Review the price before generating.

The URL of the image to use as a starting point for the generation.

Uploading a file needs an account. Create accountJPEG, PNG, WebP · up to 25 MB

The prompt to use for generating the image. Be as descriptive as possible for best results.

The size of the generated image.

The number of images to generate.

Additional settings

The number of inference steps to perform.

determines how much the generated image resembles the initial image

The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.

The list of embeddings to use.

If set to true, the prompt will be expanded with additional prompts.

The format of the generated image.

Tips and requirements

If set to true, the aspect ratio of the generated image will be preserved even if the image size is too large. However, if the image is not a multiple of 32 in width or height, it will be resized to the nearest multiple of 32. By default, this snapping to the nearest multiple of 32 will not preserve the aspect ratio. Set crop_output to True, to crop the output to the proper aspect ratio after generating.

If set to true, the output cropped to the proper aspect ratio after generating.

Price$0.60 / run

You sign up first. Your settings are kept.

API code for this input

Complete the required fields and fix input errors to see API code.

How to use SDXL Lightning

Getting started

Test subject placement and visual direction with a clearly described scene.

Review your result

Inspect fine edges and recurring detail errors before choosing a version.

Inputs and settings

The provider documents 1, 2, 4 or 8 inference steps, with four as the default. Keep a seed when comparing step choices.

Choose JPEG or PNG in format. Image-to-image adds image_url and strength; inpainting additionally needs mask_url.