erase_text
Remove text from images and reconstruct the background. Use an optional mask to target specific areas or let the tool detect all text automatically.
Instructions
Erase lettering from a photo or graphic and rebuild the background. Omit the mask to detect all text. White in a mask (channel >127) marks what to erase. Spends 1 EraseText credit only on success. Failures (including 402/504) are not charged. Create a key at https://erasetext.com/account/#developer. Buy prepaid API credits at https://erasetext.com/docs/api/#prepaid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format. Default webp. | |
| mask_url | No | Optional mask URL. Same aspect as the image. White = erase. | |
| image_url | No | Public HTTP(S) URL of the source image. | |
| paste_back | No | Keep original pixels outside the erased area. Default true. | |
| resolution | No | Short-edge target for the model. Default 512. | |
| return_boxes | No | When no mask, include OCR quads. Ignored if a mask is sent. | |
| mask_file_b64 | No | Optional mask as base64. | |
| image_file_b64 | No | Source image as base64 (raw or data URL). Use when you have bytes, not a URL. |