# FastX402 Remove Background

> FastX402 Remove Background is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-27).

Removes the background from an image URL and returns a transparent PNG or WebP with just the foreground subject

## Facts

- Endpoint: GET https://fastx402.tools/remove-background?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-remove-background-26c5e31b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DG31e3UWVVerWyU1iDG9Y

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 fastx402-remove-background-26c5e31b
```

Example prompt: Can you remove the background from this product photo — https://example.com/shoe.jpg — and give me back a transparent PNG?

## When to prefer this

Choose this endpoint when you need a quick, no-account, pay-per-call background removal for a single image accessible via a public URL, especially in automated agent workflows where signing up for a full image-editing SaaS account is impractical. At $0.02 per call with no API key required and payment via USDC on Base or Solana, it is ideal for low-volume or bursty workloads where per-call billing beats a subscription.

## Known failure modes

- Unsupported image format (only png, jpeg, webp, gif, tiff, avif accepted) — returns error
- URL is not publicly accessible or returns non-200 — fails to fetch image
- Image is too large or complex — may time out or return processing error
- Invalid or malformed URL in query params — returns 400-level error
- Result URL expires after the indicated timestamp — accessing it after expiry returns 404

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing a temporary URL to the background-removed image (PNG or WebP with transparency), plus metadata including width, height, file size in bytes, MIME type, and an expiry timestamp for the hosted result URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Absolute http(s) URL of a png, jpeg, webp, gif, tiff or avif image"
      },
      "format": {
       "enum": [
        "png",
        "webp"
       ],
       "type": "string",
       "description": "Output format with transparency, default png"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "width": {
       "type": "integer"
      },
      "format": {
       "type": "string"
      },
      "height": {
       "type": "integer"
      },
      "mime_type": {
       "type": "string"
      },
      "expires_at": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://workshop.tusk80.com/r/c1f6f4941c2932a14936ce11c038f035.png",
  "bytes": 404929,
  "width": 1000,
  "format": "png",
  "height": 667,
  "mime_type": "image/png",
  "expires_at": "2026-10-17T15:15:59.451Z"
 }
}
```

## More

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