Skip to main content
Glama

EraseText API

Official docs, OpenAPI spec, Python SDK, and agent tools for EraseText — a specialised AI text remover for photos and graphics. It erases lettering and the glow, stroke, and shadow that came with it, then rebuilds the plate underneath.

This repository is the public developer surface. The product itself lives at erasetext.com. Canonical HTTP docs: erasetext.com/docs/api.

Try it

  • Editor (free to erase; full-res download uses credits): erasetext.com/upload

  • HTTP API: https://api.erasetext.com/v1

  • MCP: https://api.erasetext.com/mcp

  • First API key includes a 50-credit trial, no card.

Create a key under Account → Developer.

curl -X POST \
  -H "X-Api-Key: et_…" \
  -F "image_file=@photo.jpg" \
  "https://api.erasetext.com/v1/erase" \
  -o out.webp

Omit the mask to detect and erase all text. White pixels (channel >127) in a mask mark what to erase.

Related MCP server: Poof Background Removal MCP Server

Python SDK

pip install erasetext
# optional agent extras
pip install 'erasetext[langchain]'
pip install 'erasetext[llamaindex]'
from erasetext import EraseText

client = EraseText()  # reads ERASETEXT_API_KEY
image = client.erase(image_path="photo.jpg")
Path("out.webp").write_bytes(image)

erase() spends 1 credit on success. Failures and account() are free. Do not send size or engine — both are retired and return 400.

MCP

Remote Streamable HTTP. Same key, same billing as the HTTP API.

{
  "mcpServers": {
    "erasetext": {
      "url": "https://api.erasetext.com/mcp",
      "headers": { "X-Api-Key": "et_…" }
    }
  }
}

Tools: erase_text (1 credit on success), get_account (free).

LangChain

from erasetext.langchain import EraseTextToolkit

tools = EraseTextToolkit().get_tools()
# tools: erase_text, get_erasetext_account

Requires pip install 'erasetext[langchain]'.

LlamaIndex

from erasetext.llamaindex import EraseTextToolSpec

tools = EraseTextToolSpec().to_tool_list()

Requires pip install 'erasetext[llamaindex]'.

Specs

File

What

openapi.json

HTTP OpenAPI 3.1

server.json

MCP Registry record (remote Streamable HTTP)

https://erasetext.com/llms.txt

Machine-readable product + API summary

https://erasetext.com/openapi.json

Same spec, hosted next to the product

Operated by Morling, LLC. The SDK and specs in this repository are MIT; the hosted erase service is a commercial product.

Available Tools

2 tools
erase_textA

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.

Inputs: format, mask_url, image_url, paste_back, +4 more.

get_accountA

Return API and web credit balances, plan, and this UTC month's usage. Never spends a credit.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

    TDQS

    A4.6/5.0

    Scored across 2 tools

    Disambiguation5/5

    get_account and erase_text have completely distinct purposes: one for account/credit status, one for image text removal. No overlap or ambiguity.

    Naming Consistency5/5

    Both tool names use the same verb_noun snake_case pattern (get_account, erase_text), making the API predictable.

    Tool Count3/5

    With only two tools, the server feels minimal, though it covers the essential operations of the EraseText API. It sits at the thin end of the acceptable range.

    Completeness4/5

    The server provides the core account check and erase operations. Minor gaps such as history or preview functionality are absent, but no critical workflow is blocked.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers