接口地址:https://api.zjzapi.com/idcardv5/make
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:调用免费,可使用接口返回的"pic_id"获取无水印证件照
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| item_id | 是 | int | 规格id,《查看规格列表》 |
| image | 是 | string | base64后的图片内容,大小不超过8M。 |
| colors | 否 | string | 颜色名称,支持:blue、white、red、tint、grey、gradient、dark_blue,不填写返回所有底色 |
| enhance | 否 | int | 人像增强,默认已支持,不需要可传参数0 |
| beauty | 否 | int | 美颜,默认已支持,不需要可传参数0 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"list": {
"white": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg"
}
},
"code": 0,
"msg": "success"
}
接口地址:https://api.zjzapi.com/idcardv5/all
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:获取成功扣除0.6元
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| item_id | 是 | int | 规格id,《查看规格列表》 |
| image | 是 | string | base64后的图片内容,大小不超过8M。 |
| colors | 否 | string | 颜色名称,支持:blue、white、red、tint、grey、gradient、dark_blue |
| enhance | 否 | int | 人像增强,默认已支持,不需要可传参数0 |
| beauty | 否 | int | 美颜,默认已支持,不需要可传参数0 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"list": {
"white": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg"
}
},
"code": 0,
"msg": "success"
}
接口地址:https://api.zjzapi.com/idcardv5/bg
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:调用免费,可使用接口返回的"pic_id"获取无水印证件照。
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| image | 是 | string | base64后的图片内容,大小不超过3M,分辨率不超过2000px。 |
| color | 否 | string | 颜色值(#FFFFFF);或颜色名称(blue、white、red) |
| enhance | 否 | int | 人像增强,默认已支持,不需要可传参数0 |
| beauty | 否 | int | 美颜,默认已支持,不需要可传参数0 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"list": {
"white": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg"
}
},
"code": 0,
"msg": "success"
}
接口地址:https://api.zjzapi.com/idcardv5/diy
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:调用免费,可使用接口返回的"pic_id"获取无水印证件照。
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| image | 是 | string | base64后的图片内容,大小不超过8M。 |
| width_px | 是 | int | 像素尺寸-宽,不超2000px |
| height_px | 是 | int | 像素尺寸-高,不超2000px |
| color | 是 | string | 颜色值(#FFFFFF);或颜色名称(blue、white、red) |
| file_size_min | 否 | int | 文件最小(kb),最小5kb |
| file_size_max | 否 | int | 文件最大(kb),最大600kb |
| dpi | 否 | int | 分辨率:默认为300 |
| enhance | 否 | int | 人像增强,默认已支持,不需要可传参数0 |
| beauty | 否 | int | 美颜,默认已支持,不需要可传参数0 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"list": {
"white": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg"
}
},
"code": 0,
"msg": "success"
}
接口地址:https://api.zjzapi.com/idcardv5/make
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:调用免费,可使用接口返回的"pic_id"获取无水印证件照
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| item_id | 是 | int | 规格id,《查看规格列表》 |
| image | 是 | string | base64后的图片内容,大小不超过8M。 |
| colors | 否 | string | 颜色名称,支持:pose_black、pose_blue、pose_darkgray、pose_gray、pose_white,不填写返回所有底色 |
| enhance | 否 | int | 人像增强,默认已支持,不需要可传参数0 |
| beauty | 否 | int | 美颜,默认已支持,不需要可传参数0 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"list": {
"pose_blue": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg"
}
},
"code": 0,
"msg": "success"
}
接口地址:https://api.zjzapi.com/idcardv5/beauty
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:对制作出来的证件照进行美颜,不支持换装后再美颜。
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| pic_id | 是 | int | 制作接口返回的“pic_id”,有效期50分钟。 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"list": {
"blue": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg"
}
},
"code": 0,
"msg": "success"
}
接口地址:https://api.zjzapi.com/idcardv5/clothes
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:调用免费,可使用接口返回的"pic_id"获取无水印证件照。
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| pic_id | 是 | string | 制作接口返回的“pic_id” |
| color | 是 | string | 颜色名称 |
| clothes | 是 | string | 服装key,《查看服装列表》 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"pic": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg",
"clothes_key": "blue-child_09"
},
"code": 0,
"msg": "success"
}
接口地址:https://api.zjzapi.com/idcardv5/clothe
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:调用免费,可使用接口返回的"pic_id"获取无水印证件照。
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| pic_id | 是 | string | 制作接口返回的“pic_id” |
| clothe | 是 | string | 服装key,《查看服装列表》 |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"list": {
"blue": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg"
}
},
"code": 0,
"msg": "success"
}
接口地址:https://api.zjzapi.com/idcardv5/get
请求方式:POST(application/x-www-form-urlencoded)
返回格式:json
接口费用:获取成功扣除0.6元,重复获取不扣费。
| 名称 | 必填 | 类型 | 说明 |
|---|---|---|---|
| key | 是 | string | 应用的key |
| pic_id | 是 | string | 制作接口返回的pic_id,有效期50分钟。 |
| clothes_key | 否 | string | 换装接口使用的clothe(即将停用,请使用新字段) |
| clothe | 否 | string | 换装接口使用的clothe |
| 名称 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 返回说明 |
| data | array | 数据集 |
{
"data": {
"pic_id": "9244614",
"list": {
"white": "http://demo.com/pic/20200511/913191c8906ce81a2107d6ff5157c014/white.jpg"
}
},
"code": 0,
"msg": "success"
}