# ForgeMesh Background Removal API

> ForgeMesh Background Removal API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Removes the background from an image URL and returns a transparent PNG with the subject cleanly segmented out

## Facts

- Endpoint: POST https://x402.forgemesh.io/background-removal
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-background-removal-api-c741b9fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ew4eM80NwmyYPFxqkVp7J

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 forgemesh-background-removal-api-c741b9fb -d '<json body>'
```

Example prompt: Can you remove the background from this product photo and give me a transparent PNG? The image is at https://example.com/product-shirt.jpg

## When to prefer this

Choose this endpoint when you need server-side background removal with no data retention, billed per-call at a flat $0.02 USDC. Ideal for pipelines that process product photos, avatars, or thumbnails at moderate scale without sending images to a major cloud provider. Prefer this over client-side solutions when quality of edge segmentation matters and over batch cloud services when you need immediate results per image.

## Known failure modes

- Image URL not publicly accessible — returns error indicating image could not be fetched
- Image exceeds 8MB file size limit — returns size limit error
- Unsupported image format (e.g. GIF, BMP) — returns format error
- Ambiguous subject / complex scene where segmentation confidence is low — may return imperfect cutout
- Network timeout fetching remote image URL — returns fetch error
- Payment not received or insufficient — returns 402 Payment Required

## How this service works

Background removal API: send an image URL, get back a transparent PNG with the subject cleanly cut out (segmentation runs on our own hardware). For product photos, avatars, thumbnails, and design pipelines. Nothing stored.

## Output

A transparent PNG image with the background cleanly removed, leaving only the foreground subject (person, product, or object) with alpha-channel transparency. Nothing is stored server-side after processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image_url": {
   "type": "string",
   "description": "Public URL of the image (jpg/png/webp, max 8MB)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "file_base64": "iVBORw0KGgoAAA...",
  "content_type": "image/png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-background-removal-api-c741b9fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
