Stable Diffusion is a latent diffusion model, a kind of deep generative artificial neural network.
More detailed workflow explanation here.