{"uid":"cap_4IMgR3ujtsj04FzLFbBx1","slug":"quickbuild-text-to-speech-api-797969f3","name":"QuickBuild Text-to-Speech API","description":"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.","url":"https://quickbuild.quynguyenbac.workers.dev/api/tts?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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)"}}}}}}},"responseSchema":{"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..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bdjeTqBlSiW0czCqcivok","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text into spoken audio (WAV) using the MeloTTS model, returning base64-encoded audio or raw WAV bytes in multiple languages","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Multilingual voice narration for app","prompt":"Take this Spanish welcome message — 'Hola, bienvenido a nuestro servicio' — and generate an audio clip I can embed in my app. Return it as JSON with the base64 WAV."},{"title":"Accessibility audio for web content","prompt":"I need to make my blog post accessible. Convert this paragraph into spoken English audio: 'Our latest report shows a 30% increase in user engagement this quarter.' Return it as a WAV file."},{"title":"Voice preview for chatbot response","prompt":"Generate a short Japanese audio clip saying 'ありがとうございます、またご利用ください' so I can preview how my chatbot will sound to Japanese users — return the base64 JSON format."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:35.953Z","isFirstParty":false,"canonicalSlug":"quickbuild-text-to-speech-api-797969f3"}