> For the complete documentation index, see [llms.txt](https://docs.api.market/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.api.market/api-product-docs/capix-ai/object-remover.md).

# Object Remover

[Try Demo](https://api.market/store/capix/inpainting)

### Details <a href="#details" id="details"></a>

**Endpoint**

```bash
POST https://prod.api.market/api/v1/capix/inpainting/inpainting
```

**Request Headers**

* Content-Type: application/json
* x-api-market-key: API\_TOKEN

**Request Body**

```json
{
  "image_url": "https://telegra.ph/file/1dbd57f8abf95e6ae2911.png",
  "mask_url": "https://telegra.ph/file/2402e4a3dd551cc0bca33.png"
}
```

* image\_url: URL of the image for which inpainting will be performed.
* mask\_url: URL of the mask image indicating areas to be inpainted.

### Result <a href="#result" id="result"></a>

<figure><img src="/files/ra56W2JgJIaEPOIv50H0" alt=""><figcaption></figcaption></figure>

### Code Examples <a href="#code-examples" id="code-examples"></a>

{% tabs %}
{% tab title="Curl" %}

```sh
curl -X 'POST' \
  'https://prod.api.market/api/v1/capix/inpainting/inpainting' \
  -H 'accept: application/json' \
  -H 'x-api-market-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F1dbd57f8abf95e6ae2911.png&mask_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F2402e4a3dd551cc0bca33.png'
```

{% endtab %}

{% tab title="Python" %}

```python
fetch('https://prod.api.market/api/v1/capix/inpainting/inpainting', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-api-market-key': 'API_KEY'
  },
  body: new URLSearchParams({
    'image_url': 'https://telegra.ph/file/1dbd57f8abf95e6ae2911.png',
    'mask_url': 'https://telegra.ph/file/2402e4a3dd551cc0bca33.png'
  })
});
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://prod.api.market/api/v1/capix/inpainting/inpainting');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-api-market-key: API_KEY',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F1dbd57f8abf95e6ae2911.png&mask_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F2402e4a3dd551cc0bca33.png');

$response = curl_exec($ch);

curl_close($ch);
```

{% endtab %}

{% tab title="NodeJs" %}

```javascript
import axios from 'axios';

const response = await axios.post(
  'https://prod.api.market/api/v1/capix/inpainting/inpainting',
  new URLSearchParams({
    'image_url': 'https://telegra.ph/file/1dbd57f8abf95e6ae2911.png',
    'mask_url': 'https://telegra.ph/file/2402e4a3dd551cc0bca33.png'
  }),
  {
    headers: {
      'accept': 'application/json',
      'x-api-market-key': 'API_KEY'
    }
  }
);
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
fetch('https://prod.api.market/api/v1/capix/inpainting/inpainting', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-api-market-key': 'API_KEY'
  },
  body: new URLSearchParams({
    'image_url': 'https://telegra.ph/file/1dbd57f8abf95e6ae2911.png',
    'mask_url': 'https://telegra.ph/file/2402e4a3dd551cc0bca33.png'
  })
});
```

{% endtab %}
{% endtabs %}
