# Stability AI Audio Inpaint via Locus x402

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

Replaces a masked region of an audio file with AI-generated content described by a text prompt using Stability AI's stable-audio model.

## Facts

- Endpoint: POST https://stability-ai.x402.paywithlocus.com/stability-ai/audio-inpaint
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stability-ai-audio-inpaint-via-locus-x402-5a3340b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I06Pyclg9REwaMRlIxAn4

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-via-locus-x402-5a3340b1 -d '<json body>'
```

Example prompt: Take this audio file and replace the section from 45 seconds to 75 seconds with a calm orchestral string passage — use stable-audio-2.5 and output it as a wav file.

## When to prefer this

Choose this endpoint when you need to surgically replace a specific time-bounded region of an existing audio file with AI-generated content described by text, rather than generating an entirely new audio clip from scratch. It is ideal for post-production audio repair, creative remixing, or filling gaps in recordings. Prefer this over full audio generation when you want to preserve the majority of the original audio and only modify a defined segment.

## Known failure modes

- Invalid or unsupported audio file format causing processing failure
- mask_start or mask_end values outside the duration of the audio file
- Prompt too vague or empty resulting in poor or unexpected audio replacement
- Model name misspelled or unsupported, falling back to default or returning error
- Payment failure if USDC balance is insufficient for the $0.001 charge
- Request timeout for very large audio files or high inference step counts
- Output format not recognized if value other than mp3 or wav is provided

## 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 request ID and status URL for async retrieval of the edited audio, along with payment settlement details showing 0.001 USDC charged. The actual edited audio data is available via the status URL once processing completes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "audio": {
   "type": "string"
  },
  "model": {
   "type": "string"
  },
  "steps": {
   "type": "number"
  },
  "prompt": {
   "type": "string"
  },
  "mask_end": {
   "type": "number"
  },
  "mask_start": {
   "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-audio-inpaint-via-locus-x402-5a3340b1/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)
