List public models
Get a paginated list of public models.
Example cURL request:
curl -s \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
https://api.replicate.com/v1/models
The response will be a pagination object containing a list of model objects.
See the models.get docs for more details about the model object.
Sorting
You can sort the results using the sort_by and sort_direction query parameters.
For example, to get the most recently created models:
curl -s \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
"https://api.replicate.com/v1/models?sort_by=model_created_at&sort_direction=desc"
Available sorting options:
- model_created_at: Sort by when the model was first created
- latest_version_created_at: Sort by when the model's latest version was created (default)
Sort direction can be asc (ascending) or desc (descending, default).
get/models
Query parameters
sort_by'model_created_at' | 'latest_version_created_at'
Field to sort models by. Defaults to latest_version_created_at.
sort_direction'asc' | 'desc'
Sort direction. Defaults to desc (descending, newest first).
Response
Success