The location of the endpoint.
Optional
debug?: booleanOptional
secure?: booleanGenerate a new job (automatic handling of submission, callbacks and final cleanup)
A handle for the newly scheduled job.
Cancel this job, regardless of its current progression.
Optional
fn: (() => void | Promise<void>)Optional
fn: (() => void | Promise<void>)Optional
fn: ((errors: unknown) => void | Promise<void>)Optional
fn: (() => void | Promise<void>)Optional
fn: ((node: number, done: boolean) => void | Promise<void>)Schedule a new request for execution.
The JSON of the complete workflow for submission.
Optional
extra_Optional
last_Optional
last_Endpoint response with information like the ID.
Generate a new job (automatic handling of submission, callbacks and final cleanup)
The full JSON workflow to submit as part of the request.
List of files to be uploaded as resources (and their naming mapping)
All the custom callbacks defined for the lifetime of this job
Optional
onOptional
onOptional
onOptional
onOptional
onA handle for the newly scheduled job.
A blob containing the image binary to be uploaded
Optional
overwrite?: booleanIf true, it overwrites the resource (it defaults to false)
Optional
subfolder?: stringIf set, it determines a subfolder where to place the image
Optional
type?: ComfyResTypeIt determine the resource types, like temporary, input or output
A blob containing the mask binary to be uploaded
Optional
subfolder?: stringOptional
type?: ComfyResTypeOptional
overwrite?: booleanIf true, it overwrites the resource (it defaults to false)
Optional
subfolder?: stringIf set, it determines a subfolder where to place the image
Optional
type?: ComfyResTypeIt determine the resource types, like temporary, input or output
Retrieve a file from the ComfyUI backend or it provides a preview for images.
The target file name
Optional
channel?: "rgba" | "rgb" | "a"For images, limit the result to some channels
Optional
format?: "jpg" | "png" | "webp"For images, set the preview format. If left empty the full file will be requested.
Optional
quality?: numberOptional
subfolder?: stringSubfolder where it is located.
Optional
type?: ComfyResTypeIt determine the resource types, like temporary, input or output
The blob with the image content.
A comfyui client, exposing all its REST endpoints.