TapCub is live — analytics, insights and live chat, free on one platform

Images API Background Removal API

Send a photo and get a transparent PNG of the subject, cut out by a high-resolution model.

POSThttps://api.pathclue.com/v1/images/remove-backgroundBeta
Request

Call it from your code

Set your key in the TAPCUB_API_KEY environment variable. Base URL: https://api.pathclue.com/v1.

terminal
curl -X POST "https://api.pathclue.com/v1/images/remove-background?background=transparent" \
  -H "Authorization: Bearer $TAPCUB_API_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @photo.jpg \
  -o result.png

Send the file itself as the request body and put the options in the query string.

The response body is the file itself. Save it as shown in the examples.

Parameters

Request parameters

Request parameters
ParameterTypeRequiredDefaultDescription
backgroundstringNo"transparent"transparent (default), white, or a hex color such as #f5f5f5 for a solid background. The result is always PNG.
outputenumone of: binary | jsonNo"binary"binary returns the PNG itself; json returns base64 in image plus width and height.
Response

Example response

Successful responses carry the X-Credits-Charged and X-Credits-Balance headers. Errors return {"error":{"code","message"}} and are never charged.

HTTP
HTTP/1.1 200 OK
Content-Type: image/png
X-Image-Width: 2048
X-Image-Height: 1536

<image/png …>
Price and limits

What it costs

What it costs
Price10 credits per image
In US dollarsabout $0.01 · $10 / 1,000
CreditsPaid credits only
Rate limitFree 10 / min · Plus 60 / min · Pro 300 / min
ChargedOnly on success — errors and timeouts are free
Use cases

What people build with it

Product photos

Cut out products for white or branded backgrounds.

Profile pictures

Clean up avatars and team photos automatically.

Design pipelines

Add cut-outs to templates without manual editing.

FAQ

Frequently asked questions

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What comes back?

A PNG with a transparent background at the size of the input image.

Is the image stored?

No. Images are processed and deleted right after the response, and they are not logged.

How much does the Background Removal API cost?

Each successful call costs 10 credits per image (about $0.01). 1 credit is about $0.001. Failed calls — invalid input, unreachable sites, timeouts or errors on our side — are not charged.

Can I use free credits?

No. Document and image endpoints only use paid credits from a Tools plan or a credit pack. To check the result before you pay, use the matching free tool on tapcub.com.

What are the rate limits?

Free accounts can make 10 calls a minute and 1,000 a day per key; Plus allows 60 a minute and Pro 300. Over the limit you get HTTP 429 with a Retry-After header, and nothing is charged.

How do I get an API key?

Sign in to the TapCub console, verify your email and create a key on the Tools → API page. Keys start with tck_ and are shown once; send them in the Authorization: Bearer header.

Get your API key

Create a key in the console and make your first call in a minute. Light endpoints run on free daily credits.