Available now

SDXL Lightning: image 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.

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

Uploading a file needs an account. Create account

JPEG, PNG, WebP · up to 25 MB

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.

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.

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.

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

  • Image (required): The URL of the image to use as a starting point for the generation.
  • 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.
  • Strength (optional): determines how much the generated image resembles the initial image. From 0.05 to 1.
  • 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.
  • Preserve Aspect Ratio (optional): 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.
  • Crop Output (optional): If set to true, the output cropped to the proper aspect ratio after generating.

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