Available now

SDXL Lightning: text to image

SDXL Lightning makes Stable Diffusion XL images in 1, 2, 4 or 8 steps, from a prompt, from your image or by repainting a masked area.

Model ID

Input

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

Be as descriptive as possible for best results.

Example prompt. Edit it or write your own.

Additional settings

The number of inference steps to perform.

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.

Price$0.60 / run

You sign up first. Your settings are kept.

About this model

Overview

SDXL Lightning is a few-step version of Stable Diffusion XL. It makes up to 8 images per run in six square, portrait or landscape sizes, as JPEG or PNG.

Two more modes start from your picture: image to image, where a strength setting decides how far it moves from the original, and inpainting, which repaints only the area under a mask.

What you can build

  • Many quick drafts of one idea to pick from
  • Restyled versions of a photo or sketch
  • Fixes to one part of an image with a mask
  • Sets of thumbnails or icons in one look

Prompting tips

  • Use 4 steps for most images; 1 or 2 steps suit rough previews.
  • In image to image, lower the strength to keep more of your original.
  • In inpainting, describe only what should appear inside the masked area.

What to check

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

Inputs

  • Prompt (required): The prompt to use for generating the image. Be as descriptive as possible for best results.
  • Image Size (optional): The size of the generated image. Options: Square HD, Square, Portrait 4:3, Portrait 16:9, Landscape 4:3, Landscape 16:9.
  • Number of Inference Steps (optional): The number of inference steps to perform. Options: 1, 2, 4, 8.
  • Seed (optional): The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.
  • Number of Images (optional): The number of images to generate. From 1 to 8.
  • Embeddings (optional): The list of embeddings to use.
  • Enable Prompt Expansion (optional): If set to true, the prompt will be expanded with additional prompts.
  • Format (optional): The format of the generated image. Options: jpeg, png.

Output and limits

  • Image sizes: Square HD (1024×1024), Square (512×512), Portrait 4:3 (768×1024), Portrait 16:9 (576×1024), Landscape 4:3 (1024×768), Landscape 16:9 (1024×576).
  • Up to 8 images per run.
  • Small or dense text in the image can come out misspelled.
  • Hands, crowds and complex poses can show artifacts; generate a few variations and pick the best.
  • Some prompts or outputs can be refused by safety checks.

Price guide

  • up to: $0.60 / run