Get a collection of models
GET
/v1/collections/{collection_slug}Example cURL request:
curl -s \
-H "Authorization: Token <paste-your-token-here>" \
https://api.replicate.com/v1/collections/super-resolution
The response will be a collection object with a nested list of the models in that collection:
{
"name": "Super resolution",
"slug": "super-resolution",
"description": "Upscaling models that create high-quality images from low-quality images.",
"models": [...]
}
请求参数
Path Params
collection_slug
string
required
The slug of the collection, like super-resolution
or image-restoration
. See replicate.com/collections.
示例代码
Responses
Success(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 1 年前