# AutoPipelineForText2Image vs DiffusionPipeline

**URL:** <https://discuss.huggingface.co/t/autopipelinefortext2image-vs-diffusionpipeline/83657>\
**Category:** Beginners\
**Created:** [April 25, 2024, 6:51am UTC](https://discuss.huggingface.co/t/autopipelinefortext2image-vs-diffusionpipeline/83657 "2024-04-25T06:51:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alok23](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Alok23](https://discuss.huggingface.co/u/Alok23)\
**Post date:** [April 25, 2024, 6:51am UTC](https://discuss.huggingface.co/t/autopipelinefortext2image-vs-diffusionpipeline/83657/1 "2024-04-25T06:51:54Z")

</div>

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.
