Get Prediction
Retrieves detailed information about a specific prediction on the Replicate AI platform, including its status and output.
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 retrieve information for.
Options
This node does not have any configurable options.
Output
- Response - An object containing detailed information about the prediction, including:
- Output - The prediction's output/result
- CompletedAt - Timestamp when the prediction completed
- CreatedAt - Timestamp when the prediction was created
- Input - The input parameters used for the prediction
- Status - Current status of the prediction (starting, processing, succeeded, failed, canceled)
- Source - Source of the prediction
- URLs - URLs related to the prediction
- Version - Model version used for the prediction
How It Works
The Get Prediction node integrates with the Replicate AI platform to retrieve detailed information about a specific prediction. When executed, the node:
- Validates the provided Connection Id and Prediction Id
- Retrieves prediction information either through the Replicate API directly or via Robomotion's gateway (depending on connection settings)
- Returns a structured object with the prediction's details including status and output
Requirements
- A valid Replicate AI account
- A configured Replicate AI connection in Robomotion
- The Prediction Id of an existing prediction
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
- Prediction not found on the Replicate platform
Usage Notes
- This node is useful for checking the status of a prediction created with the Create Prediction node
- The Status field indicates whether the prediction is still processing, completed, or failed
- The Output field contains the actual result of the prediction when it's completed
- This node works with both direct Replicate API keys and Robomotion Credits
- Use this node in loops or conditional flows to wait for prediction completion
- The prediction must exist and be accessible to the authenticated user