# Stability AI Image Eraser via Locus x402

> Stability AI Image Eraser via Locus x402 is a paid API for AI agents from stability-ai.x402.paywithlocus.com, paid per call via x402, $0.057/call, status unknown (last checked 2026-09-14).

Erases and inpaints masked regions of an image using a white-mask overlay, powered by Stability AI and paid via x402 micropayment.

## Facts

- Endpoint: POST https://stability-ai.x402.paywithlocus.com/stability-ai/erase
- Price: $0.057/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stability-ai-image-eraser-via-locus-x402-2d19c422
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_otaiEUA8nCQA6qaSLV_By

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 stability-ai-image-eraser-via-locus-x402-2d19c422 -d '<json body>'
```

Example prompt: Can you erase the car in the background of this photo? Here's the source image and here's the white-mask PNG marking the car — output the result as a PNG.

## When to prefer this

Choose this endpoint when you need to erase a specific region of an image defined by a white-mask and have it seamlessly inpainted — ideal for object removal, background cleanup, or watermark erasure. Prefer this over generic image editing tools when you need AI-powered generative fill in the erased region and want pay-per-call micropayment pricing via x402 (no subscription required).

## Known failure modes

- Missing or malformed image/mask inputs return an error
- Mask and source image dimension mismatch causes processing failure
- Unsupported output_format value (not jpeg/png/webp) returns validation error
- Payment failure or insufficient USDC balance blocks the request
- Large grow_mask values may cause unintended erasure of neighboring regions
- Server-side Stability AI errors propagate as 5xx responses

## How this service works

Generative AI platform for images, 3D models, and audio — text-to-image, editing, upscaling, and more.

## Output

Returns a JSON object with a `data` field containing the processed image (erased/inpainted result), along with payment details (settled USDC amount) and a request ID with a status URL for tracking. The erased region is seamlessly filled using Stability AI's generative inpainting.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mask": {
   "type": "string"
  },
  "seed": {
   "type": "number"
  },
  "image": {
   "type": "string"
  },
  "grow_mask": {
   "type": "number"
  },
  "output_format": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stability-ai-image-eraser-via-locus-x402-2d19c422/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stability-ai.x402.paywithlocus.com](https://www.zero.xyz/host/stability-ai.x402.paywithlocus.com/llms.txt)
