# ElevenLabs Premium Text-to-Speech via x402 Gateway

> ElevenLabs Premium Text-to-Speech via x402 Gateway is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Converts text to ultra-realistic speech using ElevenLabs voices, with multilingual support and custom voice ID selection

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/tts/elevenlabs
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 6
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-327f7410
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tVfNuoznG0ojV4ircECw5

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-gateway-production-up-railway-app-327f7410 -d '<json body>'
```

Example prompt: Use ElevenLabs to read this aloud in a natural English voice: 'Welcome to our platform — we're glad you're here.' Use voice ID 21m00Tcm4TlvDq8ikWAM and give me the audio file.

## When to prefer this

Choose this endpoint when you need premium, ultra-realistic text-to-speech quality powered by ElevenLabs, especially when multilingual support or custom/cloned voice IDs are required. Prefer over generic TTS when voice fidelity and naturalness are critical.

## Known failure modes

- Invalid or unknown voice ID returns an error
- Text input too long exceeds character limits
- Unsupported language code causes synthesis failure
- Payment failure (insufficient USDC balance) blocks the request
- Network timeout on audio generation for long texts

## How this service works

Premium text-to-speech with ElevenLabs — ultra-realistic voices, multilingual support, custom voice IDs

## Output

Returns a high-quality audio file of the synthesized speech rendered by ElevenLabs at up to 48kHz, using the specified voice ID and language settings.

## Example request

```json
{
 "text": "Welcome to our platform. We are glad you are here.",
 "language": "en",
 "voice_id": "21m00Tcm4TlvDq8ikWAM"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "example": "Hello world",
       "description": "Text to convert to speech"
      },
      "voice_id": {
       "type": "string",
       "example": "21m00Tcm4TlvDq8ikWAM",
       "description": "ElevenLabs voice ID"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-327f7410/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
