SD Workbench is a VS Code extension for managing AUTOMATIC1111 or Forge generation settings as YAML files and executing image generation directly from VS Code.
Consolidate prompts, generation parameters, Dynamic Prompts, and output settings into a single YAML file. Save generation conditions as files and reuse them anytime. Complete the entire workflow—from editing generation settings to running generation—within VS Code.
- VS Code
^1.120.0 - AUTOMATIC1111 WebUI or Forge WebUI with API enabled
- sd-dynamic-prompts extension (required only when using
prompt:section)
- Open VS Code
- Open the Extensions view (
Ctrl+Shift+X/Cmd+Shift+X) - Search for "sd-workbench"
- Click Install on "SD Workbench"
Or install directly from: VS Code Marketplace - SD Workbench
Set these required settings in VS Code:
sdWorkbench.sdHost: Your Stable Diffusion WebUI API endpoint- Example:
http://localhost:7860(Default) - Example:
http://host.docker.internal:7860(Docker)
- Example:
sdWorkbench.wildcardsDirectory: Path to Dynamic Prompts wildcards (only needed if usingprompt:section)- Example:
C:\stable-diffusion-webui\extensions\dynamic_prompts\wildcards
- Example:
- Create a YAML file with generation settings
- Execute
SD Workbench: Generatefrom the command palette - Select a generation to execute
- View results in the Webview panel
prompt:
scene: forest, __lighting__
lighting:
- sunrise, warm light
- sunset, golden hour
- night, moonlight
generations:
_base:
steps: 30
cfg_scale: 7
seed: -1
landscape:
from: _base
prompt: __scene__
width: 768
height: 512
batch_size: 4SD Workbench: Generate- Execute a single generationSD Workbench: Generate Multiple- Execute multiple generations in sequence
| Setting | Default | Description |
|---|---|---|
sdWorkbench.sdHost |
http://localhost:7860 |
Stable Diffusion WebUI API URL |
sdWorkbench.wildcardsDirectory |
"" |
Dynamic Prompts wildcards directory |
sdWorkbench.imageGenerationFolder |
${activeYamlFileFolder}/${yamlName}/${generationName} |
Output folder for generated images |
For detailed documentation, see the Full Documentation.
Covers:
- Complete YAML format specification
- Generation inheritance and metadata
- Default values and validation constraints
- All configuration options
- And more...
MIT
