Heurist SDK
ComfyUI Workflow
Execute ComfyUI workflows such as image upscaling and video generation.
In Development: This feature is in development. Not ready for use.
Example Request
Example Response
Parameters
Type: UpscalerTask
Property | Type | Required | Description |
---|---|---|---|
consumer_id | string | true | The ID of the consumer initiating the task. Preferably use UUID to uniquely identify the consumer. This is used to allocate computing resource for this consumer. |
image_url | string | true | The URL of the image to be upscaled. |
job_id_prefix | string | false | An optional prefix for the job ID. Default is “sdk-workflow”. |
timeout_seconds | number | false | An optional timeout for the task in seconds. If the task is not finished within the timeout, it will be canceled. |
Returns
Type: WorkflowTaskResult
Property | Type | Required | Description |
---|---|---|---|
task_id | string | true | The ID of the executed task. |
status | enum | true | The status of the task. |
result | any | false | The result of the task, if available. |
Types
UpscalerTask
A class representing an upscaler task, extending the abstract WorkflowTask
class.
WorkflowTaskType
An enum representing the types of workflow tasks.
Additional Methods
executeWorkflow
Executes a workflow task without waiting for the result.
Returns a Promise that resolves to the task ID.
queryTaskResult
Queries the result of a previously executed task.
Returns a Promise that resolves to the task result.
cancelTask
Cancels a previously submitted task.
Returns a Promise that resolves to the task ID and message.