PeumeAPI

AI generation

Remove Image Background

Background removal and subject matting with a transparent PNG output.

$0.15 per credit

Call it

curl https://api.peume.com/v1/call/remove-image-background \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image_url": "your image url",
    "source_width": 10,
    "source_height": 10,
    "model": "RemoveBG"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: remove-image-background.

Parameters

image_urlRequiredstring

Public https:// URL of the source image (JPEG, PNG or TIFF). downloads it directly. Max 500 MB.

source_widthRequiredinteger

Source width in pixels, e.g. 4000. The output keeps the source size and billing is by its megapixels, so the size sets the price.

source_heightRequiredinteger

Source height in pixels, e.g. 3000.

modelstring

Model: RemoveBG (remove the background entirely); Object (extract the main subject with a transparent matte). Default RemoveBG.

RemoveBG · Object

Example: RemoveBG

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.