# Stability AI Inpaint

> Stability AI Inpaint 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-10).

Fills or replaces a masked region of an image using a text prompt via Stability AI's inpainting model

## Facts

- Endpoint: POST https://stability-ai.mpp.paywithlocus.com/stability-ai/inpaint?utm_source=zero.xyz
- Price: $0.057/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-10
- 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-inpaint-4e130868
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Iud8hzKzzbOmiLMODvn2L

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-inpaint-4e130868 -d '<json body>'
```

Example prompt: Take this product photo [image URL] and fill in the masked region [mask URL] with a wooden table surface — use a PNG output and make sure there's no plastic or glass texture in the fill.

## When to prefer this

Use this endpoint when you need to fill, replace, or remove a specific region of an existing image based on a text description. Prefer this over outpainting (extending borders) or background replacement when you have a precise masked area within the image that needs targeted content generation. Ideal for product photo editing, object removal, or localized image repair tasks.

## Known failure modes

- Missing required 'image' field returns a 400 validation error
- Missing required 'prompt' field returns a 400 validation error
- Invalid image format or unreadable image URL causes a processing error
- Mask dimensions not matching source image dimensions may cause failure
- Invalid output_format value (not jpeg/png/webp) returns an error
- Overly complex or contradictory prompts may yield low-quality fills
- Seed out of valid range may cause unexpected behavior

## How this service works

Fill a masked region with AI-generated content guided by a prompt.

## Output

Returns an inpainted image with the masked region filled according to the text prompt, in the requested output format (jpeg, png, or webp). The result is a modified version of the source image where the white mask area has been replaced with AI-generated content matching the prompt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "image",
  "prompt"
 ],
 "properties": {
  "mask": {
   "type": "string",
   "description": "Mask image (white = fill) 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."
  },
  "prompt": {
   "type": "string",
   "description": "Fill prompt"
  },
  "grow_mask": {
   "type": "number",
   "description": "Expand mask by N pixels"
  },
  "output_format": {
   "type": "string",
   "description": "jpeg|png|webp"
  },
  "negative_prompt": {
   "type": "string",
   "description": "Things to exclude"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stability-ai-inpaint-4e130868/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)
