Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default | 
|---|---|---|---|
| SD_AUTH_PASS | No | Password for basic auth (if enabled) | |
| SD_AUTH_USER | No | Username for basic auth (if enabled) | |
| SD_WEBUI_URL | Yes | URL of your Stable Diffusion WebUI instance | |
| SD_OUTPUT_DIR | Yes | Directory where generated images will be saved | |
| SD_UPSCALER_1 | No | Default primary upscaler model | R-ESRGAN 4x+ | 
| SD_UPSCALER_2 | No | Default secondary upscaler model | None | 
| SD_RESIZE_MODE | No | Default upscaling mode (0 for multiplier, 1 for dimensions) | 0 | 
| SD_UPSCALE_WIDTH | No | Default target width when resize_mode is 1 | 512 | 
| SD_UPSCALE_HEIGHT | No | Default target height when resize_mode is 1 | 512 | 
| SD_UPSCALE_MULTIPLIER | No | Default upscale multiplier when resize_mode is 0 | 4 | 
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description | 
|---|---|
| No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description | 
|---|---|
| No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description | 
|---|---|
| generate_image | Generate an image using Stable Diffusion | 
| get_sd_models | Get list of available Stable Diffusion models | 
| set_sd_model | Set the active Stable Diffusion model | 
| get_sd_upscalers | Get list of available upscaler models | 
| upscale_images | Upscale one or more images using Stable Diffusion |