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").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prediction_id | Yes | ID of the prediction to cancel. |