# QuickBuild Text-to-Speech API

> QuickBuild Text-to-Speech API is a paid API for AI agents from quickbuild.quynguyenbac.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-21).

Converts text into spoken audio (WAV) using the MeloTTS model, returning base64-encoded audio or raw WAV bytes in multiple languages

## Facts

- Endpoint: GET https://quickbuild.quynguyenbac.workers.dev/api/tts?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quickbuild-text-to-speech-api-797969f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4IMgR3ujtsj04FzLFbBx1

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 quickbuild-text-to-speech-api-797969f3
```

Example prompt: Can you convert this sentence into spoken audio in French: 'Bonjour, bienvenue dans notre application'? Give me the result as a JSON with the base64 audio.

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call TTS API that supports multiple languages (en, es, fr, zh, ja, ko) and returns audio as base64 JSON or raw WAV without requiring a subscription. Ideal for agents that need on-demand voice synthesis at very low cost ($0.005/call) and can work with WAV format output from a MeloTTS-backed model.

## Known failure modes

- Text exceeds 2000 character limit — request rejected or truncated
- Unsupported language code returns an error or falls back to English
- Invalid format parameter may return an error response
- Network or Cloudflare Worker timeout for very long text inputs
- Missing or empty text parameter defaults to a built-in English sample rather than erroring

## How this service works

Landing pages ($15), Google Sheets/Apps Script automation ($10), scrapers, scripts & Telegram bots (from $15), broken-link + sitemap audit reports ($10). See a working demo first, pay after.

## Output

Returns a JSON object containing the base64-encoded WAV audio string, MIME type (audio/wav), the input text echoed back, character count, byte count, detected language, and the model used (@cf/myshell-ai/melotts). Alternatively, when format=wav is specified, returns raw WAV audio bytes 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "lang": {
       "enum": [
        "en",
        "es",
        "fr",
        "zh",
        "ja",
        "ko"
       ],
       "type": "string",
       "description": "Language of the text / voice (default en)."
      },
      "text": {
       "type": "string",
       "description": "Text to speak (max 2000 chars). Optional: defaults to a short English sample."
      },
      "format": {
       "enum": [
        "json",
        "wav"
       ],
       "type": "string",
       "description": "json (default): {audio_base64, mimeType, ...}; wav: raw audio bytes."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "lang": {
       "type": "string"
      },
      "text": {
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "chars": {
       "type": "integer"
      },
      "model": {
       "type": "string"
      },
      "mimeType": {
       "type": "string"
      },
      "audio_base64": {
       "type": "string",
       "description": "Base64-encoded audio (WAV)"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lang": "en",
  "text": "Hello! This short clip was generated by a text to speech API.",
  "bytes": 330000,
  "chars": 61,
  "model": "@cf/myshell-ai/melotts",
  "mimeType": "audio/wav",
  "audio_base64": "UklGRl4dCABXQVZF..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quickbuild-text-to-speech-api-797969f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quickbuild.quynguyenbac.workers.dev](https://www.zero.xyz/host/quickbuild.quynguyenbac.workers.dev/llms.txt)
