Object removal
curl --request POST \
--url https://modelslab.com/api/v6/interior/object_removal \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"object_name": "<string>",
"base64": false,
"webhook": "<string>",
"track_id": 123
}
'{
"status": "success",
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Interior API
Object Removal
Remove objects from images using AI-powered object removal.
POST
/
interior
/
object_removal
Object removal
curl --request POST \
--url https://modelslab.com/api/v6/interior/object_removal \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"object_name": "<string>",
"base64": false,
"webhook": "<string>",
"track_id": 123
}
'{
"status": "success",
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Request
Make aPOST request to below endpoint and pass the required parameters in the request body.
curl
--request POST 'https://modelslab.com/api/v6/interior/object_removal' \
Body
json
{
"key":"",
"init_image": "https://i.pinimg.com/1200x/3f/5e/e3/3f5ee397f73d2ba20952d20698616fd3.jpg",
"object_name":"remove sofa from the image",
"base64": false,
"webhook": null,
"track_id": null
}
Body
application/json
Your API Key used for authenticating your request
Image from which object will be removed
Object name on the image that needs to be removed
Specifies whether the response should be returned as a base64 string. Defaults to false
A URL to receive a POST API call once the image generation is complete
An ID returned in the API response, used to identify the webhook request
Response
Object removal response
- Option 1
- Option 2
Available options:
success Time taken to generate the result in seconds
Unique identifier for the generation request
Array of URLs to the generated images
Array of proxy URLs for the generated images
Metadata about the generation process and parameters used
Was this page helpful?
⌘I

