SuperAPI AI Directory

stable-diffusion-webui

stable diffusion webui

Open website

About this tool

Purpose

Stable Diffusion web UI provides a Gradio-based web interface for Stable Diffusion models, making it convenient for users to perform image generation, editing, and processing.

Main Capabilities

  • Basic generation modes: Supports the original txt2img (text-to-image) and img2img (image-to-image) modes.
  • Image upscaling and restoration: Built-in Stable Diffusion Upscale, as well as various neural network upscaling and face restoration tools in the Extras tab such as GFPGAN, CodeFormer, RealESRGAN, ESRGAN, SwinIR, Swin2SR, and LDSR.
  • Prompt control: Adjust attention with ((tuxedo)) or (tuxedo:1.21) syntax; supports negative prompts, style saving, prompt editing (can change prompts mid-generation), Composable-Diffusion (combine multiple prompts with uppercase AND and support weights); no prompt token count limit (original Stable Diffusion is limited to 75).
  • Parameter adjustment: Selectable sampling methods, adjustable sampler eta value and noise settings; supports adjusting aspect ratio, seed adjustment, batch seed correction; real-time prompt token length validation.
  • Advanced features: Loopback (run img2img multiple times), X/Y/Z parameter plots, Textual Inversion training embeddings, checkpoint merging, high-resolution fix, Tiling support, Live preview (optionally using a separate neural network to reduce VRAM usage), CLIP interrogator, DeepDanbooru integration, Loras support, History tab and Aesthetic Gradients via extensions.
  • Performance and compatibility: Supports 4GB VRAM graphics cards (there are also reports of success with 2GB), and can be greatly accelerated on some graphics cards with the --xformers parameter; supports safetensors format checkpoints, Stable Diffusion 2.0, Alt-Diffusion, Segmind Stable Diffusion; VAE can be changed in settings; can load specialized inpainting models (RunwayML).
  • Ease of use: One-click install and run scripts (Python and Git must be installed in advance); most UI elements have mouse hover tooltips; can change the default values/mixed values/maximum values/step sizes of UI elements via text configuration; can run arbitrary Python code from the UI (requires enabling --allow-code); supports dragging images/text parameters into the prompt box; generation parameters are saved with the image (PNG in PNG chunks, JPEG in EXIF), and images can be dragged to the PNG info tab to restore parameters; supports generating permanent options; progress bar shows estimated completion time.

Usage

  1. Installation: Choose the installation method according to your platform. On Windows, you can download sd.webui.zip and run update.bat; or install Python 3.10.6 and then clone the repository https://github.com/AUTOMATIC1111/stable-diffusion-webui.git and run webui-user.bat. On Linux, install dependencies, then clone the repository and refer to the webui-user.sh options. There are dedicated instructions for Apple Silicon. Online services (such as Google Colab) can also be used.
  2. Run: Double-click the corresponding script to start, then access the interface in your browser.
  3. Generate images: Enter a prompt in the txt2img or img2img tab, adjust parameters, and click generate.
  4. Extensions: Extend functionality with custom scripts provided by the community, such as the History tab, Aesthetic Gradients, etc.

Applicable Scenarios

Suitable for image generation tasks that require local deployment of Stable Diffusion and fine-grained control, including artistic creation, concept design, image editing, batch processing, model experimentation, etc.

Limitations

  • Python and Git must be installed by yourself, and some platforms require specific dependencies.
  • Generated image dimensions must be multiples of 8 (previously 64).
  • Running arbitrary Python code requires enabling --allow-code, which poses security risks.
  • Feature details and license information can be viewed in the Licenses interface in settings.
  • More documentation has been moved to the project wiki.