# Text-to-Speech via MeloTTS

> Text-to-Speech via MeloTTS is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Converts text (up to 2000 characters) into natural speech audio using MeloTTS, returning a hosted WAV URL and optional base64, in English, Spanish, French, Chinese, Japanese, or Korean.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/speech
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-to-speech-via-melotts-01ac5c70
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_24DUIqty6Cf6tynfDD8wS

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 text-to-speech-via-melotts-01ac5c70 -d '<json body>'
```

Example prompt: Can you turn this text into spoken audio in French using MeloTTS: 'Bonjour, bienvenue dans notre application. Nous sommes ravis de vous accueillir.' — just give me the WAV file link.

## When to prefer this

Choose this endpoint when you need fast, low-cost multilingual TTS (English, Spanish, French, Chinese, Japanese, Korean) without account setup or API keys, especially for short to medium text segments up to 2000 characters. Ideal for agents that need pay-per-use speech synthesis via x402 micropayments with no subscription overhead.

## Known failure modes

- Text exceeds 2000 character limit — request rejected
- Unsupported language code provided — no audio generated
- Audio delivery failure — no charge applied
- Hosted URL expires after 24 hours — must re-request for fresh link
- Network timeout from Cloudflare Workers edge

## How this service works

Turns text into natural speech with MeloTTS in English, Spanish, French, Chinese, Japanese or Korean, in about a second. Returns a hosted WAV URL valid for 24 hours plus its size; add inline=true to also get the base64. Up to 2000 characters per call. You are only charged if the audio is delivered. No API key, no account.

## Output

Returns a hosted WAV audio URL valid for 24 hours and the file size in bytes. If inline=true is requested, also returns the base64-encoded audio. The audio is generated in approximately one second and covers up to 2000 characters of input text.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-to-speech-via-melotts-01ac5c70/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
