获取标签集合
根据图片像素内容,获取关键词(标签)集合
接口地址(URI):api/ai/autotags
HTTP请求方式:POST
请求参数:
请求值字段 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
api-key | true | string | API用户鉴权 id |
authorization | true | string | Bearer+空格+access token值 |
img_url | true | string | 图片的URL地址,图片尺寸要求长边为400px |
title | false | string | 图片的标题,最高限100字 |
lang | false | string | 标签语言。默认为空则为中文标签,en仅输出英文,all输出中英文 |
请求参数示例example value:
Curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: text/html' --header 'api-key: e584cc62649ffc9ae10208740dc69b3d' --header 'authorization: Bearer ea17bff32f70c990a9a00e3ef3b1b448d06cf73be9843405fcf5ea145de4c206' -d 'img_url=http%3A%2F%2Fgoss1.vcg.com%2Feditorial%2Fvcg%2F400%2Fnew%2FVCG111159656232.jpg' 'http://api-v1.vcg.com/api/ai/autotags'
Request URL:http://api-v1.vcg.com/api/ai/autotags
Request URL:http://api-v1.vcg.com/api/ai/autotags
返回数据示例example value:
{
"status_code": 1,
"message": "ok",
"data": [
{
"id": "gc_38162",
"cnname": "注射器",
"value": "2.11"
},
{
"id": "gc_12047",
"cnname": "特写",
"value": "1.56"
}
]
}
"status_code": 1,
"message": "ok",
"data": [
{
"id": "gc_38162",
"cnname": "注射器",
"value": "2.11"
},
{
"id": "gc_12047",
"cnname": "特写",
"value": "1.56"
}
]
}
返回值字段 | 字段说明 |
---|---|
id | 关键词id |
cnname | 预测关键词(标签) |
value | 该标签的权重值 |