---
title: Retouching and Object Removal from Image API
slug: inpaint
url: https://apyhub.com/dosvak/service/inpaint
provider: Dosvak LLC
tags: [image-inpainting, object-removal, blemish-removal, image-editing, masking]
auth: api_key
---

# Retouching and Object Removal from Image API

Remove masked objects or blemishes from an image using telea or ns inpainting. Send a source image and mask, get back a cleaned binary image.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Removes masked areas from an uploaded image by taking a source image and a black/white… | 100 |

## About

## What it does
Image Inpainting lets you remove masked objects or blemishes from an image and get a reconstructed version back. Send a source image plus a black-and-white mask image, and the service fills in the masked regions based on the surrounding pixels.

Use the `method` query parameter to choose the inpainting algorithm: `telea` or `ns`. You can also set `radius` to control how far the fill reaches, from 1 to 25, with a default of 5. The input image can be up to 20 MB.

The response is a binary image file, so it fits directly into workflows that need cleaned-up assets without manual retouching. Common uses include removing logos, fixing small defects, deleting stray objects from product photos, and preparing images for publishing or archival.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/inpaint
