Background Remover removes image backgrounds in a single step. Upload an image and the system will automatically detect the subject and cut out the background, returning a clean PNG with a transparent background—no masks or extra settings required.
- Before using the API, make sure you have obtained the API key. Refer to the link below for instructions on how to obtain it. API For API Key Settings
- All uploaded and processed videos will be automatically deleted after 24 hours. Please make sure to save the videos you need to your local storage in a timely manner
- API Name:AI Background Remover
- Request URL:
POST /api/unwatermark/api/v1/ai-background-remove/create-job - Request Method:POST
- API Description: Upload the image you want to remove the background from. The service supports images up to 5000×5000 pixels. On success, the response includes the credits used (
deduct_credits), the processed image URL (output_url), the original image URL (input_url), and the job ID (job_id).
| Header Name | Required | Example Value | Description |
|---|
| Content-Type | true | multipart/form-data | Specify request body format |
| ZF-API-KEY | true | xxxxxx...xxxxxx | User Authentication Token |
| Parameter Name | Type | Required | Description |
|---|
| original_image_file | file | true | Maximum supported image size is 5000×5000. |
curl -X POST https://api.unwatermark.ai/api/unwatermark/api/v1/ai-background-remove/create-job \
-H "ZF-API-KEY: xxxxxx...xxxxxx" \
-H "Content-Type: multipart/form-data;" \
-F "original_image_file=@/path/to/image.jpg" \
{
"code": 100000,
"result": {
"deduct_credits": 1,
"output_url": "https://xxxxx/123.png",
"input_url": "https://xxxx/original.png",
"job_id": "xxxxx"
},
"message": {
"en": "Image generated successfully.",
"zh": "图片生成成功。"
}
}
{
"code": 300001,
"result": {
"job_id": "xxx-xxx-xxx"
},
"message": {
"en": "Request Failure",
"zh": "提交任务失败"
}
}