> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iacrea.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Decluttering

> Remove unwanted objects from your photos

# Decluttering

Virtually clean your spaces by automatically removing unwanted objects for more attractive real estate photos.

## How It Works

Our AI identifies and removes disruptive elements:

* Personal items
* Visual clutter
* Distracting elements
* Small space-consuming furniture

## Use Cases

* Clean real estate photos for listings
* Enhance spaces before viewings
* Prepare images for virtual home staging
* Visual cleaning before applying other transformations

## API

Integrate this feature into your applications:

```bash theme={null}
curl --request POST \
--url 'https://iacrea.com/api/declutter_total/generate' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "user_id": "your-user-id",
  "image_url": "https://example.com/image.jpg",
  "auto": true
}'
```

### Generate a Variation

You can also create variations from a previous generation:

```bash theme={null}
curl --request POST \
--url 'https://iacrea.com/api/declutter_total/generate-variation' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "user_id": "your-user-id",
  "generation_id": "previous-generation-id",
  "original_url": "https://example.com/image.jpg",
  "mask_url": "https://example.com/new-mask.png"
}'
```

### Retrieve Results

Get the results of a generation:

```bash theme={null}
curl --request POST \
--url 'https://iacrea.com/api/declutter_total/get' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "user_id": "your-user-id",
  "generation_id": "your-generation-id"
}'
```

## Tips

* Use well-lit photos for better results
* For complex objects, specify what you want to remove using a mask
* Combine with other features for optimal results
* Use the "auto" option for automatic detection of objects to remove
