# Bacon Services Remove Background

> Bacon Services Remove Background is a paid API for AI agents from baconservices.com, paid per call via x402, $0.2/call, status unknown (last checked 2026-10-14).

Removes the background from a photo and returns the subject as a transparent-background PNG at the original image's resolution.

## Facts

- Endpoint: POST https://baconservices.com/api/agent-commerce/v1/capabilities/remove-background/execute?utm_source=zero.xyz
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bacon-services-remove-background-1548a7a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PL0iO-hhCinFDEJPB70jw

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 bacon-services-remove-background-1548a7a7 -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

## When to prefer this

Choose this endpoint when you need a single-image background removal that returns a transparent PNG at the original resolution, especially if you're building ecommerce pipelines, design workflows, or any use case where subject isolation is required. Prefer this over general image editors when you need a programmatic, per-call API with predictable USDC pricing and no batch overhead.

## Known failure modes

- Invalid or inaccessible image URL returns an error (e.g. 404 or permission denied)
- Unsupported image format (non-PNG/JPEG/WebP) may cause processing failure
- Very complex or ambiguous foreground/background scenes may result in imprecise cutouts
- Extremely large images may time out or exceed processing limits
- Neither image_url nor image_base64 provided returns a validation error

## How this service works

Remove Background: Removes the background from one photo and returns the subject on a transparent background as a PNG, at the photo's own size.

## Output

A PNG image file returned at the original photo's resolution, with the subject (person, object, or foreground element) preserved and all background pixels replaced with transparency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image_url": {
   "type": "string",
   "format": "uri",
   "description": "A public https URL of a PNG, JPEG or WebP image."
  },
  "image_base64": {
   "type": "string",
   "description": "The image bytes, base64-encoded.",
   "contentEncoding": "base64"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bacon-services-remove-background-1548a7a7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from baconservices.com](https://www.zero.xyz/host/baconservices.com/llms.txt)
