Replicate · Arazzo Workflow
Replicate Search for a Model and Run a Prediction
Version 1.0.0
Search public models by query, run a prediction on the top match's latest version, and poll it.
View Spec
View on GitHub
Artificial IntelligenceMachine LearningImage GenerationLanguage ModelsModel DeploymentArazzoWorkflows
Provider
Workflows
search-model-and-predict
Search public models and run a prediction on the top match's latest version.
Runs a model search, selects the latest version of the first result, submits a prediction against it, and polls the prediction until it succeeds, fails, or is canceled.
1
searchModels
models.search
Search public models with the supplied query and capture the latest version ID of the top result. The request body is a plain text query.
2
createPrediction
predictions.create
Create a prediction for the top result's latest version with the supplied input.
3
getPrediction
predictions.get
Retrieve the prediction state, repeating via the retry branch until the prediction reaches a terminal status.