Replicate · Arazzo Workflow
Replicate Create Prediction and Poll Until Complete
Version 1.0.0
Run a model version, then poll the prediction until it reaches a terminal state.
View Spec
View on GitHub
Artificial IntelligenceMachine LearningImage GenerationLanguage ModelsModel DeploymentArazzoWorkflows
Provider
Workflows
predict-and-poll
Create a prediction from a model version and poll it until it finishes.
Submits a prediction request for the supplied model version and input, then repeatedly retrieves the prediction until its status is succeeded, failed, or canceled, returning the final output or error.
1
createPrediction
predictions.create
Create a prediction for the supplied model version and input. Replicate returns the prediction in a starting state which must then be polled.
2
getPrediction
predictions.get
Retrieve the current state of the prediction. This step is repeated by the retry branch until the prediction reaches a terminal status.