Remove Background (Basic plan)
Production server (Plus plan)
Production server (Plus plan)
POST
/v1/segment
请求参数
Header 参数
x-api-key
string
必需
Body 参数multipart/form-data
image_file
file
可选
format
enum<string>
Format
枚举值:
pngjpgwebp
默认值:
png
示例值:
png
channels
enum<string>
Channels
枚举值:
rgbaalpha
默认值:
rgba
示例值:
rgba
bg_color
string
Background Color
#FF00FF
) or a HTML color (red
, green
, etc.)size
enum<string>
Size
preview
(0.25 Megapixels), medium
(1.5 MP), hd
(4 MP) or full
(36 MP, can be slower for large images). Useful for mobile apps that need smaller images.枚举值:
previewmediumhdfull
默认值:
full
示例值:
full
crop
enum<string>
Crop
true
, the image returned is cropped to the cutout border. Transparent pixels are removed from the border枚举值:
truefalse
默认值:
false
示例值:
false
示例代码
返回响应
修改于 2024-04-17 06:52:37