# the402.ai Text-to-Speech Purchase

> the402.ai Text-to-Speech Purchase is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.021/call, status down (last checked 2026-09-15).

Converts input text into synthesized speech audio via a paid API call on the402.ai marketplace

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_a800d144af134773/purchase
- Price: $0.021/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-the402-ai-24fd6d44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mf4np-ngppsdZIZctEgdo

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 api-the402-ai-24fd6d44 -d '<json body>'
```

Example prompt: Can you read out this message aloud as an audio file: 'Welcome to our service, your appointment is confirmed for tomorrow at 3pm' — use the402.ai text-to-speech to generate the spoken audio.

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically purchase text-to-speech synthesis on the402.ai marketplace, especially within an agentic workflow that uses x402 micropayment infrastructure. Best suited for agents that need to pay per-use for TTS without a subscription, or when integrating with other the402.ai services in a multi-step agentic pipeline.

## Known failure modes

- Insufficient USDC balance or payment failure — payment not accepted
- Invalid or missing text input — bad request error
- Service unavailable or job queue overloaded — server error
- Malformed request body — 400 error
- Payment not released — audio not delivered until verification step

## How this service works

Purchase: Text-to-Speech

## Output

The agent receives synthesized speech audio generated from the provided text input, delivered after a $0.021 USDC payment is processed via the x402 payment protocol.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-24fd6d44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
