How to make NSFW AI Stable Diffusion animations and GIFs [AnimateDiff Hentai Tutorial]

Updated: July 7, 2024

by gerogero


Animatediff is the most well known animation extension for Stable Diffusion, responsible for most NSFW GIFs you’ll see floating around.

You must already have AUTOMATIC1111 installed to use it (ComfyUI will work too but that’s beyond the scope of this tutorial)

Here’s an example of the type of work you’ll be able to produce by following this tutorial:

How to install:

  1. Click on the Extensions tab in A1111, then slick on Available subtab
  2. Click the big orange “Load from:” button
  3. In the searchbar search for “AnimateDiff”
  4. When the row appears, click Install

Download these motion modules, which are models that are responsible for applying the motion to the image:

 Download link

You want the following 2 files: “mm_sd_v14.ckpt” and “mm_sd_v15_v2.ckpt” 

move downloaded files to “StableDiffusion Direcotry\extensions\sd-webui-animatediff\model”

close and restart “webui-user” then we can see AnimateDiff panel

How to use

The simplest way to make an animation is

  1. write prompt as generating image, set width, height to 512
  2. select one motion module (select mm_sd_v15_v2)
  3. turn on Enable AnimateDiff and MP4
  4. set Number of frames to 32, FPS to 16 and click Generate button :)

After finish you can find MP4 file at StableDiffusion\outputs\txt2img-images\AnimateDiff

( ComfyUI User:ComfyUI AnimateDiff Workflow )

Optimal parameters

Here are parameters I usually set for better results

Number of frames“:Animation length, I set to 30

FPS“:Frames Per Second, play speed, I set to 30 (or lower)

then generate 30/30=1 second animation


Extend Animation Length (optional)

Since a 1 second animation is not enough, we’ll need to extend it.
we require to install ”Deforum“ (for extend animation length)

search “Deforum” in extension and install “deforum-for-automatic1111-webui”

close and restart webui-user, then we can go on

”Frame Interpolation“: SlowDown Switch, set to “FILM” (turn on)

only after install deforum, this can work

”Interp X“:SlowDown Multiplier, set to 10

then slow down 10 times, get 30/30×10=10 seconds animation

Then the animation is Long enough

other options can use default

A Beginner Can End Here


1. If the animation changed in the middle, then go to “Setting” panel, check on “Pad prompt/negative prompt to be same length” option in “Optimizations”

2. AnimateDiff is conflict with ADetailer, if you have to use adetailer, you need to close and restart webui-user.bat after once generation

3. Model “mm_sd_v15v2.ckpt” seems to exist issue, sometimes “mm_sd_v14.ckpt” can generate better result. there’s stable version model which can reduce the animation’s variety

4. Better generate less than 512×768 animation, otherwise errors will occur, it’s model issue regardless of VRAM