Replicate's API now has an endpoint for listing public models.
You can use it to discover newly published models, and to build your own tools for exploring Replicate's ecosystem of thousands of open-source models.
Here's an example that uses cURL and jq to fetch the URLs of the 25 most recently updated public models:
The response is a paginated JSON array of model objects:
We've added this new operation to the Replicate JavaScript client:
Then:
We've added this new operation to the Replicate Python client:
Then:
If you’re deploying your own public models to Replicate and want others to be able to discover them, make sure they meet the following criteria: