AutoPipelineForText2Image vs DiffusionPipeline

Hi,
We can run a stable Diffusion Model for the Text-to-Image generation task with AutoPipelineForText2Image API as well as with DiffusionPipeline API. What is the difference between these two APIs? Which one is better? Is it like AutoPipelineForText2Image API supports a wide variety of models and DiffusionPipeline API just supports diffusion models?

Thanks,
Alok.