Skip to main content

Operations

Description

Operations represent asynchronous tasks in the system. They can be created, monitored, and updated. The system supports various operation types like image generation, uploading, upscaling, and more.

Methods

create

POST /operations

Body

NameTypeRequiredDescription
inputanyYesThe input data for the operation
metadataanyNoAdditional metadata for the operation
typeOperationTypeYesOperation type

For more information, check sdk.operations.create

get

Retrieves a single operation by its ID.

GET /operations/:id

For more information, check sdk.operations.get

list

Lists operations with optional pagination.

GET /operations

Query parameters

NameTypeRequiredDescription
lastIdstringNoThe ID of the last operation returned
limitnumberNoThe maximum number of operations to return

For more information, check sdk.operations.list

update

Updates an existing operation.

PUT /operations/:id

Body

NameTypeRequiredDescription
metadataanyNoAdditional metadata for the operation

For more information, check sdk.operations.update