Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
catalog / Vision & Image / Diffusers
⬡PipelineVision & ImageFree

Diffusers

Hugging Face's state-of-the-art library for diffusion-based image, video, and audio generation models.

@ai-supply
Installs642k
⟳ upstream v0.39.0 · updated 24d ago
↗ Source repository
← More Vision & ImageVision & Image leaderboard →How we grade security →Source ↗
✓ Grade A · 100/100 · SafeSecurity assessment
✓No compromise signals46capabilities surfaced5of 20 OWASP controls clear
External endpoints declaredSuspicious code patternsExternal endpoints declaredExternal endpoints declared
scanned 17d ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

Diffusers

Diffusers is the leading open-source library for running and fine-tuning diffusion models. It provides a modular, batteries-included API covering Stable Diffusion, FLUX, PixArt, Kandinsky, and dozens more — for text-to-image, image-to-image, inpainting, video generation, and audio synthesis.

Key Features

  • Model zoo: 50,000+ pretrained checkpoints on the Hugging Face Hub, loadable in one line
  • Pipelines: high-level DiffusionPipeline API for immediate inference; mix-and-match schedulers (DDPM, DDIM, DPM-Solver, etc.)
  • Training scripts: LoRA, DreamBooth, textual inversion, full fine-tuning examples for all major architectures
  • ControlNet & IP-Adapter: structural conditioning and reference-image style transfer built in
  • Memory efficiency: FP16, BF16, 8-bit quantisation, sequential CPU offload, and enable_xformers_memory_efficient_attention
  • Multi-modal: text-to-image, image-to-video, text-to-video, text-to-audio, depth-to-image, and more

Quick Start

pip install diffusers transformers accelerate
from diffusers import DiffusionPipeline
import torch

pipe = DiffusionPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-schnell",
    torch_dtype=torch.bfloat16
).to("cuda")

image = pipe("A photorealistic cat astronaut on the moon").images[0]
image.save("output.png")
npx ai-supply add diffusers-image-generation

Curated mirror of the open-source Diffusers (Apache-2.0). Get it from the source.

Rating rank
#1
of 12 in Vision & Image
Install rank
#1
of 12 in Vision & Image
Security score
100/100 · A
safe
Security rank
#1
of 12 in Vision & Image
Installs
642k
cat avg 279k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Vision & Image leaderboard →
✓ Security: Safe · 100100/100 · grade Ascanned 17d ago
✓ no compromise signals46 risk-surface · 10/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · med confidence (static)
⚑ filesystem⚑ shell⚑ network⚑ secrets
egress → huggingface.co, discuss.huggingface.co, repo.anaconda.com, api.slack.com, astral.sh, pytorch.org, download.pytorch.org, serge.huggingface.tech +32
385 steps⚑ uses secretshuggingface.cogithub.comactions/cache@v2repo.anaconda.comactions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83ddactions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789fdocker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6fjitterbit/get-changed-files@b17fbb00bdc0c0f63fcf166580804b4d2cdc2a42

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM01Prompt Injectionhigh
Adversarial instructions embedded in an artifact that hijack a downstream LLM.
•Prompt-injection phrasing — instruction-subversion language detected · huggingface-diffusers-284419b/.github/workflows/claude_review.yml (CWE-77)risk surface
⚠LLM05Improper Output Handlinghigh
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — dynamic code execution · huggingface-diffusers-284419b/.ai/skills/model-integration/SKILL.md (CWE-95)risk surface
•Suspicious code patterns — pipe-to-shell install · huggingface-diffusers-284419b/.github/workflows/build_pr_documentation.yml (CWE-494)risk surface
•Suspicious code patterns — OS command execution · huggingface-diffusers-284419b/benchmarks/run_all.py (CWE-78)risk surface
•Suspicious code patterns — destructive rm -rf / · huggingface-diffusers-284419b/docker/diffusers-doc-builder/Dockerfile (CWE-78)risk surface
•Suspicious code patterns — destructive rm -rf /; pipe-to-shell install · huggingface-diffusers-284419b/docker/diffusers-pytorch-cuda/Dockerfile (CWE-78)risk surface
•Suspicious code patterns — unsafe yaml.load · huggingface-diffusers-284419b/scripts/convert_vq_diffusion_to_diffusers.py (CWE-502)risk surface
⚠LLM03Supply Chainmedium
Vulnerable/compromised dependencies, models or archives in the artifact.
•Dependency manifest — 6 pip requirements declared · huggingface-diffusers-284419b/benchmarks/requirements.txtrisk surface
•Dependency manifest — 8 pip requirements declared · huggingface-diffusers-284419b/examples/advanced_diffusion_training/requirements.txtrisk surface
•Dependency manifest — 10 pip requirements declared · huggingface-diffusers-284419b/examples/cogvideo/requirements.txtrisk surface
•Dependency manifest — 7 pip requirements declared · huggingface-diffusers-284419b/examples/consistency_distillation/requirements.txtrisk surface
•Dependency manifest — 15 pip requirements declared · huggingface-diffusers-284419b/examples/cosmos/requirements.txtrisk surface
•Non-registry dependency source — 1 requirement(s) from git/URL/editable · huggingface-diffusers-284419b/examples/cosmos/requirements.txt (CWE-829)risk surface
•Dependency manifest — 17 pip requirements declared · huggingface-diffusers-284419b/examples/cosmos3/requirements.txtrisk surface
•Dependency manifest — 1 pip requirements declared · huggingface-diffusers-284419b/examples/model_search/requirements.txtrisk surface
•Dependency manifest — 11 pip requirements declared · huggingface-diffusers-284419b/examples/research_projects/gligen/requirements.txtrisk surface
•Dependency manifest — 4 pip requirements declared · huggingface-diffusers-284419b/examples/research_projects/ip_adapter/requirements.txtrisk surface
•Dependency manifest — 5 pip requirements declared · huggingface-diffusers-284419b/examples/research_projects/pixart/requirements.txtrisk surface
•Dependency manifest — 9 pip requirements declared · huggingface-diffusers-284419b/examples/research_projects/realfill/requirements.txtrisk surface
•Dependency manifest — 62 pip requirements declared · huggingface-diffusers-284419b/examples/server/requirements.txtrisk surface
•Dependency manifest — 3 pip requirements declared · huggingface-diffusers-284419b/examples/unconditional_image_generation/requirements.txtrisk surface
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · huggingface-diffusers-284419b/.ai/modular.mdrisk surface
•External endpoints declared — 2 distinct host(s) · huggingface-diffusers-284419b/.github/ISSUE_TEMPLATE/translate.mdrisk surface
•External endpoints declared — 3 distinct host(s) · huggingface-diffusers-284419b/.github/PULL_REQUEST_TEMPLATE.mdrisk surface
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · huggingface-diffusers-284419b/.github/workflows/pr_comment_gpu_tests.yml (CWE-272)risk surface
•External endpoints declared — 10 distinct host(s) · huggingface-diffusers-284419b/README.mdrisk surface
•External endpoints declared — 4 distinct host(s) · huggingface-diffusers-284419b/docs/README.mdrisk surface
•External endpoints declared — 5 distinct host(s) · huggingface-diffusers-284419b/docs/TRANSLATING.mdrisk surface
•External endpoints declared — 7 distinct host(s) · huggingface-diffusers-284419b/docs/source/en/api/pipelines/animatediff.mdrisk surface
•External endpoints declared — 6 distinct host(s) · huggingface-diffusers-284419b/docs/source/en/api/pipelines/anyflow.mdrisk surface
•External endpoints declared — 9 distinct host(s) · huggingface-diffusers-284419b/docs/source/en/api/pipelines/flux.mdrisk surface
•External endpoints declared — 15 distinct host(s) · huggingface-diffusers-284419b/docs/source/en/api/pipelines/marigold.mdrisk surface
•External endpoints declared — 11 distinct host(s) · huggingface-diffusers-284419b/docs/source/en/conceptual/contribution.mdrisk surface
•External endpoints declared — 8 distinct host(s) · huggingface-diffusers-284419b/docs/source/en/training/controlnet.mdrisk surface
•Broad capability surface — 4 high-impact capability categories referenced — verify least-privilege · huggingface-diffusers-284419b/examples/community/README.md (CWE-272)risk surface
•External endpoints declared — 40 distinct host(s) · huggingface-diffusers-284419b/examples/community/README.mdrisk surface
⚠LLM07System Prompt Leakagemedium
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Internal host / private infrastructure reference — shipped content references a private IP range or internal-only host · huggingface-diffusers-284419b/examples/server/requirements.txt (CWE-200)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/setup.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/scripts/convert_joyimage_edit_to_diffusers.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/scripts/convert_prx_to_diffusers.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/modular_pipelines/flux2/encoders.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py (CWE-798)risk surface
•Low-confidence secret match — 2 more possible in 2 file(s) (CWE-798)risk surface
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · huggingface-diffusers-284419b/benchmarks/benchmarking_utils.py (CWE-835)risk surface
⚠LLM02Sensitive Information Disclosurelow
Secrets, credentials or PII shipped inside the artifact.
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/setup.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/scripts/convert_joyimage_edit_to_diffusers.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/scripts/convert_prx_to_diffusers.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/modular_pipelines/flux2/encoders.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_predict.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/pipelines/cosmos/pipeline_cosmos2_5_transfer.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/pipelines/flux2/pipeline_flux2_klein_kv.py (CWE-798)risk surface
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-diffusers-284419b/src/diffusers/pipelines/deprecated/audioldm/pipeline_audioldm.py (CWE-798)risk surface
•Low-confidence secret match — 2 more possible in 2 file(s) (CWE-798)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML02Data Poisoninghigh
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
•Prompt-injection phrasing — instruction-subversion language detected · huggingface-diffusers-284419b/.github/workflows/claude_review.yml (CWE-77)risk surface
⚠ML09Output Integrityhigh
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — dynamic code execution · huggingface-diffusers-284419b/.ai/skills/model-integration/SKILL.md (CWE-95)risk surface
•Suspicious code patterns — pipe-to-shell install · huggingface-diffusers-284419b/.github/workflows/build_pr_documentation.yml (CWE-494)risk surface
•Suspicious code patterns — OS command execution · huggingface-diffusers-284419b/benchmarks/run_all.py (CWE-78)risk surface
•Suspicious code patterns — destructive rm -rf / · huggingface-diffusers-284419b/docker/diffusers-doc-builder/Dockerfile (CWE-78)risk surface
•Suspicious code patterns — destructive rm -rf /; pipe-to-shell install · huggingface-diffusers-284419b/docker/diffusers-pytorch-cuda/Dockerfile (CWE-78)risk surface
•Suspicious code patterns — unsafe yaml.load · huggingface-diffusers-284419b/scripts/convert_vq_diffusion_to_diffusers.py (CWE-502)risk surface
⚠ML06AI Supply Chainmedium
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Dependency manifest — 6 pip requirements declared · huggingface-diffusers-284419b/benchmarks/requirements.txtrisk surface
•Dependency manifest — 8 pip requirements declared · huggingface-diffusers-284419b/examples/advanced_diffusion_training/requirements.txtrisk surface
•Dependency manifest — 10 pip requirements declared · huggingface-diffusers-284419b/examples/cogvideo/requirements.txtrisk surface
•Dependency manifest — 7 pip requirements declared · huggingface-diffusers-284419b/examples/consistency_distillation/requirements.txtrisk surface
•Dependency manifest — 15 pip requirements declared · huggingface-diffusers-284419b/examples/cosmos/requirements.txtrisk surface
•Non-registry dependency source — 1 requirement(s) from git/URL/editable · huggingface-diffusers-284419b/examples/cosmos/requirements.txt (CWE-829)risk surface
•Dependency manifest — 17 pip requirements declared · huggingface-diffusers-284419b/examples/cosmos3/requirements.txtrisk surface
•Dependency manifest — 1 pip requirements declared · huggingface-diffusers-284419b/examples/model_search/requirements.txtrisk surface
•Dependency manifest — 11 pip requirements declared · huggingface-diffusers-284419b/examples/research_projects/gligen/requirements.txtrisk surface
•Dependency manifest — 4 pip requirements declared · huggingface-diffusers-284419b/examples/research_projects/ip_adapter/requirements.txtrisk surface
•Dependency manifest — 5 pip requirements declared · huggingface-diffusers-284419b/examples/research_projects/pixart/requirements.txtrisk surface
•Dependency manifest — 9 pip requirements declared · huggingface-diffusers-284419b/examples/research_projects/realfill/requirements.txtrisk surface
•Dependency manifest — 62 pip requirements declared · huggingface-diffusers-284419b/examples/server/requirements.txtrisk surface
•Dependency manifest — 3 pip requirements declared · huggingface-diffusers-284419b/examples/unconditional_image_generation/requirements.txtrisk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (17) · hygiene / uncategorized
•Unrecognized file type — '.gitignore' is not on the allowlist · huggingface-diffusers-284419b/.gitignorerisk surface
•Unrecognized file type — '.cff' is not on the allowlist · huggingface-diffusers-284419b/CITATION.cffrisk surface
•Unrecognized file type — '.?' is not on the allowlist · huggingface-diffusers-284419b/LICENSErisk surface
•Unrecognized file type — '.in' is not on the allowlist · huggingface-diffusers-284419b/MANIFEST.inrisk surface
•Suspicious network references — suspicious TLD (47 URLs) · huggingface-diffusers-284419b/docs/source/en/conceptual/evaluation.mdrisk surface
•Suspicious network references — suspicious TLD (7 URLs) · huggingface-diffusers-284419b/docs/source/en/training/create_dataset.mdrisk surface
•Suspicious network references — suspicious TLD (16 URLs) · huggingface-diffusers-284419b/docs/source/en/training/custom_diffusion.mdrisk surface
•Suspicious network references — suspicious TLD (44 URLs) · huggingface-diffusers-284419b/docs/source/ko/conceptual/evaluation.mdrisk surface
•Suspicious network references — suspicious TLD (10 URLs) · huggingface-diffusers-284419b/docs/source/ko/training/create_dataset.mdrisk surface
•Suspicious network references — suspicious TLD (41 URLs) · huggingface-diffusers-284419b/docs/source/zh/index.mdrisk surface
•Suspicious network references — suspicious TLD (513 URLs) · huggingface-diffusers-284419b/examples/community/README.mdrisk surface
•Suspicious network references — suspicious TLD (40 URLs) · huggingface-diffusers-284419b/examples/controlnet/README.mdrisk surface
•Suspicious network references — suspicious TLD (12 URLs) · huggingface-diffusers-284419b/examples/controlnet/README_flux.mdrisk surface
•Suspicious network references — suspicious TLD (21 URLs) · huggingface-diffusers-284419b/examples/controlnet/README_sd3.mdrisk surface
•Suspicious network references — suspicious TLD (8 URLs) · huggingface-diffusers-284419b/examples/controlnet/README_sdxl.mdrisk surface
•Suspicious network references — suspicious TLD (14 URLs) · huggingface-diffusers-284419b/examples/custom_diffusion/README.mdrisk surface
•Suspicious network references — suspicious TLD (9 URLs) · huggingface-diffusers-284419b/examples/t2i_adapter/README_sdxl.mdrisk surface
✔ verified source · pinned huggingface-diffusers-284419b
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/diffusers-image-generation/check). Click a policy:

Consume Diffusers programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/diffusers-image-generation

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/diffusers-image-generation/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add diffusers-image-generation

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/diffusers-image-generation/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "diffusers-image-generation" })
OpenAPI spec →
vlatest
✓ Security: Safe · 1001mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
  • Scan a repo
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy