Back to the remover

Agent and API access

Choose browser automation for the local AI tool, or the server API for flat-color removal. These paths do not use the same algorithm.

Browser tool: local AI or color matching

Open the main remover or any guide. Select one PNG, JPG, or WebP up to 40 MB. The selected image stays on the device; site files, aggregate analytics, and AI model downloads still use the network.

  • File input: input[type="file"], labelled Choose image.
  • Mode buttons: Detailed edges and Solid-color fast.
  • Start: Remove background. Progress is exposed through role="progressbar".
  • Wait for Download PNG, inspect the comparison, then save the download.

There is no batch queue. Each guide provides advice for the same shared remover; it does not enable a separate category-specific model.

REST API: server-side color removal

POST /api/v1/remove accepts a multipart file, base64 data, or a public image URL. Image data is sent to or fetched by the server. It removes pixels close to a sampled or selected color, including matching subject pixels; it does not perform AI subject segmentation or dedicated spill correction.

curl https://removebg.lol/api/v1/remove \
  -F "file=@graphic.png" \
  -F "mode=auto" \
  -o transparent-output.png

Modes: auto (average corner color), white, black, or green. Tolerance defaults to 24. The decoded image input limit is 25 MB; hosting request limits can be lower. Remote URL downloads are capped separately. The REST route applies a per-instance IP rate limit.

Request Accept: application/json for dimensions and a PNG data URI. Otherwise the response is PNG. There is no official removebg.lol npm CLI; the curl example calls the documented endpoint directly.

MCP endpoint

POST /api/mcp accepts JSON-RPC requests for initialize, tools/list, and tools/call. Its remove_background operation uses the same server-side color algorithm. list_guides returns guidance pages. No specialized category operations are advertised.

The endpoint is a JSON-RPC integration; no claim of complete transport or client certification is made. The MCP route does not share the REST route's per-instance limiter.

Specifications and privacy