MCPcopy
hub / github.com/vladmandic/sdnext

github.com/vladmandic/sdnext @main sqlite

repository ↗ · DeepWiki ↗
11,887 symbols 46,213 edges 1,188 files 2,512 documented · 21%
README

SD.Next: AI art generator logo

SD.Next: All-in-one WebUI

SD.Next is a state-of-the-art, open-source server application and web interface (WebUI) for AI image and video generation, built on Stable Diffusion and supporting dozens of advanced models. Create, refine, caption, upscale and process images and videos with a modern, cross-platform application — perfect for artists, researchers, and AI enthusiasts.

Stars Forks Contributors License

Last release Last commit Dev

Home Code Docs Wiki Changelog

Discord Sponsors

Table of contents

Why SD.Next?

SD.Next is feature-rich open-source AI art generation platform with a focus on performance, flexibility, and user experience.

In addition to supporting all popular workflows, a wide range of platforms and models, SD.Next includes many features not found in other WebUIs, such as:

  • Support for many Diffusion models!
  • Automatic model download: simply select a model from the list of reference models and it will be downloaded and ready to use
    Or download and add your own models and they will be automatically detected and available in the UI
  • SDNQ: State-of-the-Art model quantization engine Use pre-quantized or run with quantization on-the-fly for up to 4x VRAM reduction with no or minimal quality and performance impact
  • Balanced Offload: Dynamically balance CPU and GPU memory to run larger models on limited hardware
  • Caption and Enhance with 25+ built-in LLM and VLM models, OpenCLiP models, Tagger with WaifuDiffusion and DeepDanbooru models
  • Image Processing with full image correction color-grading suite of tools
  • Multi-platform!
    Platform specific auto-detection and tuning performed on install
  • Fully Localized to ~15 languages and with support for many UI themes!
  • Desktop and mobile interfaces
  • Built in installer with automatic updates and dependency management

Screenshots

Desktop interface

SD.Next: AI art generator desktop interface screenshot

Mobile interface

SD.Next: AI art generator mobile interface screenshot

Supported Workflows

  • Generate with Text-to-Image, Image-to-Image, Text-to-Video, Image-to-Video, etc.
  • Edit with Detailer, HiRes/Refine, Image-Edit, Inpainting, Outpainting, etc.
  • Enhance guidance with LoRA, ControlNet, IPAdapters, Prompt Enhance, etc.
  • Process with Caption, Tag, Upscale, Interpolate, Colorize, Filter, etc.
  • and many more with support for custom scripts and extensions

Supported AI Models

SD.Next supports broad range of models and its frequently updated with latest models
For full list, see supported models and model specs

Supported Platforms and Hardware

SD.Next is designed to run on a wide range of hardware and platforms, with optimizations for various GPU architectures with acceleration and support for CPU-only execution. Supported platforms include:

  • nVidia GPUs using CUDA libraries on both Windows and Linux
  • AMD GPUs using ROCm libraries on both Linux and Windows
  • AMD GPUs on Windows using ZLUDA libraries
  • Intel Arc GPUs using OneAPI with IPEX XPU libraries on both Windows and Linux
  • Any CPU/GPU or device compatible with OpenVINO libraries on both Windows and Linux
  • Any GPU compatible with DirectX on Windows using DirectML libraries
  • Apple M1/M2 on OSX using built-in support in Torch with MPS optimizations
  • ONNX/Olive

Plus Docker container recipes for: CUDA, ROCm, Intel IPEX and OpenVINO

Getting started

[!TIP] And for platform specific information, check out
WSL | Intel Arc | DirectML | OpenVINO | ONNX & Olive | ZLUDA | AMD ROCm | MacOS | nVidia | Docker

Quick Start

git clone https://github.com/vladmandic/sdnext
cd sdnext
./webui.sh # Linux/Mac
webui.bat  # Windows
webui.ps1  # PowerShell

[!WARNING] If you run into issues, check out troubleshooting and debugging guides

Community and Support

If you're unsure how to use a feature, best place to start is Docs and if its not there,
check ChangeLog for when feature was first introduced as it will always have a short note on how to use it

And for any question, reach out on Discord or open an issue or discussion

Credits

Main credit goes to Automatic1111 WebUI for the original codebase

Development and Contributing

Please see Dev Home for details on how to contribute to this project

Extension points exported contracts — how you extend this code

HistoryEntry (Interface)
(no doc)
ui/history.ts
XnItem (Interface)
(no doc)
ui/autocomplete_xn.ts
CivitFile (Interface)
(no doc)
ui/civitai.ts
ContextMenuItem (Interface)
(no doc)
ui/contextMenus.ts
LogLine (Interface)
(no doc)
ui/logMonitor.ts
TagResult (Interface)
(no doc)
ui/autocomplete.ts
String (Interface)
(no doc)
ui/globals.d.ts
LoggerEntry (Interface)
(no doc)
ui/logger.ts

Core symbols most depended-on inside this repo

Interp1
called by 1600
modules/postprocess/hqx.py
get
called by 1002
modules/ui_docs.py
to
called by 894
modules/onnx_impl/__init__.py
cat
called by 886
modules/control/proc/segment_anything/utils/amg.py
Interp3
called by 760
modules/postprocess/hqx.py
view
called by 756
modules/sharpfin/sparse_backend.py
Interp2
called by 676
modules/postprocess/hqx.py
Interp8
called by 664
modules/postprocess/hqx.py

Shape

Method 5,335
Function 4,949
Class 1,569
Interface 24
Route 10

Languages

Python95%
TypeScript5%

Modules by API surface

pipelines/lumina_dimmo/lumina_dimoo.py142 symbols
modules/res4lyf/variants.py126 symbols
ui/js/iframeResizer.js109 symbols
pipelines/hidream/qwen3_vl_transformers.py100 symbols
test/test-anima-native-adapters.py86 symbols
test/test-flux2-native-adapters.py84 symbols
test/test-caption-api.py83 symbols
modules/caption/joytag.py80 symbols
ui/ui.ts78 symbols
test/test-chroma-native-adapters.py74 symbols
ui/gallery.ts73 symbols
installer.py71 symbols

Dependencies from manifests, versioned

@eslint/compat2.1.0 · 1×
@eslint/css1.2.0 · 1×
@eslint/js9.39.4 · 1×
@eslint/json1.2.0 · 1×
@eslint/markdown8.0.1 · 1×
@google/genai2.4.0 · 1×
@html-eslint/eslint-plugin0.60.0 · 1×
@stylistic/eslint-plugin5.10.0 · 1×
@types/jquery4.0.0 · 1×
@types/node25.9.0 · 1×
@typescript-eslint/eslint-plugin8.59.4 · 1×
@typescript-eslint/parser8.59.4 · 1×

For agents

$ claude mcp add sdnext \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact