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 参数
collection_slug
string
必需
The slug of the collection, like super-resolution
or image-restoration
. See replicate.com/collections.
示例代码
返回响应
Success(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 1 年前