2 credits per call

Text Removal API

Erase captions, overlays, timestamps and burned-in labels from images programmatically. Detection is automatic — and if there is no text in the image, you are not charged.

  • REST · JSON
  • No watermark
  • Nothing stored
endpoint

POST /v1/remove-text

Base URL
https://app.imggen.ai
Auth
Authorization: Bearer sk_live_…
Cost
2 credits
Input
JPEG (JPG), PNG and WebP · max 25 MB

01 — Overview

What is the Text Removal API?

The ImgGen AI text removal API is a REST endpoint that locates text in an image and removes it, reconstructing the background where the characters were. It handles captions, overlays, timestamps, and burned-in labels without a mask. If the model finds no text, the request returns 422 and no credits are deducted.

It is one of seven endpoints in the ImgGen AI image editing API, all of which share a single API key, a single base URL, and the same request and response shape. If you also need this capability in a browser rather than from code, the same AI model powers the Image Text Remover tool.

02 — Request

Request parameters

Send a POST request to https://app.imggen.ai/v1/remove-text, authenticated with an API key in the Authorization header.

Parameters accepted by this endpoint
ParameterTypeRequiredDefaultDescription
imagefileREQUIREDThe image to clean. Accepts JPEG (JPG), PNG and WebP, up to 25 MB.
03 — Integrate

How do I integrate the remove text from image API?

Create an API key in your ImgGen account, set it as an environment variable, and call the endpoint. Here is the same request in cURL, Node.js and Python.

curl --request POST \
  --url 'https://app.imggen.ai/v1/remove-text' \
  --header 'Authorization: Bearer sk_live_YOUR_API_KEY' \
  --form image=@/path/to/photo.jpg
04 — Response

Response

A successful call returns JSON. The result is base64-encoded — decode it before writing to disk or object storage. Every successful response also carries an X-Credit-Remaining header with your balance after the call.

{
  "success": true,
  "message": "Text removed successfully",
  "image": "iVBORw0KGgoAAAANSUhEUgAA...SUVORK5CYII="
}
05 — Limits

Limits and behaviour worth knowing

The endpoint accepts JPEG (JPG), PNG and WebP with a 25 MB maximum file size, and responds synchronously within 60 seconds — there is no job to poll and no webhook to configure.

No text, no charge

If the model detects no text in the image, the endpoint returns 422 VALIDATION_ERROR and deducts nothing. You can point it at a mixed set of images without paying for the clean ones.

Generative fill, not blur

The area behind the characters is reconstructed to match its surroundings rather than smudged, so the result holds up against detailed backgrounds.

Automatic detection

There is no region or bounding-box parameter — the model finds the text itself, which is what makes the endpoint safe to run unattended.

06 — In production

What is the remove text from image API used for?

Where teams put this endpoint into production to process images programmatically, at scale.

Localization pipelines

Strip burned-in source-language copy from marketing images so a localized version can be composited for each market.

Marketplace listing hygiene

Remove promotional overlays and competitor branding that sellers add to product photos, enforcing catalog rules automatically.

Archive cleanup

Clear timestamps and camera labels burned into scanned or legacy photography before it enters a media library.

Template reuse

Recover a clean base image from a finished creative so the same artwork can carry new copy.

07 — Cost

How much does the remove text from image API cost?

Each successful call costs 2 credits, so your effective cost per image follows whichever plan you are on. Credits come from your plan and are shared across every endpoint and the web editor, so you are not buying a separate quota per tool. A call that fails is refunded automatically. See the full pricing page for details.

ImgGen AI plans and API access
PlanPriceCreditsAPI
Free$050 one-time free creditsNo API access
Starter$9.99 / month400 credits / monthAPI access included
Pro$29.99 / month1,400 credits / monthAPI access + priority support
EnterpriseCustomCustom volumeDedicated infrastructure

Credit costs and limits last verified 2026-08-27.

08 — Related

Teams using the remove text from image API usually reach for these next.

Watermark Removal APIBackground Removal APIImage Text Remover (web tool)All API endpoints

Also available: Image Upscaling, Photo Restoration, Photo Colorization, Image Generation.

FAQ

Text Removal API FAQ

It is an HTTP endpoint that detects written characters in a photo and erases them, filling in the background that was hidden behind them. It is the programmatic equivalent of manually cloning text out in an editor, except it runs in a second and needs no human to mark the region.

Get started

Start calling the Text Removal API

One key unlocks all seven endpoints. No watermark, full commercial rights, and nothing you send is stored after the response is returned.

Get your API key