# HyperCLI Text-to-Speech

> HyperCLI Text-to-Speech is a paid API for AI agents from api.hypercli.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Converts input text to synthesized speech audio using configurable voice, language, and style parameters, billed at $0.05 per call via x402.

## Facts

- Endpoint: POST https://api.hypercli.com/api/x402/flow/text-to-speech
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hypercli-text-to-speech-89fd0acc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3NW8X9NUG9VGdLA3VRkmi

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 hypercli-text-to-speech-89fd0acc -d '<json body>'
```

Example prompt: Can you turn this text into speech using a calm female voice in English: 'Welcome to our platform. We're glad you're here.'

## When to prefer this

Choose this endpoint when you need a pay-per-call text-to-speech conversion at a flat $0.05 rate with no subscription, especially when voice cloning via reference audio, custom speaker selection, or style/language control is needed. Prefer over subscription-based TTS services when usage is sporadic or cost predictability per call matters.

## Known failure modes

- Empty or missing text field returns validation error
- Unsupported language code causes generation failure
- Invalid reference audio URL causes voice cloning to fail
- Payment failure via x402 results in 402 response and no generation
- Job timeout if text is extremely long
- Invalid speaker ID returns error

## How this service works

text-to-speech — fixed price $0.05

## Output

Returns a JSON object with an access key to retrieve the generated audio, a status URL to check job progress, and a cancel URL to abort the job. The render field contains additional details about the output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string",
   "default": "custom"
  },
  "text": {
   "type": "string"
  },
  "style": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "dry_run": {
   "type": "boolean",
   "default": false
  },
  "speaker": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "file_ids": {
   "anyOf": [
    {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "language": {
   "type": "string",
   "default": "Auto"
  },
  "ref_text": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "model_size": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "notify_url": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "ref_audio_url": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "use_xvector_only": {
   "anyOf": [
    {
     "type": "boolean"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "voice_description": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "render": {},
  "access_key": "example",
  "cancel_url": "example",
  "status_url": "example"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hypercli-text-to-speech-89fd0acc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.hypercli.com](https://www.zero.xyz/host/api.hypercli.com/llms.txt)
