# Delx Commerce — Remove Background

> Delx Commerce — Remove Background is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Removes the background from an image, returning a transparent PNG with verifiable delivery, paid per-result in USDC via x402.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/remove-background?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-remove-background-26c9ff9c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jMd3GKzQ7yiHIaLuzH-Vv

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 delx-commerce-remove-background-26c9ff9c -d '<json body>'
```

Example prompt: Can you remove the background from this product photo and give me a transparent PNG? Here's the image in base64: [base64 string].

## When to prefer this

Choose this endpoint when you need pay-per-result background removal with no signup, verifiable delivery (SHA-256 hash), and crypto micropayment settlement (USDC on Base or Solana via x402). Ideal for AI agent pipelines that require trustless, per-call billing and cryptographic proof of delivery rather than subscription-based image APIs.

## Known failure modes

- Image exceeds 256 KiB decoded size — rejected with validation error
- Invalid base64 encoding or unsupported format (not PNG/JPEG/WebP) — rejected
- Image URL or file path submitted instead of base64 — explicitly rejected
- Payment failure via x402 — transaction not completed, no result returned
- Upstream Replicate provider timeout or error — delivery fails

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the URL of the processed transparent PNG, its SHA-256 hash for verification, image dimensions (width/height), byte size, the model used (851-labs/background-remover via Replicate), generation ID, input SHA-256, media type (image/png), whether transparency is present, the sale price in USDC, and upstream cost details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image_base64": {
   "type": "string",
   "maxLength": 349550,
   "minLength": 1,
   "description": "One base64-encoded PNG, JPEG, or WebP image up to 256 KiB decoded; image/* data-URI prefixes are accepted. URLs and file paths are rejected."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 182421,
  "model": "851-labs/background-remover",
  "width": 1024,
  "height": 1024,
  "sha256": "2d6c7c2b3f3c8e1e7b0d3a5b6e7f8a9b1234567890abcdef1234567890abcdef",
  "provider": "replicate",
  "image_url": "https://api.delx.ai/api/v1/generated-background-removals/4f7302e27fef42fc9164a3af6c3f5661.png",
  "media_type": "image/png",
  "input_sha256": "34a8815e9c57e321194d50f2ea8b64394019fb8038c9aefd7a9a306a5030fc31",
  "generation_id": "4f7302e27fef42fc9164a3af6c3f5661",
  "sale_price_usdc": 0.002,
  "gross_margin_usd": 0.00149,
  "has_transparency": true,
  "upstream_cost_usd": 0.00051,
  "provider_prediction_id": "bg-example-prediction"
 }
}
```

## More

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