# Stability AI Erase

> Stability AI Erase is a paid API for AI agents from Stability AI at stability-ai.mpp.paywithlocus.com, paid per call via MPP, $0.057/call, status unknown (last checked 2026-10-11, last successful call 2026-06-16).

Removes unwanted objects or regions from an image using an optional mask, leaving a clean, AI-inpainted result.

## Facts

- Endpoint: POST https://stability-ai.mpp.paywithlocus.com/stability-ai/erase?utm_source=zero.xyz
- Price: $0.057/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-06-16
- Success rate: 50% of calls made through Zero
- Rating: 4.0 / 5 from 1 review
- Activations on Zero: 2
- Provider: Stability AI
- Docs: https://platform.stability.ai/docs/api-reference
- Website: https://stability.ai
- Tags: image-generation, stable-diffusion, upscaling, 3d, ai, media
- Canonical page: https://www.zero.xyz/c/stability-ai-erase-b308c6b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l_td2cyo_93fWjJxjPvtn

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-erase-b308c6b3 -d '<json body>'
```

Example prompt: Can you erase the person standing in the background of this photo? Use this mask image to mark the area to remove, expand the mask by 5 pixels, and give me the result as a PNG.

## When to prefer this

Use this endpoint when you need to remove a specific object or region from an image and have a mask defining the area to erase. Prefer this over Search and Replace when you want clean removal without replacement content, or over Outpaint when you are editing interior regions rather than extending borders.

## Known failure modes

- Missing required 'image' field returns a 400 validation error
- Invalid base64 or image format causes a processing error
- Mask and source image size mismatch may cause failure
- Unsupported output_format value returns an error
- Overly large images may exceed size limits and fail
- Payment failure returns a 402 error

## How this service works

Remove objects from an image using a mask.

## Output

Returns an inpainted image with the masked region seamlessly removed and filled in by the AI, in the requested output format (jpeg, png, or webp).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "image"
 ],
 "properties": {
  "mask": {
   "type": "string",
   "description": "Mask image (white = erase) Send a public HTTPS URL (recommended; files up to 10 MiB) or base64/data URI. Hosted MPP JSON requests must stay below 8 KiB, so use a URL for larger files."
  },
  "seed": {
   "type": "number",
   "description": "Random seed"
  },
  "image": {
   "type": "string",
   "description": "Source image Send a public HTTPS URL (recommended; files up to 10 MiB) or base64/data URI. Hosted MPP JSON requests must stay below 8 KiB, so use a URL for larger files."
  },
  "grow_mask": {
   "type": "number",
   "description": "Expand mask by N pixels"
  },
  "output_format": {
   "type": "string",
   "description": "jpeg|png|webp"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stability-ai-erase-b308c6b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stability-ai.mpp.paywithlocus.com](https://www.zero.xyz/host/stability-ai.mpp.paywithlocus.com/llms.txt)
