- 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 generated images will be automatically deleted after 24 hours. Please make sure to save the images you need to your local storage in a timely manner.
- Each task creation consumes
Parameter | Description |
---|
Authorization | Your API Key used for request authorization. |
--request POST https://developer.remaker.ai/api/remaker/v1/remove-watermark/create-job
Parameter | Description |
---|
original_image_file | The image from which the watermark should be removed. This is the original image with the watermark visible. |
mask_image_file | A binary image used to specify the watermark area. The watermark region is marked in white (255), and the rest of the image is black (0). This mask helps identify where the watermark is located for removal. |
Example | |
import requests
url = 'https://developer.remaker.ai/api/remaker/v1/remove-watermark/create-job'
headers = {
'accept': 'application/json',
'Authorization': 'your token',
}
files = {
'original_image_file': open('original_image.png', 'rb'),
'mask_image_file': open('mask_image.png', 'rb')
}
response = requests.post(url, headers=headers, files=files)
print(response.json()) # Print the response content
{
"code": 100000,
"result": {
"job_id": "yerjh1stdsrgc0ckns4vfawpjg"
},
"message": {
"en": "Request Success."
}
}
--request GET https://developer.remaker.ai/api/remaker/v1/remove-watermark/{job_id}
Parameter | Description |
---|
job_id | job_id returned by create task |
import requests
url = 'https://developer.remaker.ai/api/remaker/v1/remove-watermark/49y6msgtc1rga0cknrgs977drg'
headers = {
'accept': 'application/json',
'Authorization': 'your token',
}
response = requests.get(url, headers=headers)
print(response.json()) # Print the response content
{
"code": 100000,
"result": {
"output": [
"https://image.remaker.ai/datarm7/removebg/2024-12-10/output/ffc78a12-d275-4814-881a-bff8016a9ee0.png"
]
},
"message": {
"en": "Request Success."
}
}