Optional fetchImpl: { Optional init: RequestInitOptional init: RequestInitInitialise the provider.
Accepts baseURL / baseUrl / baseurl from the config bag and
auto-detects the backend by probing known endpoints.
Provider configuration. Must contain a baseURL string.
When no baseURL is supplied.
Generate one or more images from a text prompt.
Dispatches to the detected backend (A1111 or ComfyUI).
When the provider has not been initialised.
Edits an image using the A1111 img2img endpoint.
Routes to /sdapi/v1/img2img which accepts init_images (base64 array)
and denoising_strength to control how much the output deviates from the
source. When a mask is provided, A1111 performs inpainting on the white
regions of the mask.
Edit request with source image buffer and prompt.
Generation result containing the edited image(s).
When the provider is not initialised.
When the A1111 API returns an HTTP error.
Upscales an image using the A1111 extras single-image endpoint.
Routes to /sdapi/v1/extra-single-image which accepts a base64 image,
an upscaler name, and a resize factor.
Upscale request with source image and desired scale.
Generation result containing the upscaled image.
When the provider is not initialised.
When the A1111 API returns an HTTP error.
Lists available checkpoint models from an A1111 backend.
ComfyUI does not expose a simple model listing endpoint, so an empty array is returned in that case.
Readonly providerOptional default
MDN Reference