Api Endpoint

quickbuild.quynguyenbac.workers.dev

Turn text (up to 2000 chars) into spoken audio with MeloTTS on Cloudflare Workers AI, in English, Spanish, French, Chinese, Japanese or Korean. Returns JSON with audio_base64 + mimeType (audio/wav, 44.1 kHz mono), or the raw audio bytes with format=wav. Good for voice replies, narration, accessibility and language practice. Text with sexual, hateful or violent content is refused (HTTP 400, not charged). All params optional: with none it speaks a short English sample. GET with query params or...

Open interactive test console

Offering

Provider
quickbuild.quynguyenbac.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://quickbuild.quynguyenbac.workers.dev/api/tts
MIME type
application/json
First seen
2026-10-23T22:46:33.373Z
Last seen
Tags
AI, tts, text-to-speech, speech, voice

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x751a4c3841bE287544C371B4EE09Bd3366AeA7cf"
  }
]

Observed health

Status
Healthy
Latest latency
344 ms
Average latency
493 ms
HTTP status
402
Last checked
Reachability
100% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Text to speak (max 2000 chars). Optional: defaults to a short English sample."
        },
        "lang": {
          "type": "string",
          "enum": [
            "en",
            "es",
            "fr",
            "zh",
            "ja",
            "ko"
          ],
          "description": "Language of the text / voice (default en)."
        },
        "format": {
          "type": "string",
          "enum": [
            "json",
            "wav"
          ],
          "description": "json (default): {audio_base64, mimeType, ...}; wav: raw audio bytes."
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "lang": {
          "type": "string"
        },
        "chars": {
          "type": "integer"
        },
        "mimeType": {
          "type": "string"
        },
        "bytes": {
          "type": "integer"
        },
        "audio_base64": {
          "type": "string",
          "description": "Base64-encoded audio (WAV)"
        },
        "model": {
          "type": "string"
        }
      }
    }
  },
  "required": [
    "type"
  ]
}