Skip to content
EraseTextFromImage

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

MethodCost per imageTimeKeeps image sizeVerdict
LaMa + letter-tight mask (+ flat fill)about $0.0015-0.0031-4 sYes, pixel for pixel outside the maskBest overall: clean, faithful, cheap
LaMa + box maskabout $0.0015-0.0031-4 sYesClean on open areas, but erases the edges of anything the box crosses
Object removal (mask)$0.0062-3 s (one 65 s cold start)YesFine on plain colour; punched a dark hole in the latte and invented fake letters on a date stamp
Generative text removal$0.046-12 sNo (e.g. 1200x675 became 1392x752)Very clean, but redraws the whole image and changes details

Key findings

  1. 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.
  2. 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.
  3. Inpainting can leave "ghost" letters on flat colour. On plain backgrounds (screenshots, slides, studio product shots), filling with the surrounding colour beats any model.
  4. 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.
  5. 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 image with text before AI text removal: Test 1: caption, subtitle and date stamp over a beach photo
Original
Detected text mask (red) for Test 1: caption, subtitle and date stamp over a beach photo
Detected text, letter-tight mask
LaMa + letter-tight mask result for Test 1: caption, subtitle and date stamp over a beach photo
LaMa + letter-tight mask (Our pipeline (with flat fill))
LaMa + box mask result for Test 1: caption, subtitle and date stamp over a beach photo
LaMa + box mask (Rectangle around each line)
Object removal (mask) result for Test 1: caption, subtitle and date stamp over a beach photo
Object removal (mask) (fal-ai/object-removal)
Generative text removal result for Test 1: caption, subtitle and date stamp over a beach photo
Generative text removal (One click, no mask)

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 image with text before AI text removal: Test 2: yellow promo text across a coffee cup
Original
Detected text mask (red) for Test 2: yellow promo text across a coffee cup
Detected text, letter-tight mask
LaMa + letter-tight mask result for Test 2: yellow promo text across a coffee cup
LaMa + letter-tight mask (Our pipeline (with flat fill))
LaMa + box mask result for Test 2: yellow promo text across a coffee cup
LaMa + box mask (Rectangle around each line)
Object removal (mask) result for Test 2: yellow promo text across a coffee cup
Object removal (mask) (fal-ai/object-removal)
Generative text removal result for Test 2: yellow promo text across a coffee cup
Generative text removal (One click, no mask)

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.

Test image with text before AI text removal: Test 3: real printed text on a menu (rotated, small)
Original
Detected text mask (red) for Test 3: real printed text on a menu (rotated, small)
Detected text, letter-tight mask
LaMa + letter-tight mask result for Test 3: real printed text on a menu (rotated, small)
LaMa + letter-tight mask (Our pipeline (with flat fill))
LaMa + box mask result for Test 3: real printed text on a menu (rotated, small)
LaMa + box mask (Rectangle around each line)
Object removal (mask) result for Test 3: real printed text on a menu (rotated, small)
Object removal (mask) (fal-ai/object-removal)
Generative text removal result for Test 3: real printed text on a menu (rotated, small)
Generative text removal (One click, no mask)

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.