Cancel a Replicate prediction
replicate_cancel_predictionCancel an in-progress prediction to stop long-running jobs, such as video generation or LLM tasks, that are no longer needed.
Instructions
Cancel an in-progress prediction by its ID. Useful for long-running async jobs (video, large LLM) when the user no longer needs the result.
Args:
prediction_id (string): ID of the prediction to cancel (returned by an earlier generate_* call).
Returns: PredictionSummary with updated status (typically "canceled").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prediction_id": "<prediction_id>"
},
"name": "replicate_cancel_prediction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prediction_id | Yes | ID of the prediction to cancel. |