Does Stable Diffusion Allow NSFW? A Version-by-Version Answer
Published · Updated
Stable Diffusion's answer to NSFW has changed with almost every release. Version 1 was trained on data its own model card says "contains adult material." Version 2.0 removed adult images from training. SDXL came with a licence that does not mention sexual content at all — and Stability AI's Acceptable Use Policy, effective September 30, 2026, does. Here is what each piece actually says, so you know which rule applies to the weights you run.
The short answer
- Technically: the open weights can generate adult images; how well depends on the version and, above all, on the finetune.
- The "NSFW filter" most people meet is the safety checker in the original v1 sampling script and in the Diffusers Stable Diffusion pipeline — a separate component, not part of the model.
- Legally: the licence attached to the weights and Stability's own use policy are two different documents, and they do not say the same thing (see below).
- In practice: almost all adult use runs on community finetunes of SD 1.5 and SDXL, not on Stability's base models.
Version timeline: what changed for adult content
| Version | Released | Training data note | Default output filter | Licence on the weights |
|---|---|---|---|---|
| Stable Diffusion v1.x | — (CompVis release) | Subsets of LAION-5B, which "contains adult material" | Safety checker in the reference script and in Diffusers | CreativeML OpenRAIL-M |
| Stable Diffusion 2.0 | Nov 24, 2022 | LAION-5B subset "filtered to remove adult content using LAION's NSFW filter" | Safety checker in Diffusers | — (see the model page) |
| SDXL 1.0 | Jul 26, 2023 | Not described for adult content on the model card | No safety checker in the Diffusers SDXL pipeline; invisible watermark instead | CreativeML Open RAIL++-M |
| Stable Diffusion 3.5 (Large, Large Turbo, Medium) | Oct 22, 2024 (Medium Oct 29) | — | — | Stability AI Community License |
"—" means the sources read for this page do not state it.
The 2.0 change caused the biggest reaction. When it shipped, The Decoder reported that Stability AI had removed NSFW images from the training data. Founder Emad Mostaque defended the change on Discord as a safety measure for an openly released model rather than censorship of adult images as such, and said the model could be fine-tuned with NSFW content afterwards — which is roughly what the community did, but on v1.5 and later SDXL rather than on 2.x.
The safety checker: what it is and where it applies
The safety checker is a small image classifier, published as CompVis/stable-diffusion-safety-checker and built on OpenAI's CLIP. Its model card describes it simply: "This model can be used for identifying NSFW image."
How it works in the pipelines that include it:
- The model generates the image as usual.
- The checker embeds the finished image and compares it with a set of concept embeddings.
- If it flags the image, the Diffusers Stable Diffusion pipeline replaces it with a black image and reports
nsfw_content_detected; the code logs "Potential NSFW content was detected in one or more images. A black image will be returned instead."
Three facts follow from that design:
- It is an output filter, not a property of the weights. The same checkpoint behaves the same way with or without it; the checker only decides what you see.
- It belongs to the pipeline: CompVis's v1 reference script and the Diffusers
StableDiffusionPipelineinclude it. The Diffusers SDXL pipeline does not have a safety checker component at all; it adds an invisible watermark instead. - Diffusers treats removing it as a documented option with a condition attached. When the checker is absent, the library warns you to "abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public."
We do not publish switch-off instructions; the pipeline documentation and that warning are the primary sources.
Two documents that do not agree: the SDXL licence and Stability's use policy
The SDXL 1.0 licence. The model card lists the CreativeML Open RAIL++-M licence. Its Attachment A forbids, among other things, any use that breaks the law, exploits or harms minors, defames or harasses others, or generates personal information to harm someone. It contains no clause about adult or sexual content as such.
Stability AI's Acceptable Use Policy (effective September 30, 2026). It says it applies when you "access, use, or distribute any Stability AI Technology," including self-hosting weights "under the terms of our Non-Commercial Research, Community or Enterprise Licenses" and access through third-party hosts. Under "We Prohibit Sexually Explicit Content" it lists non-consensual intimate imagery, illegal pornographic content, and "content relating to sexual intercourse, sexual acts, or sexual violence." It also prohibits sexual content involving minors and impersonation without consent.
How the two fit together is a legal question we cannot settle for you. What the documents show is that the policy names its own licences (Community, Enterprise, Non-Commercial Research) for self-hosted use — the licences of SD 3.5 — while SDXL 1.0's card names the OpenRAIL++-M licence. Read both before you build anything public on Stability models.
Why the adult ecosystem runs on SD 1.5 and SDXL finetunes
The base models were never the point for adult use. Version 1's data included adult material but the reference script filtered output; version 2 removed the data; SDXL is a general model. What fills the gap is finetuning: community checkpoints trained further on curated data, and LoRAs that add one style or subject.
SDXL is the main base today. Its best-known adult-capable descendant is Pony Diffusion V6 XL, an SDXL finetune with its own score and rating tags. Others are realistic merges; see our uncensored AI image generators list for hosted options and what a LoRA is for how adapters work.
Checkpoints you download carry their own licence — often a variant of the parent's, sometimes with added restrictions — so check each model page, not only Stability's.
Where checkpoints and LoRAs are published, and the rules there
- Civitai. Its Terms of Service, last modified November 11, 2026, list pornography and sexually explicit content among prohibited user content, and separately prohibit content based on the likeness of real people and any sexual content involving minors "in any style." Users must be 18+.
- Hugging Face. Its content policy (effective April 10, 2025) lets repository owners tag models "Not For All Audiences," and prohibits sexual content made without consent or involving minors.
Platform rules change faster than model licences; the dates above are the versions we read.
Interfaces and hardware
Most people run Stable Diffusion through a local interface rather than code. The AUTOMATIC1111 web UI loads checkpoints in safetensors format, merges up to three checkpoints, and has a dedicated panel for LoRAs; ComfyUI does the same with node workflows (what ComfyUI is).
Hardware depends on the version. For SD 3.5 Medium, Stability states 9.9 GB of VRAM excluding text encoders for full performance. An SDXL finetune such as Pony Diffusion V6 XL is a 6.46 GB file in fp16. Resolution also rose by version: v1 was trained at 512×512 and 2.0 was shown at 768×768.
Stable Diffusion vs FLUX for adult work
| SDXL and finetunes | FLUX | |
|---|---|---|
| Base model on adult content | General model; adult capability comes from finetunes | FLUX.2 cards say NSFW categories were filtered from pre-training |
| Output filter in the release | None in the Diffusers SDXL pipeline | FLUX.2 repositories include NSFW filters; FLUX.2 [dev] and [klein] 9B licences require filters or manual review |
| Licence of the base | OpenRAIL++-M (SDXL) | Non-commercial for [dev] variants; Apache 2.0 for [schnell] and FLUX.2 [klein] 4B |
| Ecosystem | Largest library of adult checkpoints and LoRAs | Growing LoRA library; some uncensored derivatives |
FAQ
Does Stable Diffusion allow NSFW?
The SDXL licence does not ban adult content as such, but Stability AI's September 2026 use policy prohibits content relating to sexual acts for use of Stability technology under its own licences. Finetunes carry their own terms.
Can Stable Diffusion make NSFW images?
The base models can, to varying degrees: v1 was trained on data with adult material, 2.0 had it removed, and most adult use relies on SD 1.5 and SDXL finetunes.
Is Stable Diffusion NSFW by default?
No. The base models are general-purpose, and the v1 and Diffusers Stable Diffusion pipelines include a safety checker that blacks out flagged images.
What does the Stable Diffusion safety checker do?
A CLIP-based classifier that runs on the finished image; when it flags content, the Diffusers pipeline returns a black image instead. It is part of the pipeline, not the model weights.
Which SDXL checkpoints are made for NSFW?
Community finetunes such as Pony Diffusion V6 XL and realistic merges; each has its own licence and host rules.
Is SDXL or FLUX better for NSFW?
SDXL has the larger adult finetune ecosystem and no filter in its standard pipeline; FLUX.2 base models were filtered for NSFW in pre-training and ship with inference filters.