> For the complete documentation index, see [llms.txt](https://developer.topazlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.topazlabs.com/image-models/removal-and-cleanup/image-object-matting.md).

# Image Object Matting

### Model Overview

**Image Object Matting** is a precision extraction model designed to isolate a specific object from an image while preserving fine, semantically-aware edge detail. Rather than separating a single foreground from its background, it identifies a target object based on its semantic meaning and extracts it cleanly, even from complex scenes containing many competing elements. Well suited for detailed compositing and selective editing workflows, it offers greater control in multi-object scenarios than standard background removal—while Background Removal is better suited to images with fewer objects where the entire foreground can be extracted in a single pass, Image Object Matting excels at pulling one chosen object out of a crowded frame.

### Key Capabilities

* Accurately extracts a specific object from its background and from other surrounding objects, with precise edge handling.
* Supports a select box to designate the target object in scenes containing massive numbers of objects.
* Recovers discontinuous regions of the same object based on semantic understanding, keeping separated parts of a single subject intact.

### 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](<https://api.topazlabs.com/image/v1/matting/async&#xA;&#xA;>)
  * `model` — `"Object"`

**Model-Specific Parameters**

* `box` — decimal, optional, default = \[0, 0, 1, 1]
  * The four numbers are the relative left/top/right/top edges, respectively (between 0 and 1). The more precise (tight) the box is, the better the expected result. When no box is passed, it will use \[0, 0, 1, 1] as default (i.e. the entire image), and might misunderstand the target object.

{% 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="/files/Q5eqy7x1Acfo1Eur2wZJ">/files/Q5eqy7x1Acfo1Eur2wZJ</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.topazlabs.com/image-models/removal-and-cleanup/image-object-matting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
