Represents a client for interacting with the AUTOMATIC1111 Stable Diffusion Web UI API.
Extends the Https.Client class to provide methods for making HTTP requests.
Remarks
This client automatically sets the base URL and headers for the API requests.
It also supports basic authentication using a username and password.
Represents a client for interacting with the AUTOMATIC1111 Stable Diffusion Web UI API. Extends the
Https.Client
class to provide methods for making HTTP requests.Remarks
This client automatically sets the base URL and headers for the API requests. It also supports basic authentication using a username and password.
Example
Param: options
Configuration options for the client.
Param: options.baseUrl
The base URL for the API. If not provided, it will be read from the environment variable
SD_API_URL
.Param: options.username
The username for basic authentication. If not provided, it will be read from the environment variable
SD_API_USERNAME
.Param: options.password
The password for basic authentication. If not provided, it will be read from the environment variable
SD_API_PASSWORD
.