To improve the quality of images produced by the Stable Diffusion text-to-image model, Playground AI mainly uses a ‘Stable Diffusion VAE’, a particular kind of Variational Autoencoder that works by first encoding images into a latent space and then decoding them to produce new, higher-quality images.