Search for a Model and Run a Prediction
A 3-step recipe with Replicate. We can help you get access.
Recipe · 3 steps
Search for a Model and Run a Prediction
with Replicate · Artificial Intelligence Management
Search public models and run a prediction on the top match's latest version.
- 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.
- Create a prediction for the top result's latest version with the supplied input.
- Retrieve the prediction state, repeating via 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.
- query: The free text search query for public models.
- input: The model's input as a JSON object for the prediction.
For your developer
Arazzo workflow replicate:search-model-and-predict, 3 operations: models.search → predictions.create → predictions.get. Specs on APIs.io.