Request

Make a POST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/image_editing/mask_creator' \

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 Attributes

key
string
required
Your API Key used for request authorization
specific_object
string
required
Link to the actual image
base64
boolean
true or false
webhook
string
Set an URL to get a POST API call once the image generation is complete.
track_id
string
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request.