A Python-Script Based Generative AI platform
35
stars
371
commits
Python
primary language
Sep 10, 2026
updated
Stable Scripts UI is a web-based user interface for Stable Scripts - a kind of python scripts can easily reproduce the same results created by other users to run GenAI models.

Comparing to other stable diffusion / GenAI UIs, SSUI has 5 major pros:
Currently, most of the GenAI tools are node-based, which is not friendly for large scale workflows. SSUI provides a project management system, which contains all the necessary information to run the script.
With SSUI, you can copy the project and shared with your friends. They can easily reproduce the results with all necessary resources.

SSUI provides a model management system, can help you easily download and install models from Civitai, HuggingFace and local files.

Stable Scripts provides good integration ability, which can allow you to use in different scenarios. Once a script is written, it can be called by:

We provides a VSCode plugin to help you write Stable Scripts. You can edit the code, and run the script inside VSCode.

Please refer to Stable Scripts document for details.
Currently supported models:
A Stable Script must contains 3 parts:
from ssui import workflow, Prompt, Image, Noise
from ssui_image.SD1 import SD1Model, SD1Clip, SD1Latent, SD1Lora, SD1Denoise, SD1LatentDecode, SD1IPAdapter
from ssui.config import SSUIConfig
from typing import List, Tuple
config = SSUIConfig()
@workflow
def txt2img(model: SD1Model, positive: Prompt, negative: Prompt) -> Image:
positive, negative = SD1Clip(config("Prompt To Condition"), model, positive, negative)
latent = SD1Latent(config("Create Empty Latent"))
latent = SD1Denoise(config("Denoise"), model, latent, positive, negative)
return SD1LatentDecode(config("Latent to Image"), latent)
The config object will define each step in the workflow, you must pass it as the first argument of each API calls:
latent = SD1Latent(config("Create Empty Latent"))
If there are configurable parameters, those controls will be generated in the details panel in the UI.

First, please check out the dependencies are installed on your device.
nodejs and yarn
rustc and cargo
The following command will install yarn packages and a embedded python environment in '.venv' and necessary python packages for you.
yarn
To quickly start the development, you can run desktop project as the entry point:
yarn dev:desktop
Or start additional hot reload servers for Functional UI development:
yarn dev:desktop
yarn dev:functional_ui
Or you can start the server, executor, functional ui and desktop all manually, which can give you more flexibility, and clear messages:
yarn dev:server
yarn dev:executor
yarn dev:functional_ui
yarn dev:desktop
If you are working on the functional ui, you can run it directly from the web browser:
yarn dev:server
yarn dev:executor
yarn dev:functional_ui
Example URL:
http://localhost:7420/?path=<example_path>/basic/workflow-sd1.py
To test the image generation, you need the following models, including:
You can download them from: https://huggingface.co/datasets/sunxfancy/TestSDModels/tree/main
We use pre-commit to check the code before commit.
git config --local core.hooksPath .githooks/
Python
87.5%
TypeScript
10.1%
Rust
1.3%
A Python-Script Based Generative AI platform
35
stars
371
commits
Python
primary language
Sep 10, 2026
updated
Stable Scripts UI is a web-based user interface for Stable Scripts - a kind of python scripts can easily reproduce the same results created by other users to run GenAI models.

Comparing to other stable diffusion / GenAI UIs, SSUI has 5 major pros:
Currently, most of the GenAI tools are node-based, which is not friendly for large scale workflows. SSUI provides a project management system, which contains all the necessary information to run the script.
With SSUI, you can copy the project and shared with your friends. They can easily reproduce the results with all necessary resources.

SSUI provides a model management system, can help you easily download and install models from Civitai, HuggingFace and local files.

Stable Scripts provides good integration ability, which can allow you to use in different scenarios. Once a script is written, it can be called by:

We provides a VSCode plugin to help you write Stable Scripts. You can edit the code, and run the script inside VSCode.

Please refer to Stable Scripts document for details.
Currently supported models:
A Stable Script must contains 3 parts:
from ssui import workflow, Prompt, Image, Noise
from ssui_image.SD1 import SD1Model, SD1Clip, SD1Latent, SD1Lora, SD1Denoise, SD1LatentDecode, SD1IPAdapter
from ssui.config import SSUIConfig
from typing import List, Tuple
config = SSUIConfig()
@workflow
def txt2img(model: SD1Model, positive: Prompt, negative: Prompt) -> Image:
positive, negative = SD1Clip(config("Prompt To Condition"), model, positive, negative)
latent = SD1Latent(config("Create Empty Latent"))
latent = SD1Denoise(config("Denoise"), model, latent, positive, negative)
return SD1LatentDecode(config("Latent to Image"), latent)
The config object will define each step in the workflow, you must pass it as the first argument of each API calls:
latent = SD1Latent(config("Create Empty Latent"))
If there are configurable parameters, those controls will be generated in the details panel in the UI.

First, please check out the dependencies are installed on your device.
nodejs and yarn
rustc and cargo
The following command will install yarn packages and a embedded python environment in '.venv' and necessary python packages for you.
yarn
To quickly start the development, you can run desktop project as the entry point:
yarn dev:desktop
Or start additional hot reload servers for Functional UI development:
yarn dev:desktop
yarn dev:functional_ui
Or you can start the server, executor, functional ui and desktop all manually, which can give you more flexibility, and clear messages:
yarn dev:server
yarn dev:executor
yarn dev:functional_ui
yarn dev:desktop
If you are working on the functional ui, you can run it directly from the web browser:
yarn dev:server
yarn dev:executor
yarn dev:functional_ui
Example URL:
http://localhost:7420/?path=<example_path>/basic/workflow-sd1.py
To test the image generation, you need the following models, including:
You can download them from: https://huggingface.co/datasets/sunxfancy/TestSDModels/tree/main
We use pre-commit to check the code before commit.
git config --local core.hooksPath .githooks/
Python
87.5%
TypeScript
10.1%
Rust
1.3%