Mask creator
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/mask_creator \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"specific_object": "<string>",
"base64": true,
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Image Editing API
Mask Creator
This endpoint helps to mask an object on a given image.
POST
/
image_editing
/
mask_creator
Mask creator
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/mask_creator \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"specific_object": "<string>",
"base64": true,
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Request
curl
--request POST 'https://modelslab.com/api/v6/image_editing/mask_creator' \
POST request to below endpoint and pass the required parameters as a request body to the endpoint.
Body
json
{
"key": "your_api_key",
"init_image": "https://i.ibb.co/kMRK2mg/image2.jpg",
"specific_object": "the ball",
"track_id":null,
"webhook":null
}
Body
application/json
Response
200 - application/json
Mask creator response
- Option 1
- Option 2
- Option 3
Available options:
success Time taken to generate the image in seconds
Unique identifier for the generation request
Array of generated image URLs
Array of proxy image URLs
Metadata about the generation process
Was this page helpful?
⌘I

