AI Text Removal Test: 4 Methods on the Same 3 Images
Last updated · Written and tested by The EraseTextFromImage team, who build and maintain this tool.
Before building our image text remover we wanted to know which AI approach actually removes text best, so we ran four methods on the same images and kept every output. Text detection was the same for all mask-based methods (Florence-2 OCR with regions, about $0.002-0.003 per image). Prices are fal.ai list prices on 13 October 2026. Feel free to cite or reuse these results with a link to this page.
Summary
| Method | Cost per image | Time | Keeps image size | Verdict |
|---|---|---|---|---|
| LaMa + letter-tight mask (+ flat fill) | about $0.0015-0.003 | 1-4 s | Yes, pixel for pixel outside the mask | Best overall: clean, faithful, cheap |
| LaMa + box mask | about $0.0015-0.003 | 1-4 s | Yes | Clean on open areas, but erases the edges of anything the box crosses |
| Object removal (mask) | $0.006 | 2-3 s (one 65 s cold start) | Yes | Fine on plain colour; punched a dark hole in the latte and invented fake letters on a date stamp |
| Generative text removal | $0.04 | 6-12 s | No (e.g. 1200x675 became 1392x752) | Very clean, but redraws the whole image and changes details |
Key findings
- The mask matters more than the model. The same inpainting model went from "wipes the cup rim" to clean when the mask followed the letters instead of a rectangle.
- Generative editors are the cleanest, and the least faithful. They rebuild the entire image, change its size, and alter small details elsewhere in the picture. That is fine for a meme and a problem for a product photo.
- Inpainting can leave "ghost" letters on flat colour. On plain backgrounds (screenshots, slides, studio product shots), filling with the surrounding colour beats any model.
- Small text needs a different mask. A colour-based letter mask misses parts of thin, small text like date stamps; a padded box works better there.
- Cost spans 25x. Mask inpainting costs a fraction of a cent; generative removal about 4 cents. At scale, that decides whether a free tier is possible.
Test 1: caption, subtitle and date stamp over a beach photo
White outlined title over a busy sky, a smaller subtitle, and an orange monospace date stamp over sand and grass.






Test 2: yellow promo text across a coffee cup
Bold text crossing latte art, the cup rim and a dark background, plus a serif caption on a wooden table.






Test 3: real printed text on a menu (rotated, small)
A real photo with about two dozen small, upside-down lines of menu text. No text was added.






Method
- Images: a public-domain beach photo and a CC0 coffee photo with text we added, and a CC0 photo of a printed menu (Wikimedia Commons). Resized to 1200 px wide.
- Detection: fal-ai/florence-2-large/ocr-with-region on a copy up to 1280 px.
- Letter-tight mask: per box, the commonest colour that differs from the box border, pixels within a colour distance of 110, dilated by 28% of the line height. Boxes shorter than 4% of the image use a padded rectangle.
- Models: fal-ai/lama, fal-ai/object-removal/mask (best_quality, 4 px expansion), fal-ai/image-editing/text-removal (default settings). One run each; no cherry-picking.
- Outputs for mask methods were composited over the original so only masked pixels changed; generative output is shown as returned.
Want to try it on your own image? Use the free image text remover, or read how the AI text remover works.