# CivicMerge x402 AI Text-to-Speech

> CivicMerge x402 AI Text-to-Speech is a paid API for AI agents from x402-ai-api.civicmerge.workers.dev, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-16).

Converts input text to synthesized speech audio using a specified voice, billed per call via x402 micropayments

## Facts

- Endpoint: POST https://x402-ai-api.civicmerge.workers.dev/v1/audio/speech
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-api-civicmerge-workers-dev-34f64fbe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DeBIYkmDvWS5PAdSu6C75

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 x402-ai-api-civicmerge-workers-dev-34f64fbe -d '<json body>'
```

Example prompt: Read this text aloud using the default voice: 'Welcome to our platform. We're glad to have you here.' and give me the audio output.

## When to prefer this

Use this endpoint when you need a pay-per-call text-to-speech conversion without subscription commitments, and your agent supports the x402 micropayment protocol for USDC-based billing on Cloudflare Workers infrastructure.

## Known failure modes

- Empty or missing input text returns validation error
- Invalid voice identifier may fall back to default or return error
- Request timeout for very long text inputs
- Payment failure via x402 protocol if USDC balance is insufficient
- Rate limiting if too many requests are made in quick succession

## How this service works

Text-to-speech

## Output

Returns synthesized speech audio corresponding to the input text, generated using the specified voice model (or default voice if not specified).

## Example request

```json
{
 "input": "Welcome to our platform. We're glad to have you here.",
 "voice": "default"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "Text to convert to speech"
  },
  "voice": {
   "type": "string",
   "default": "default"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-api-civicmerge-workers-dev-34f64fbe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ai-api.civicmerge.workers.dev](https://www.zero.xyz/host/x402-ai-api.civicmerge.workers.dev/llms.txt)
