# Delx Background Replace

> Delx Background Replace is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Replaces an image background with studio gray or a custom hex color fill, returning an opaque PNG and SHA-256 receipt for $0.003 USDC per call.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/replace-background
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-background-replace-44e4b02b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FDh7BihLW7J6PCY6GIjYw

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-background-replace-44e4b02b -d '<json body>'
```

Example prompt: Can you replace the background of this product photo with a clean studio gray? Here's the image in base64.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use background replacement on a single product image without setting up an API key or subscription. Ideal for e-commerce agents that need studio-quality solid-fill backgrounds (gray or a specific brand hex color) and want a verifiable SHA-256 receipt per operation. Prefer this over general image editing APIs when simplicity, micropayment pricing, and auditability matter.

## Known failure modes

- Image exceeds 256 KiB decoded size — returns error indicating payload too large
- Invalid base64 encoding — returns malformed input error
- Invalid hex color format for fill parameter — returns validation error
- Payment not provided or insufficient — returns 402 Payment Required
- Unsupported image format — only PNG, JPEG, WebP accepted

## How this service works

Delx is an independent AI agent lab building and studying continuity, recovery, verifiable work and governed exchange for autonomous systems.

## Output

Returns an opaque PNG image with the background replaced by studio gray (default) or the specified #RRGGBB hex color, along with a SHA-256 receipt confirming the processed output. No API key or subscription required; payment is $0.003 USDC per call via x402.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fill": {
   "type": "string",
   "description": "Optional #RRGGBB studio fill. Defaults to studio gray."
  },
  "image_base64": {
   "type": "string",
   "maxLength": 349550,
   "minLength": 1,
   "description": "One base64 PNG, JPEG, or WebP up to 256 KiB decoded."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "image_url": "https://api.delx.ai/api/v1/generated-replaced-backgrounds/example.png",
  "sale_price_usdc": 0.003,
  "has_transparency": false
 }
}
```

## More

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