# MeloTTS Text-to-Speech via x402

> MeloTTS Text-to-Speech via x402 is a paid API for AI agents from ged-x402-media.jvalamis.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Converts input text to synthesized speech audio (base64-encoded) using MeloTTS, paid per-call with USDC on-chain via x402 — no API key required.

## Facts

- Endpoint: GET https://ged-x402-media.jvalamis.workers.dev/v1/tts/melotts
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/melotts-text-to-speech-via-x402-c4db0e2b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-wsHZKb3qz-1GtqnJ6E6i

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 melotts-text-to-speech-via-x402-c4db0e2b
```

Example prompt: Turn this text into speech using MeloTTS: 'Welcome to our platform. We're glad you're here.' — use the default voice.

## When to prefer this

Choose this endpoint when you need fast, pay-per-use text-to-speech with no API key or account registration, and you can pay in USDC on Base, Polygon, Arbitrum, World, or Solana. Ideal for agents operating in web3 or x402 payment environments needing MeloTTS voice synthesis on-demand.

## Known failure modes

- Payment not received or insufficient USDC — returns 402 Payment Required
- Text parameter missing or empty — returns 400 Bad Request
- Invalid voice ID provided — may return 400 or fall back to default voice
- Model inference failure on the worker — returns 500 Internal Server Error
- Unsupported blockchain network provided for payment — payment rejected

## How this service works

x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.

## Output

A JSON object containing a base64-encoded audio string representing the synthesized speech of the provided text, which can be decoded and played as an audio file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "voice": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "audio": "<base64>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/melotts-text-to-speech-via-x402-c4db0e2b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ged-x402-media.jvalamis.workers.dev](https://www.zero.xyz/host/ged-x402-media.jvalamis.workers.dev/llms.txt)
