# x402 Gateway Voice-Cloning TTS (Lux)

> x402 Gateway Voice-Cloning TTS (Lux) is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.020000/call, status unknown (last checked 2026-09-13).

Generates 48kHz speech audio by cloning a voice from a reference audio clip using text-to-speech synthesis

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/tts/lux
- Price: $0.020000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 7
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-9acac2e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_46jjHVpjlxzwjk_9sBfrU

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-9acac2e8 -d '<json body>'
```

Example prompt: Use my uploaded voice sample to generate speech that says 'Welcome to our product demo, thanks for joining us today' — clone my voice at 48kHz quality.

## When to prefer this

Choose this endpoint when you need personalized or branded voice audio that matches a specific speaker's voice characteristics, rather than a generic TTS voice. Ideal for agents that need to produce audio content in a user's own voice or a specific reference voice at high 48kHz fidelity.

## Known failure modes

- Reference audio clip is too short or low quality for voice cloning
- Text input is empty or missing
- Unsupported audio format for reference clip
- Payment of $0.02 USDC not fulfilled via x402 protocol
- Reference audio contains too much background noise for accurate cloning
- Server error or timeout during synthesis

## How this service works

Voice-cloning text-to-speech — provide a reference audio clip and generate speech in that voice at 48kHz

## Output

Returns a high-quality 48kHz audio file of the input text spoken in the voice cloned from the provided reference audio clip.

## Example request

```json
{
 "text": "Welcome to our product demo, thanks for joining us today",
 "audio_url": "https://github.com/openai/whisper/raw/main/tests/jfk.flac"
}
```

## 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",
      "audio_url"
     ],
     "properties": {
      "seed": {
       "type": "number",
       "description": "Random seed for reproducibility"
      },
      "text": {
       "type": "string",
       "example": "Hey, what's up? I'm feeling really great today!",
       "description": "Text to convert to speech"
      },
      "audio_url": {
       "type": "string",
       "example": "https://storage.googleapis.com/falserverless/example_inputs/reference_audio.wav",
       "description": "URL of reference audio file for voice cloning"
      },
      "guidance_scale": {
       "type": "number",
       "default": 3,
       "example": 3,
       "description": "Classifier-free guidance scale (0-10)"
      },
      "max_ref_length": {
       "type": "number",
       "default": 5,
       "example": 5,
       "description": "Max reference audio duration in seconds (1-15)"
      },
      "num_inference_steps": {
       "type": "number",
       "default": 4,
       "example": 4,
       "description": "Flow-matching inference steps (1-16)"
      }
     },
     "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-9acac2e8/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)
