AI Text Removal

The Image Editing API allows you to automatically remove any unwanted text from your images.

To remove text from the input image, set the argument textRemoval.mode with one of the following values:

  • ai.artificial: artificial text will be automatically removed. Artificial text includes all text added on an image through post-precessing, such as company name, watermarks, discounts, etc.

  • ai.natural: natural text will be automatically removed. Natural text includes text that naturally occurs in an image such as writing on buildings or clothings, road signs, etc.

  • ai.all: all text (natural and artificial) will be automatically removed.

If we take the example of this image:

Here are the results you will get for each possible value of textRemoval.mode:

(original image)




If you want to give it a try, here's the code to reproduce the examples above:

curl '' \
  --header 'x-api-key: YOUR_API_KEY' \
  --output with-text-removed.png

Last updated