⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · Try Now
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/object_removal \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"mask_image": "<string>",
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}This endpoint helps to remove object from an existing image.
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/object_removal \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"mask_image": "<string>",
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
POST request to below endpoint and pass the required parameters as a request body to the endpoint.
--request POST 'https://modelslab.com/api/v6/image_editing/object_removal' \
{
"key": "your_api_key",
"init_image": "https://assets.modelslab.ai/generations/cc002943-8327-4a0e-899e-d0567527f84b",
"mask_image": "https://assets.modelslab.ai/generations/e0cc8b55-9250-43eb-8764-9040e1eeb1ec",
"track_id":null,
"webhook":null
}
Object removal response
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?