Replicate · Arazzo Workflow
Replicate Resolve Latest Version and Predict
Version 1.0.0
Look up a model, pick its latest version, run a prediction, and poll to completion.
View Spec
View on GitHub
Artificial IntelligenceMachine LearningImage GenerationLanguage ModelsModel DeploymentArazzoWorkflows
Provider
Workflows
resolve-version-and-predict
Resolve a model's latest version and run a prediction against it.
Reads the model object, lists its versions to grab the most recent version ID, submits a prediction for that version, and polls the prediction until it succeeds, fails, or is canceled.
1
getModel
models.get
Read the model object to confirm it exists and capture its latest version reference before listing versions.
2
listVersions
models.versions.list
List the model's versions, which are returned most recent first, and capture the newest version ID to run.
3
createPrediction
predictions.create
Create a prediction for the resolved version and supplied input. The prediction is returned in a starting state to be polled.
4
getPrediction
predictions.get
Retrieve the prediction state, repeating via the retry branch until the prediction reaches a terminal status.