# AIGC-图片去背景接口(openai-cv-service-smzdm-com/)
# 基本信息
Path: /pictures/rembg_img
Method: POST
接口描述: 抠图服务,去除图片背景
# 请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 |
Body
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
img_url | string | 必须 | 图片URL,只支持URL | ||
model | string | 非必须 | 模型类型 | ||
is_mask | string | 必须 | 是否需要蒙版,1需要0不需要 | ||
from | string | 必须 | 来源 | ||
upload_img_config | object | 必须 | 传图配置 | ||
├─ channel | string | 必须 | 上传频道 | ||
├─ type | string | 必须 | 上传类型 | ||
├─ oper | string | 必须 | 操作人 |
# 返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
error_code | number | 非必须 | |||
error_msg | string | 非必须 | |||
data | object | 非必须 | |||
├─ img | string | 非必须 | 图片地址 | ||
├─ mask | string | 非必须 | 蒙版地址 | ||
total_seconds | number | 非必须 | 处理时间 | ||
upload_img_seconds | number | 非必须 | 上传时间 |