This endpoint from PiAPI's Dream Machine API allows you to cancel tasks of luma that were created before a specified time point. Only tasks that have not yet started, i.e., tasks in the pending state, can be canceled. Once a task has entered the processing state, it can no longer be canceled.
Request
Query Params
created_before
integer
required
The time point at which you want to cancel tasks created before. It is Unix Timestamp.
Example:
1728570429
model
enum<string>
required
The model name of tasks you want to cancel. If you want to cancel tasks by all models(midjourney+suno+kling+luma), set to all