{"uid":"cap_24DUIqty6Cf6tynfDD8wS","slug":"text-to-speech-via-melotts-01ac5c70","name":"Text-to-Speech via MeloTTS","description":"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.","url":"https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/speech","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"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_H2zcJVQd_JJb9_Hvuu7zs","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 (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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Multilingual podcast intro narration","prompt":"Convert this podcast intro to speech in Spanish: 'Bienvenidos al episodio de hoy, donde exploramos las últimas tendencias en tecnología.' Give me the audio file link."},{"title":"Accessibility audio for article","prompt":"I want to make this article paragraph accessible as audio — can you synthesize it in English? The text is: 'Artificial intelligence is transforming the way we interact with technology, making everyday tasks faster and more intuitive.'"},{"title":"Japanese app onboarding voiceover","prompt":"Generate a spoken WAV for this Japanese onboarding message: 'ようこそ。このアプリをご利用いただきありがとうございます。' I also need the base64 version so I can embed it directly."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:04.800Z","isFirstParty":false}