# Stability AI Audio Inpaint

> Stability AI Audio Inpaint is a paid API for AI agents from Stability AI at stability-ai.mpp.paywithlocus.com, paid per call via MPP, $0.23 (50 steps, stable-audio-2) (dynamic), status unknown (last checked 2026-10-10).

Replaces a specified time region of an audio file with AI-generated content matching a text prompt, using Stability AI's Stable Audio model.

## Facts

- Endpoint: POST https://stability-ai.mpp.paywithlocus.com/stability-ai/audio-inpaint?utm_source=zero.xyz
- Price: $0.23 (50 steps, stable-audio-2) (dynamic)
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- 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-audio-inpaint-c0078572
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xeh41azDQUCk0uQlXarf1

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-audio-inpaint-c0078572 -d '<json body>'
```

Example prompt: I have an audio file where the section between 30 and 60 seconds sounds bad — can you use Stability AI's audio inpainting to replace that segment with something that sounds like 'gentle ambient piano music', outputting it as a wav file using stable-audio-2.5 with 20 inference steps?

## When to prefer this

Use this endpoint when you need to replace or repair a specific time-bounded segment of an existing audio file using AI-generated content guided by a text prompt. Prefer this over full audio generation when you want to preserve the surrounding audio context and only modify a defined region. Ideal for fixing corrupted sections, replacing unwanted sounds, or creatively altering a portion of a recording without regenerating the whole file.

## Known failure modes

- Missing required 'audio' field returns validation error
- Missing required 'prompt' field returns validation error
- Invalid model name results in error or fallback to default
- mask_start greater than mask_end causes invalid range error
- Unsupported audio file format may cause processing failure
- Very short or very long audio files may exceed processing limits
- Network timeout on large audio files during upload or processing

## How this service works

Replace a section of an audio file with AI-generated content.

## Output

Returns an audio file (mp3 or wav) with the specified time region replaced by AI-generated content matching the provided prompt, seamlessly inpainted into the original audio.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "audio",
  "prompt"
 ],
 "properties": {
  "audio": {
   "type": "string",
   "description": "Input audio file 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."
  },
  "model": {
   "type": "string",
   "description": "stable-audio-2.5 | stable-audio-2 (default)"
  },
  "steps": {
   "type": "number",
   "description": "Inference steps (default 8)"
  },
  "prompt": {
   "type": "string",
   "description": "Description of replacement content"
  },
  "mask_end": {
   "type": "number",
   "description": "End of masked region in seconds (default 190)"
  },
  "mask_start": {
   "type": "number",
   "description": "Start of masked region in seconds (default 30)"
  },
  "output_format": {
   "type": "string",
   "description": "mp3|wav"
  }
 },
 "additionalProperties": true
}
```

## More

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