# AgentUtility Remove Background

> AgentUtility Remove Background is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.08/call, status unknown (last checked 2026-11-11).

Removes the background from an image given its URL, returning a transparent PNG with optional bounding-box crop

## Facts

- Endpoint: POST https://x402.agentutility.ai/remove-background?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-remove-background-91e04d63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_acseyEclbbr3MRiPbTbP2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentutility-remove-background-91e04d63 -d '<json body>'
```

Example prompt: Can you remove the background from this product photo and give me a transparent PNG? Here's the image URL: https://example.com/product-shot.jpg — also crop the result tight to the subject.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call background removal without signing up for a subscription service like Remove.bg or Adobe Firefly. It is especially suited for AI agent workflows that handle sporadic or low-volume image processing tasks, batch pipelines that require no API-key management, and use cases where crypto micropayment (USDC on Base/Solana) is preferred over fiat billing. The optional bounding-box crop is useful for product photography pipelines.

## Known failure modes

- Image URL is not reachable or returns non-200 (URL fetch error)
- Unsupported image format (e.g. SVG, WebP variants, corrupt file)
- Image too large causing timeout or memory error
- No clear foreground subject detected, resulting in poor or empty cutout
- Payment not completed or insufficient USDC balance (x402 payment failure)

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object containing the width and height (in pixels) of the processed image and a URL pointing to the resulting PNG with the background removed (and optionally cropped to the foreground subject's bounding box).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "image_url"
     ],
     "properties": {
      "image_url": {
       "type": "string",
       "description": "Source image URL. Must be http or https."
      },
      "crop_to_bbox": {
       "type": "boolean",
       "description": "If true, crops the output to the foreground subject's bounding box. Optional; defaults to false."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "width": {
       "type": "integer"
      },
      "height": {
       "type": "integer"
      },
      "image_url": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "width": 550,
  "height": 368,
  "image_url": "https://...png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-remove-background-91e04d63/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
