API Reference

Erase text from image

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.

Model:remove-text
Credit:4
post/v1/images/remove-text

AuthorizationThis endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Parameters

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

FieldTypeDescription
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