# x402-deployer Text-to-Speech (TTS) Voice Generator

> x402-deployer Text-to-Speech (TTS) Voice Generator is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.05/call, not verified (last probed 2026-10-10); live alternatives: x402engine ElevenLabs Text-to-Speech ($0.02) and Google Gemini 3.1 Flash TTS ($0.0028).

Agents call it through Zero, which pays per call: no API key and no wallet of your own. New accounts start with $5.

Live alternatives for the same use case:
- [x402engine ElevenLabs Text-to-Speech](https://www.zero.xyz/c/x402engine-elevenlabs-text-to-speech-6db68b62) ($0.02)
- [Google Gemini 3.1 Flash TTS](https://www.zero.xyz/c/audio-withzero-xyz-google-gemini-3-1-flash-tts-text-to-speech-f794324b) ($0.0028)

Converts text to speech using multiple TTS engines (Kokoro, xAI, ElevenLabs, Orpheus, MiniMax, Gemini) with 30+ voices and 6 audio formats, returning a hosted MP3 URL.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/text-to-speech?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Success rate: 0% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-0dcc3ad7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_00uUhm-lA8IggsvLT02nd

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-deployer-x402-deployer-workers-dev-0dcc3ad7 -d '<json body>'
```

Example prompt: Can you turn this paragraph into spoken audio using an expressive female voice: 'Welcome to our quarterly product update. This release includes major performance improvements and three new features.' — I'd like an MP3 I can share.

## When to prefer this

Prefer this endpoint when you need hosted audio output (a URL you can share) rather than a raw audio stream, when you want access to multiple TTS engine options (ElevenLabs, Kokoro, Gemini, etc.) in a single API, or when you need broad voice variety (30+) across engines without managing multiple API keys. Ideal for agents needing a quick, pay-per-call TTS without subscription overhead.

## Known failure modes

- Text input missing or empty — returns 400 error
- Invalid or unsupported voice name — returns error with available voices
- Unsupported audio format specified — returns 400 with supported formats list
- TTS engine temporarily unavailable — returns 503 or upstream error
- Text too long for single request — may return 413 or truncate
- Payment not included or invalid — returns 402 Payment Required

## How this service works

Text to speech / TTS / voice generator. Venice TTS (Kokoro / xAI / ElevenLabs / Orpheus / MiniMax / Gemini). 30+ voices, 6 audio formats. Returns hosted MP3 URL.

## Output

Returns a hosted MP3 URL pointing to the generated audio file. The audio contains the input text spoken by the selected voice using the chosen TTS engine. The URL can be shared or embedded directly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 4000,
       "description": "Text to synthesize, up to 4,000 characters."
      },
      "model": {
       "type": "string",
       "description": "TTS model ID. Default tts-kokoro; the voice must be compatible with the selected model."
      },
      "speed": {
       "type": "number",
       "description": "Playback speed from 0.25 to 4. Default 1."
      },
      "voice": {
       "type": "string",
       "description": "Model-specific voice ID. Default af_sky; onyx maps to the Kokoro am_onyx voice."
      },
      "format": {
       "enum": [
        "mp3",
        "wav",
        "opus",
        "aac",
        "flac"
       ],
       "type": "string",
       "description": "Audio format. Default mp3."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "format": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "audio_url": {
       "type": "string"
      },
      "file_size_bytes": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

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