Protected
_cacheProtected
optionsPrivate
_getA promise that resolves to the response containing the embeddings.
Private
_getRetrieves the extension list from the API.
A promise that resolves to the response containing the extension list.
Protected
_getProtected
_getPrivate
_getSDModelsRetrieves the SD models from the API.
A promise that resolves to the response containing the SD models.
Private
_getRetrieves the samplers from the API.
A promise that resolves to the response containing the samplers.
Protected
_setRetrieves the embeddings from the API.
A promise that resolves to the response containing the embeddings.
Retrieves the extension list from the API.
A promise that resolves to the response containing the extension list.
Retrieves the SD models from the API.
A promise that resolves to the response containing the SD models.
Retrieves the samplers from the API.
A promise that resolves to the response containing the samplers.
Asynchronously sends an image to the server for processing and returns the processed image and information.
The image to be processed.
The processed image and information.
Asynchronously creates a batch of image-to-image generations and returns the batch object.
The image to be processed.
The options for the batch generation.
The number of images to generate in each batch.
Optional
manual?: booleanWhether to manually run the batch generation.
The total number of batches to generate.
A promise that resolves to the batch object.
Pings the API to check the response time.
An object containing the success status, the response time in milliseconds, and an optional error object if the ping fails.
Asynchronously retrieves the progress of a task.
Optional
params: { Optional parameters for the progress request.
Optional
getWhether to include the current image in the response. Defaults to false.
A promise that resolves to the progress response object.
Asynchronously sends a text to the server for processing and returns the processed image and information.
The text to be processed.
The processed image and information.
Asynchronously creates a batch of text-to-image generations and returns the batch object.
The text to be processed.
The options for the batch generation.
The number of images to generate in each batch.
Optional
manual?: booleanWhether to manually run the batch generation.
The total number of batches to generate.
A promise that resolves to the batch object.
Asynchronously watches the progress of current task.
The options for the progress watcher.
Optional
getWhether to include the current image in the response. Defaults to false.
The interval in milliseconds to check the progress.
Optional
manual?: booleanWhether to manually start the progress watcher.
The progress watcher object.
Retrieves the embeddings from the API.