# X402 Cloud Text-to-Speech Hooks

> X402 Cloud Text-to-Speech Hooks is a paid API for AI agents from api.x402cloud.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Converts text input into synthesized speech audio via a pay-per-call x402-enabled API endpoint.

## Facts

- Endpoint: POST https://api.x402cloud.space/api/v1/text-to-speech-hooks
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-cloud-text-to-speech-hooks-deaaf6c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XQsb17H9oViCuFdEJwTBb

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-cloud-text-to-speech-hooks-deaaf6c8 -d '<json body>'
```

Example prompt: Can you convert this script into spoken audio: 'Welcome to our platform, we're glad you're here. Let's get started on your journey today.'

## When to prefer this

Choose this endpoint when you need a pay-as-you-go, agent-native text-to-speech API that integrates with the x402 micropayment protocol (USDC on-chain payments) at $0.02 per call. Ideal for AI agents that need to generate speech audio programmatically without subscription overhead, especially in autonomous workflows where on-demand audio synthesis is needed for voiceovers, narration, or audio localization tasks.

## Known failure modes

- Missing or malformed 'input' object returns a validation error
- Insufficient USDC payment (x402 payment failure) results in a 402 Payment Required response
- Unsupported voice or language options in the options object may trigger warnings or fallback behavior
- Empty or excessively long text input may cause processing errors or truncation
- Network timeouts for large audio generation jobs

## How this service works

Agent-ready x402 APIs for AI video production, audio localization, web research, document extraction, data analysis, and structured JSON transformation.

## Output

Returns a JSON object containing a status field, a unique request_id, and a result object with the synthesized speech output. May also include model_used to indicate which TTS model was invoked, a payment confirmation object, usage statistics, and any warnings encountered during processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object"
  },
  "options": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "status",
  "request_id",
  "result"
 ],
 "properties": {
  "usage": {
   "type": "object"
  },
  "result": {
   "type": "object",
   "additionalProperties": true
  },
  "status": {
   "type": "string"
  },
  "payment": {
   "type": "object",
   "additionalProperties": true
  },
  "warnings": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "model_used": {
   "type": "string"
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-cloud-text-to-speech-hooks-deaaf6c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402cloud.space](https://www.zero.xyz/host/api.x402cloud.space/llms.txt)
