SDXL Lightning for blazing fast generations
A new technology called SDXL Lightning enables high-quality image generations in less than 1 second
SDXL Lightning enable you to achieve high-quality output from SDXL with only 4-8 steps and less than 1 second of latency. This stands in stark contrast to generating images using SDXL model, which typically demands 30-40 steps to produce a good quality image in 3-3.5 seconds, and even more when incorporating custom assets like LoRAs. More importantly, SDXL Lightning is completely compatible with existing image customization techniques available on OctoAI such as SDXL LoRAs. Customers using this can achieve both fast inference speed and product differentiation via customization.
You can use SDXL Lightning via OctoAI’s Image Gen API
The following guidelines must be adhered to ensure high quality of output:
- Opt for 4-8 steps, with 8 steps being the recommended choice.
- Maintain a low CFG Scale, ideally ranging from 1.4 to 4.0, with 3.0 as the optimal value.
- Utilize any sampler, textual inversion, or style preset.
- Note that additional LoRAs and VAEs will result in increased inference time.
Below is an example for text2img with SDXL Lightning:
Example Code: