Pixelcut Background Removal

20 credits/call
ae_pixelcut_background_removal

Remove the background from a JPEG or PNG image and choose an RGBA, alpha-mask, or ZIP output.

ImageSegmentation
20 credits/call

Pricing

20 credits/call
ConditionCharge
Each call20 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
request_bodyobjectYesNo parameter description.—
request_body.image_urlstringYesInput image (JPEG or PNG)—
request_body.sync_modebooleanNoWhen true, return result as a data URL instead of uploading to storagetrue
request_body.output_formatenum (rgba | alpha | zip)NoOutput formatrgba

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key

Submit first, then query with the returned task_id until the task completes.

Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_pixelcut_background_removal' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "image_url": "https://agentearth.ai/fileserver/file/d1156cbc-13b5-429d-892b-2fb67e1e3d53.png",
      "output_format": "rgba",
      "sync_mode": false
    }
  }
}'
Response exampleresponse.json
JSON
{
  "description": "task accepted; poll the result via query_tool with this task_id",
  "query_tool": "ae_get_result",
  "status": "created",
  "task_id": "aab0b7ea-a01a-41da-8edd-5e7cbdfe800b"
}