Pricing API
POST https://api.wavespeed.ai/api/v3/predictions/delete
Delete one or more prediction jobs by their IDs.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer your_access_key |
| Content-Type | string | Yes | application/json |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| ids | array(string) | Yes | A list of prediction job IDs to be deleted |
Notes
-
Each ID represents a prediction job previously created.
-
Multiple prediction jobs can be deleted in a single request.
-
Invalid or non-existent IDs will be ignored by the system.
Example Request
curl --location 'https://api.wavespeed.ai/api/v3/predictions/delete' \
--header 'Authorization: Bearer your_access_key' \
--header 'Content-Type: application/json' \
--data '{
"ids": [
"247ae6a651",
"8f5f0bdc7b3742"
]
}'
Example Response
{
"code": 200,
"message": "success",
"data": {
"deleted_count": 3
}
}
Notes
-
This API permanently deletes prediction jobs.
-
Deleted prediction jobs cannot be recovered.
-
Only prediction jobs owned by the authenticated account can be deleted.
-
It is recommended to confirm job status before deletion (e.g., avoid deleting running jobs unless explicitly allowed).