It puts a local Stable Diffusion instance behind plain requests — describe the picture, name the checkpoint, upscale the frame you keep — with the files landing in a directory you control.
A Node server in front of a Stable Diffusion WebUI instance (AUTOMATIC1111 or ForgeUI) that was started with its API enabled. Generation, model switching and upscaling all run on your own WebUI, and finished images are written to a directory you choose.
- generate_image runs text-to-image against your WebUI, with the controls you would use there: negative_prompt, sampler_name, scheduler_name, cfg_scale, batch_size and restore_faces
- get_sd_models lists the checkpoints that instance has, and set_sd_model switches to one by name
- get_sd_upscalers lists the upscalers available on it
- upscale_images enlarges finished images, either by multiplier or to fixed dimensions, depending on resize_mode
- Results are written to output_path as files rather than returned as chat attachments
Node, and a reachable Stable Diffusion WebUI started with its API enabled. The server needs SD_WEBUI_URL and SD_OUTPUT_DIR; SD_AUTH_USER and SD_AUTH_PASS only if your WebUI has basic auth turned on. Defaults for resize mode, multiplier, target size and the two upscalers can be preset in the same config block.
One command plus a key — npx -y image-gen, then supply credentials
