# Diffusers

框架 · https://godooo.ai/zh/framework/diffusers

> Diffusers 是 Hugging Face 出品的开源 AI 开发框架，2022 年推出，面向开发者。

提供预训练扩散模型管线、用于生成图像、视频和音频的 PyTorch 库。

主打：文生图。开源，可以免费使用。使用方式：自部署、本地离线运行、API。

## 速览

- **类别:** [框架](https://godooo.ai/zh/browse#framework)
- **出品方:** [Hugging Face](https://godooo.ai/zh/org/hugging-face)
- **推出于:** 2022
- **所属星系:** [图像](https://godooo.ai/zh/galaxy/image)
- **是否开源:** 是 · Apache-2.0
- **源代码:** [github.com/huggingface/diffusers](https://github.com/huggingface/diffusers)
- **GitHub 星标:** 34,595
- **使用方式:** 可自部署 · 可离线本地运行 · API
- **适合谁:** 开发者
- **官网:** [huggingface.co](https://huggingface.co/docs/diffusers)

## 能做什么

- **[文生图](https://godooo.ai/zh/capability/text-to-image)** — 主打, _由机器提出，尚待校准_. “Diffusers is a library of state-of-the-art pretrained diffusion models for generating videos, images, and audio.” (摘自 [huggingface.co](https://huggingface.co/docs/diffusers/index)，2026-09-24)
- **[图片编辑](https://godooo.ai/zh/capability/image-editing)** — 支持, _由机器提出，尚待校准_. “Text-guided Image-to-Image ControlNet lllyasviel/sd-controlnet-canny Text-guided Image-to-Image InstructPix2Pix timbrooks/instruct-pix2pix” (摘自 [github.com](https://github.com/huggingface/diffusers)，2026-09-24)
- **[文生视频](https://godooo.ai/zh/capability/text-to-video)** — 支持, _由机器提出，尚待校准_. “Diffusers is a library of state-of-the-art pretrained diffusion models for generating videos, images, and audio.” (摘自 [huggingface.co](https://huggingface.co/docs/diffusers/index)，2026-09-24)
- **[模型训练](https://godooo.ai/zh/capability/model-training)** — 支持, _由机器提出，尚待校准_. “Whether you're looking for a simple inference solution or training your own diffusion models, 🤗 Diffusers is a modular toolbox that supports both.” (摘自 [github.com](https://github.com/huggingface/diffusers)，2026-09-24)
- **[高清放大](https://godooo.ai/zh/capability/upscaling)** — 支持, _由机器提出，尚待校准_. “Super Resolution Stable Diffusion Upscale stabilityai/stable-diffusion-x4-upscaler” (摘自 [github.com](https://github.com/huggingface/diffusers)，2026-09-24)

## 平替与同类

- **[Jimeng 即梦](https://godooo.ai/zh/product/jimeng)** (免费版 + 付费升级): 同样能做：文生图、文生视频、图片编辑；不用写代码
- **[Krea](https://godooo.ai/zh/product/krea)** (免费版 + 付费升级): 同样能做：文生图、高清放大、图片编辑；不用写代码
- **[Stable Diffusion WebUI](https://godooo.ai/zh/product/stable-diffusion-webui)** (开源免费): 同样能做：图片编辑、文生图、高清放大；不用写代码
- **[Invoke](https://godooo.ai/zh/product/invoke)** (开源免费): 同样能做：图片编辑、文生图、高清放大；不用写代码
- **[Adobe Firefly](https://godooo.ai/zh/product/firefly)** (免费版 + 付费升级): 同样能做：文生图、图片编辑、文生视频；不用写代码
- **[ComfyUI](https://godooo.ai/zh/product/comfyui)** (开源免费): 同样能做：文生图、文生视频、高清放大；不用写代码
- **[Nano Banana](https://godooo.ai/zh/model/nano-banana)**: 同样能做：图片编辑、文生图；不用写代码
- **[Fooocus](https://godooo.ai/zh/product/fooocus)** (开源免费): 同样能做：文生图、图片编辑、高清放大；不用写代码
- **[Leonardo.Ai](https://godooo.ai/zh/product/leonardo)** (免费版 + 付费升级): 同样能做：文生图、图片编辑、高清放大；不用写代码
- **[Midjourney](https://godooo.ai/zh/product/midjourney)** (付费): 同样能做：文生图、图片编辑；不用写代码
- **[DALL·E](https://godooo.ai/zh/model/dall-e)**: 同样能做：文生图、图片编辑；不用写代码
- **[FLUX](https://godooo.ai/zh/model/flux)** (开源免费): 同样能做：文生图、图片编辑；不用写代码

## 关系

- **应用了:** [Diffusion Model](https://godooo.ai/zh/concept/diffusion-model)
- **基于…构建:** [PyTorch](https://godooo.ai/zh/framework/pytorch)

## 常见问题

### Diffusers 是什么？

Diffusers 是 Hugging Face 出品的开源 AI 开发框架，2022 年推出，面向开发者。提供预训练扩散模型管线、用于生成图像、视频和音频的 PyTorch 库。

### Diffusers 免费吗？

免费。Diffusers 是开源软件（Apache-2.0）。

### Diffusers 开源吗？

开源，许可证是 Apache-2.0。源代码在 https://github.com/huggingface/diffusers。

### Diffusers 能本地运行吗？

能，可以在自己的电脑上离线运行。也可以部署在自己的服务器上。

### Diffusers 能做什么？

主打：文生图。也能做：图片编辑、文生视频、模型训练、高清放大。

### Diffusers 是谁开发的？

由 Hugging Face 开发。

### Diffusers 有哪些开源替代品？

开源的有：Stable Diffusion WebUI、Invoke、ComfyUI、Fooocus、FLUX。其他：Jimeng 即梦、Krea、Adobe Firefly、Nano Banana、Leonardo.Ai、Midjourney。

## 来源

- [huggingface.co](https://huggingface.co/docs/diffusers/index) — 核实于 2026-09-24
- [github.com](https://github.com/huggingface/diffusers) — 核实于 2026-09-24
- [huggingface.co](https://huggingface.co/docs/diffusers)

---

最后更新 2026-09-24 · 来源核实于 2026-09-24 · 这是 https://godooo.ai/zh/framework/diffusers 的 Markdown 版本。本站每个页面都有：在地址后面加 .md。
