SnapEditDocs
API HomeGet API Key
API Reference

Erase text from image

remove-text

Remove text from an image using a text mask. input_mask can come from the Detect Text API and may be manually modified before removal.

post/v1/images/remove-text

Credit cost: 4

Authorization β€” This endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart

Body

NameTypeStatusDescription
input_image
fileRequiredImage file or URL to erase text from.
input_mask
fileRequiredText mask image file or URL. Can be generated by the Detect Text API and modified manually.
erase_mode
stringOptionalErase mode.
normalsuperultra
(default: normal)

Responses

Text erased successfullySingleImageResponse

NameTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapapi.ai/v1/images/remove-text" \
  -H "api-key: YOUR_API_KEY" \
  -F "input_image=@./image.jpg" \
  -F "input_mask=@./image.png" \
  -F "erase_mode=normal"
Response
{
  "created": 1745827200,
  "data": [
    {
      "url": "https://outputs.snapapi.ai/outputs/abc123.png"
    }
  ]
}

Examples

(3 examples)

Input

Input 1Input 2

Output

Output