Skip to main content

Cancel a Prediction

Cancels a running prediction on the Replicate AI platform.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Connection Id - The identifier of the Replicate AI connection to use.
  • Prediction Id - The unique identifier of the prediction to cancel.

Options

This node does not have any configurable options.

Output

  • Response - The response object from the Replicate API after attempting to cancel the prediction.

How It Works

The Cancel Prediction node integrates with the Replicate AI platform to cancel a running prediction. When executed, the node:

  1. Validates the provided Connection Id and Prediction Id
  2. Makes an HTTP POST request to the Replicate API endpoint to cancel the specified prediction
  3. Returns the response from the API as the output

Requirements

  • A valid Replicate AI account
  • A configured Replicate AI connection in Robomotion
  • The Prediction Id of a running prediction to cancel

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Connection Id
  • Empty or invalid Prediction Id
  • Invalid connection credentials
  • Network issues when communicating with the Replicate API
  • API errors from the Replicate platform

Usage Notes

  • The Prediction Id must correspond to a currently running prediction
  • Canceling a prediction that has already completed or been canceled will result in an API error
  • The response will contain information about whether the cancellation was successful
  • Robomotion Credits cannot be used with this node - a direct Replicate API key is required