# Coockies.ai Background Removal API (v4)

> Coockies.ai Background Removal API (v4) is a paid API for AI agents from coockies-ai.vercel.app, paid per call via x402, $0.180978/call, status unknown (last checked 2026-10-10).

Removes the background from an image, isolating the subject as a transparent or clean-cut foreground.

## Facts

- Endpoint: POST https://coockies-ai.vercel.app/api/background-removal4?utm_source=zero.xyz
- Price: $0.180978/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coockies-ai-background-removal-api-v4-16c1714f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n2vHFV4XIk6zGmOuS-1Ba

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 coockies-ai-background-removal-api-v4-16c1714f -d '<json body>'
```

Example prompt: Can you remove the background from this product photo so I get a clean transparent PNG of just the item?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call background removal without committing to a subscription service. Suitable for agents handling ad-hoc image processing tasks, especially for e-commerce product photos or design workflows on Base chain with USDC micropayments.

## Known failure modes

- Image URL is inaccessible or malformed — returns error
- Subject detection fails on complex or low-contrast images — background not cleanly removed
- Unsupported image format submitted — returns format error
- Network timeout on large image files
- Payment not processed via x402 — returns 402 Payment Required

## How this service works

194 production-ready API endpoints. AI, Search, Social, Finance, Crypto. Pay-per-call with x402 on Base chain.

## Output

Returns a processed image with the background removed, typically as a transparent PNG or equivalent format with only the foreground subject retained.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "result": {
   "data": "example response"
  }
 },
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coockies-ai-background-removal-api-v4-16c1714f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coockies-ai.vercel.app](https://www.zero.xyz/host/coockies-ai.vercel.app/llms.txt)
