# Stability AI Text-to-Audio via Locus x402

> Stability AI Text-to-Audio 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-15).

Generates audio files from a text prompt using Stability AI's stable-audio models, payable via x402 microtransaction.

## Facts

- Endpoint: POST https://stability-ai.x402.paywithlocus.com/stability-ai/text-to-audio
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stability-ai-text-to-audio-via-locus-x402-60d0d9d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yuncp6zGiXV-YU9lp8FvX

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-text-to-audio-via-locus-x402-60d0d9d5 -d '<json body>'
```

Example prompt: Use Stability AI to generate a 30-second ambient forest soundscape with birds and a gentle stream — output it as an mp3 using stable-audio-2.5.

## When to prefer this

Choose this endpoint when you need AI-generated audio from a text description and want to pay per-call with USDC via x402 without a subscription. It is especially suitable for agents that need on-demand audio generation in automated workflows, or when cost control via microtransactions is important. Prefer stable-audio-2.5 for higher quality at a fixed cost, or stable-audio-2 when step-level cost control is needed.

## Known failure modes

- Invalid model name returns an error — must be 'stable-audio-2.5' or 'stable-audio-2'
- Duration exceeding model limits may fail or be clamped
- Empty or missing prompt results in a generation error
- Invalid output_format value (not 'mp3' or 'wav') causes a bad request
- Payment failure via x402 if insufficient USDC balance
- Long inference step counts on stable-audio-2 increase cost and latency significantly
- Response is async — the data field may be empty until polled via statusUrl

## 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 a status URL to poll for the completed audio file (mp3 or wav), along with payment settlement details showing the amount of USDC charged via the x402 protocol.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "number"
  },
  "model": {
   "type": "string"
  },
  "steps": {
   "type": "number"
  },
  "prompt": {
   "type": "string"
  },
  "duration": {
   "type": "number"
  },
  "cfg_scale": {
   "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-text-to-audio-via-locus-x402-60d0d9d5/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)
