# Image Object Matting

### Model Overview

**Image Object Matting** is designed for old, scanned, or damaged images, using a context-aware algorithm to eliminate surface damage, dust, scratches and obstructions while seamlessly blending reconstructed areas into the surrounding image.

### Key Capabilities

* Removes scratches, dust, surface damage, and unwanted objects using generative reconstruction
* Supports both automatic and brush-based workflows for flexible cleanup
* Seamlessly blends repaired areas to preserve natural image structure

### Model Pricing

<table data-header-hidden data-full-width="false"><thead><tr><th width="119.84765625">Text</th><th width="60.390625" data-type="number">Number</th><th width="59.5390625" data-type="number"></th><th width="60.0859375" data-type="number"></th><th width="60.265625" data-type="number"></th><th width="59.94140625" data-type="number"></th><th width="59.5390625" data-type="number"></th><th width="60.34375" data-type="number"></th><th width="59.9296875" data-type="number"></th><th width="59.828125" data-type="number"></th><th width="59.5078125" data-type="number"></th></tr></thead><tbody><tr><td><code>Output MP</code></td><td>1</td><td>4</td><td>8</td><td>16</td><td>24</td><td>32</td><td>40</td><td>50</td><td>64</td><td>100</td></tr><tr><td><code>Credits</code></td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>2</td><td>2</td><td>3</td><td>3</td><td>5</td></tr></tbody></table>

### Getting Started

**Endpoint**

* <https://api.topazlabs.com/image/v1/matting/async>
  * `model` — `"Object"`

<details>

<summary><strong>Endpoint-Specific Parameters</strong></summary>

`mode` — Alpha or segmentation, defaults to segmentation

* Alpha provides the binary mask of the object
* Segmentation provides the cropped object as an RGBA output

Any parameters that are not explicitly provided are configured to our default values. Extra parameters provided that are not supported are ignored.

</details>

**Model-Specific Parameters**

* No Parameters

{% hint style="info" %}
For the highest-quality outputs, we recommend sending images with a single, main object in the foreground.
{% endhint %}

### Examples

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td align="center">Click to view</td><td><a href="https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fobject%20input.png&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fobject%20output.avif&#x26;src2label=After&#x26;zoom=1">https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fobject%20input.png&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fobject%20output.avif&#x26;src2label=After&#x26;zoom=1</a></td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2Fq8jRhySNhAjTLS3ZDbv0%2FObject_Matting_slider.jpg?alt=media&#x26;token=eb72f51c-5ec7-400d-a5fb-2a459d0b7282">Object_Matting_slider.jpg</a></td></tr></tbody></table>
