图片推荐-AI生图


根据推广组获取算法预生成 AI 图,可按投放设备比例筛选。单次最多返回 200 张。

HTTP请求方式

POST

请求地址

https://api.e.360.cn/dianjing/picture/aiRecommend

Headers 请求参数
字段 类型 必须 描述
Content-Type string yes application/x-www-form-urlencoded
apiKey string yes 注册时分配到的api key,该参数作为HTTP HEAD字段传递。
accessToken string yes 访问token
Body 请求参数
字段 类型 必须 描述
groupIds json yes 推广组ID列表,JSON 数组,单次最多 20 个。例如 [1843860500] 或 [1843860500,1843860501]
deviceType string no 按图片宽高比筛选投放端。pc:保留 169:112、121:75(含倍数,如 338×224);mobile:保留 1:1。兼容 computer(等同 pc)。不传则不过滤比例
请求示例
curl -X POST \ 
--header 'apiKey:APIKEY' \ 
--header 'accessToken:ACCESSTOKEN' \ 
--data 'groupIds=[1843860500,1843860501]&deviceType=pc' \ 
'https://api.e.360.cn/dianjing/picture/aiRecommend'
返回结果
{
    "pictureList": [
        {
            "picUrl": "https://p0.ssl.qhimg.com/t118a9afd1a849c00ee506211cf.jpg",
            "md5Key": "f75dab3c9318a9dabed7c5e8334b9993",
            "width": 169,
            "height": 112,
            "desc": "AI 推荐图片",
            "source": 14,
            "recommendPicId": "2781195881"
        },
        {
            "picUrl": "https://p0.ssl.qhimg.com/t118a9afd1a6ec8052bcc3fd087.jpg",
            "md5Key": "087c2bc6a83206962c617caeb55e60de",
            "width": 121,
            "height": 75,
            "desc": "AI 推荐图片",
            "source": 14,
            "recommendPicId": "2781196137"
        }
    ]
}
返回结果说明
字段 类型 描述
pictureList array 推荐配图列表
picUrl string 图片 URL
md5Key string 图片 md5
width int 图片宽度
height int 图片高度
desc string 图片描述
source int 图片来源:算法预生成 AI
recommendPicId string 推荐配图 ID

results matching ""

    No results matching ""