SD Workbench
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.

Quick Start
Requirements
- VS Code
^1.120.0
- AUTOMATIC1111 WebUI or Forge WebUI with API enabled
- sd-dynamic-prompts extension (required only when using
prompt: section)
Installation
Install from VS Code Marketplace
- 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
Configuration
Set these required settings in VS Code:
sdWorkbench.sdApiHost: Your Stable Diffusion WebUI API endpoint
- Example:
http://localhost:7860 (Default)
- Example:
http://host.docker.internal:7860 (Docker)
sdWorkbench.sdApiBasicAuthEnabled: Enable BASIC authentication (optional)
- Set to
true to enable, then configure username and password
sdWorkbench.sdApiUsername: Username for BASIC authentication (optional)
sdWorkbench.sdApiPassword: Password for BASIC authentication (optional)
sdWorkbench.wildcardsDirectory: Path to Dynamic Prompts wildcards (only needed if using prompt: section)
- Example:
C:\stable-diffusion-webui\extensions\dynamic_prompts\wildcards
Basic Usage
- Create a YAML file with generation settings
- Execute
SD Workbench: Generate from the command palette
- Select a generation to execute
- View results in the Webview panel
Simple Example
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: 4
Commands
SD Workbench: Generate - Execute a single generation
SD Workbench: Generate Multiple - Execute multiple generations in sequence
Configuration
| Setting |
Default |
Description |
sdWorkbench.sdApiHost |
http://localhost:7860 |
Stable Diffusion WebUI API URL |
sdWorkbench.sdApiBasicAuthEnabled |
false |
Enable BASIC authentication for SD API |
sdWorkbench.sdApiUsername |
"" |
Username for BASIC authentication |
sdWorkbench.sdApiPassword |
"" |
Password for BASIC authentication |
sdWorkbench.wildcardsDirectory |
"" |
Dynamic Prompts wildcards directory |
sdWorkbench.imageGenerationFolder |
${activeYamlFileFolder}/${yamlName}/${generationName} |
Output folder for generated images |
Documentation
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...
License
MIT