capabilities.work

Create Prediction and Poll Until Complete

A 2-step recipe with Replicate. We can help you get access.

Recipe · 2 steps

Create Prediction and Poll Until Complete

with Replicate · Artificial Intelligence Management

Create a prediction from a model version and poll it until it finishes.

  1. Create a prediction for the supplied model version and input. Replicate returns the prediction in a starting state which must then be polled.
  2. Retrieve the current state of the prediction. This step is repeated by the retry branch until the prediction reaches a terminal status.
What you'll need to have ready
  • apiToken: Replicate API token used as a Bearer credential.
  • version: The ID of the model version that you want to run.
  • input: The model's input as a JSON object matching the version's input schema.
  • webhook: Optional HTTPS URL to receive webhook callbacks for the prediction.
For your developer

Arazzo workflow replicate:predict-and-poll, 2 operations: predictions.create → predictions.get. Specs on APIs.io.