PicWish API helps you automatically process a large number of images by removing the background and, if needed, replacing them with a solid background color. It is powered by AI and has the top-ranking algorithm with perfect image processing results.
| Parameters | Type | Required | Description | Remarks |
|---|---|---|---|---|
| image_file | file | No | Image file |
|
| image_base64 | string | No | Image encoding in base64 format will increase the file size by 33%, not recommended | |
| image_url | string | No | Image Download Address | |
| sync | int | No | Whether to return synchronously |
|
| type | string | No | Image type | Do not fill in, automatically recognize the type of cutout [default]
|
| return_type | int | No | Result return method |
|
| output_type | int | No | Return results for selected images |
Image cutout results(color image),mask black and white mask area |
| crop | int | No | Crop to edge |
|
| format | string | No | Image format |
|
| bg_color | string | No | Image background color | This parameter will take effect only when the format is JPG.
Solid background color, not filled,JPG defaults to white background, rgb hex format, for example
|
