对于输入的一张图片(可正常解码,且长宽比适宜),识别人体/物品的轮廓范围,与背景进行分离,适用于拍照背景替换、照片合成、身体特效等场景。
图像格式:PNG、JPEG、JPG 图像大小:不超过4 MB。 图像分辨率:大于40×40像素,小于1999×1999像素。 URL地址中不能包含中文字符。
showapi_res_body
curl -X POST "https://route.showapi.com/2669-11?appKey=YOUR_APPKEY" \ -H "content-type: application/x-www-form-urlencoded" \ -d "img_base64=&img_url=https%3A%2F%2Fshowapi-pub-hangzhou.oss-cn-hangzhou.aliyuncs.com%2Fbg_remove%2F20240117135841.png"
{ "showapi_res_error": "", "showapi_fee_num": 1, "showapi_res_code": 0, "showapi_res_id": "6184a2030de376ac379aa0c3", "showapi_res_body": { "ret_code": 0, "seg_img_url": "https://showapi-pub-shanghai.oss-cn-shanghai.aliyuncs.com/api/2699/out_food.jpg" } }
在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。
{ "mcpServers": { "showapi-mcp-2669": { "url": "http://www.showapi.com.cn/mcp/2669/{your_appKey}" } } }
标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。
客服热线请拨打
400-998-8033