{"uid":"cap_9hNdity72xqfYysfSDXMm","slug":"molcloud-text-to-speech-tts-b33d3546","name":"MolCloud Text-to-Speech (TTS)","description":"41 pay-per-request AI, search, headless browser, crypto alpha & memory APIs for autonomous agents settling in USDC on Base via x402 v2.","url":"https://api.molcloud.net/api/ai/tts?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lang":{"type":"string","default":"en","description":"Language code (en, es, fr, zh, ja, kr)"},"text":{"type":"string","description":"Text to synthesize into spoken audio"}}},"responseSchema":{"type":"json","example":{"data":{"audioDataUrl":"data:audio/mp3;base64,..."},"status":"success","endpoint":"/api/ai/tts"}},"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_wFL6v_cN7BoZ5t-SgIzdL","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 (MP3) in multiple languages, returning a base64-encoded audio data URL, paid per-request via x402 USDC.","exampleAgentPrompt":"Can you read this sentence out loud in French and give me the audio: 'Bienvenue dans notre application, nous sommes ravis de vous accueillir'?","exampleUseCases":[{"title":"Multilingual voice notification for agent","prompt":"I need you to synthesize this alert message into spoken Japanese audio so my app can play it to users: 'Your order has been confirmed and will arrive tomorrow.'"},{"title":"Accessibility audio for written content","prompt":"Please convert this paragraph into English speech audio so I can embed it as a listen-to-this-article feature: 'Climate change is one of the defining challenges of our time, requiring urgent global cooperation.'"},{"title":"Spanish voice response for chatbot","prompt":"Turn this Spanish customer service reply into spoken audio: 'Gracias por contactarnos, su problema será resuelto en 24 horas.'"}],"resultDescription":"Returns a JSON object with a `data.audioDataUrl` field containing a base64-encoded data URI (data:audio/mp3;base64,...) ready for playback or embedding, along with a `status` field ('success') and the endpoint path.","failureModes":["Empty or missing `text` field returns an error response","Unsupported language code may fall back to default or return an error","Very long text inputs may be truncated or rejected","Payment failure via x402 (insufficient USDC balance) results in 402 response before processing","Network timeouts on the edge gateway for unusually large synthesis requests"],"whenToPreferThis":"Choose this endpoint when your AI agent needs pay-per-request text-to-speech with no subscription or API key setup, especially within a broader MolCloud/x402 workflow where USDC micropayments on Base are already in use. Ideal for autonomous agents that only occasionally need speech synthesis and want usage-based pricing rather than a standing account.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:36.745Z","isFirstParty":false,"canonicalSlug":"molcloud-text-to-speech-tts-b33d3546"}