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
Name | Type | Required | Description |
---|---|---|---|
input | any | Yes | The input data for the operation |
metadata | any | No | Additional metadata for the operation |
type | OperationType | Yes | Operation 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
Name | Type | Required | Description |
---|---|---|---|
lastId | string | No | The ID of the last operation returned |
limit | number | No | The maximum number of operations to return |
For more information, check sdk.operations.list
update
Updates an existing operation.
PUT /operations/:id
Body
Name | Type | Required | Description |
---|---|---|---|
metadata | any | No | Additional metadata for the operation |
For more information, check sdk.operations.update