AI Models Prediction

Cancel Model Prediction

Cancel a running prediction by ID. Cancellation is best-effort for upstream providers; not every provider can interrupt work that is already running. When provider cancellation is supported and succeeds, the Eachlabs execution record is updated to cancelled; otherwise the original prediction may still complete or fail.

post/v1/prediction/{id}/cancel

Request

  • Base URL: https://api.eachlabs.ai
  • URL: https://api.eachlabs.ai/v1/prediction/{id}/cancel
  • Auth: HTTP bearer

Path parameters

idstring required

Prediction ID

Response

Prediction cancellation accepted

status'cancelled'

Cancellation status returned when the cancellation request succeeds

messagestring

Human-readable cancellation message

predictionIDstring

Unique prediction identifier

Example response

{
  "status": "cancelled",
  "message": "Prediction canceled successfully",
  "predictionID": "abc123-def456-ghi789"
}

Changes

No recorded changes to this operation across all 1 revision of this API.