Skip to main content
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 a POST 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
key
string
required

Your API Key used for authenticating your request

init_image
string<uri>
required

Image from which object will be removed

object_name
string
required

Object name on the image that needs to be removed

base64
boolean
default:false

Specifies whether the response should be returned as a base64 string. Defaults to false

webhook
string<uri> | null

A URL to receive a POST API call once the image generation is complete

track_id
integer | null

An ID returned in the API response, used to identify the webhook request

Response

Object removal response

  • Option 1
  • Option 2
status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the result in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of URLs to the generated images

Array of proxy URLs for the generated images

meta
object

Metadata about the generation process and parameters used

I