性别变化API接口能够智能地将图片中人脸的性别进行转换,提供男变女、女变男选项,为用户带来创新的视觉体验和娱乐效果。
| 参数名称 | 类型 | 示例值 | 必须 | 描述 |
|---|---|---|---|---|
| content-type | String | application/x-www-form-urlencoded | 否 |
| 参数名称 | 类型 | 示例值 | 必须 | 描述 |
|---|---|---|---|---|
| img_url | String | https://showapi-pub-hangzhou.oss-cn-hangzhou.aliyuncs.com/api/2673/kj3eohj23ubxcvhnzkb40.jpg | 否 | 需要处理的原图URL地址,img_url和img_base64参数必须二选一 |
| img_base64 | String | - | 否 | 需要处理的原图base64字符串,img_url和img_base64参数必须二选一 |
| sex | String | 1 | 是 | 性别变换类型,男性为0,女性为1 |
showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见。