# AiSpace Background Removal

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

Removes the background from an image, isolating the subject using AI-powered segmentation via Venice.ai

## Facts

- Endpoint: POST https://x402.aispace.bot/api/v1/image/background-remove
- 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/aispace-background-removal-7cf45728
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T12NOcUc-xt3n1FTLecr7

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 aispace-background-removal-7cf45728 -d '<json body>'
```

Example prompt: Can you remove the background from this product photo so I just have the item on a transparent background?

## When to prefer this

Choose this endpoint when you need privacy-preserving background removal powered by Venice.ai (data never leaves your device per their policy) and you're already operating within the AiSpace/x402 payment ecosystem using USDC micropayments. It's a good fit for agents automating e-commerce image pipelines, design workflows, or content creation where transparent backgrounds are needed at low per-call cost.

## Known failure modes

- Image URL not accessible or malformed — returns error
- Unsupported image format — processing fails
- Image too large or resolution too high — may time out or return error
- Subject detection fails on complex or ambiguous scenes — background not cleanly removed
- Payment not processed or insufficient USDC balance — 402 Payment Required

## How this service works

Remove the background from an image and return a transparent PNG, paid per request in USDC on Base via x402, no API key. Send `image` (base64) or `image_url` (HTTPS), not both. Optional `model` is used for pricing then stripped before proxy.

## Output

Returns a JSON response with an ok boolean indicating success, along with the processed image data with the background removed, leaving the subject isolated — typically as a transparent PNG or similar format ready for compositing or download.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image": {
   "type": "string",
   "description": "Source image as base64. Send image XOR image_url."
  },
  "image_url": {
   "type": "string",
   "description": "HTTPS URL of the source image. Send image XOR image_url."
  },
  "return_binary": {
   "type": "boolean",
   "description": "Gateway-owned. Omit for a raw image file (default). false = JSON { id, images: [base64], format } like generate. true = force the file. Stripped before Venice."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Response body is raw binary media, not JSON. Trust the sniffed content type over the header.",
  "type": "binary",
  "contentType": "image/png"
 }
}
```

## More

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