清除
POST
/v3/cleanup只需几秒钟即可轻松从图片中删除不需要的对象、缺陷、人物或文本。您可以在此处获取指导:https://novita.ai/get-started/UseCase_ImageEnhancement.html#_1-cleanup。
请求参数
Header 参数
Authorization
string
必需
Content-Type
string
必需
Body 参数application/json
image_file
string
必需
原始图像的base64,最大分辨率为16兆像素,最大文件大小为30 Mb。
mask_file
string
必需
掩模图像的base64,最大分辨率为16兆像素,最大文件大小为30 Mb。
extra
object
必需
掩模图像的base64,最大分辨率为16兆像素,最大文件大小为30 Mb。
response_image_type
string
返回图像的格式。
enterprise_plan
object
可选
示例
{
"image_file": "{{base64 encoded image}}",
"mask_file": "{{base64 encoded mask}}",
"extra": {
"response_image_type": "png",
"enterprise_plan": {
"enabled": false
}
}
}
示例代码
返回响应
成功(200)
请求有误(400)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
image_file
string
必需
image_type
string
必需
默认为“png”格式。
示例
成功示例
{
"image_file": "{{base64 of returned image_file}}",
"image_type": "png"
}
修改于 7 个月前