# 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 %}


---

# Agent Instructions: 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:

```
GET https://docs.api.market/api-product-docs/capix-ai/object-remover.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
