Protected
_cacheProtected
optionsPrivate
_getA promise that resolves to the control types.
Protected
_getProtected
_getPrivate
_getPrivate
_getRetrieves the module list response from the controlnet API.
A promise that resolves to the module list response.
Private
_getProtected
_setDetects objects in an image using the controlnet API.
The parameters for the detection.
A promise that resolves to the detection response.
Retrieves the details of all modules from the cache if caching is enabled, otherwise makes a request to the controlnet API.
A promise that resolves to an object containing the details of all modules.
Retrieves the control types from the controlnet API.
A promise that resolves to the control types.
Retrieves the detail of a module from the cache if caching is enabled, otherwise makes a request to the controlnet API.
The name of the module to retrieve the detail for.
A promise that resolves to the module detail.
Retrieves a list of modules from the cache if caching is enabled, otherwise makes a request to the controlnet API.
A promise that resolves to an array of module names.
Asynchronously sends an image to the server for processing and returns the processed image and information.
The options for the image to image processing.
The parameters for the image to image processing.
The control net units for the image to image processing.
The processed image and information.
If no image is returned from the server.
Asynchronously creates a batch of image-to-image generations and returns the batch object.
The parameters for the batch generation.
The options for the batch generation.
Optional
manual?: booleanThe image processing parameters.
The control network units for the batch generation.
A promise that resolves to the batch object.
Asynchronously sends a text to the server for processing and returns the processed image and information.
The options for the text to image processing.
The parameters for the text to image processing.
The control net units for the text to image processing.
The processed image and information.
If no image is returned from the server.
Asynchronously sends a text to the server for processing and returns the processed image and information.
The options for the text to image processing.
The options for the text to image processing.
Optional
manual?: booleanThe parameters for the text to image processing.
The control net units for the batch generation.
A promise that resolves to the batch object.
Retrieves the control types from the controlnet API.