生图(视频)配置
请求URL:
/imageVideoConfig
请求方式:
- POST
header:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| Authorization | 是 | string | 授权token |
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appId | 是 | string | 无 |
| udid | 是 | string | 无 |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"aspectRatioList": [
{
"width": 992,
"height": 558,
"title": "16:9",
"id": 1
},
{
"width": 558,
"height": 992,
"title": "9:16",
"id": 2
},
{
"width": 992,
"height": 992,
"title": "1:1",
"id": 3
},
{
"width": 744,
"height": 992,
"title": "3:4",
"id": 4
},
{
"width": 992,
"height": 661,
"title": "3:2",
"id": 5
},
{
"width": 661,
"height": 992,
"title": "2:3",
"id": 6
}
],
"imageCost": 1,
"qualityList": [
{
"id": 1,
"title": "Base",
"steep": 20
},
{
"id": 2,
"title": "High",
"steep": 25
},
{
"id": 3,
"title": "Best",
"steep": 30
}
],
"videoCost": 50
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | Struct | 数据 |
| - aspectRatioList | Array | 宽高比列表 |
| -- id | int | ID |
| -- title | string | 标题 |
| -- width | int | 宽度 |
| -- height | int | 高度 |
| - qualityList | Array | 质量列表 |
| -- id | int | ID |
| -- title | string | 标题 |
| -- steep | int | 步数 |
| - imageCost | int | 生图价格 |
| - videoCost | int | 生视频价格 |
备注 错误码: 510 系统异常 800 参数错误