Get Replicate Prediction Status
replicate_get_predictionRetrieve the current status and download outputs of a Replicate prediction using its prediction ID, typically after a previous call timed out.
Instructions
Retrieve the current status and (if available) outputs of a Replicate prediction by its ID. Use this when a previous generate_* or run_model call returned pending=true (timed out before completion).
Args:
prediction_id (string): The ID returned by a previous call.
download (boolean, default true): If the prediction has succeeded, download its outputs locally.
Returns: PredictionResult — same shape as replicate_generate_image. If still running, status will be "processing" or "starting" and pending will be true.
Typical flow:
Call replicate_generate_video → returns pending=true with prediction_id=abc123.
Wait ~1 minute.
Call replicate_get_prediction with prediction_id=abc123 → returns succeeded + URLs + local_paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| download | No | If the prediction has succeeded, whether to download outputs locally. | |
| prediction_id | Yes | Prediction ID returned by a generate_* or run_model call that timed out. |