{"uid":"cap_NlnBG5hYMDnLSsj4nMMyd","slug":"elevenlabs-text-to-speech-via-tokens-fun-f928ddd4","name":"ElevenLabs Text-to-Speech via tokens.fun","description":"ElevenLabs text-to-speech: send text (up to 4000 chars) with optional voice_id, model, format, and speed; get back a hosted audio_url plus size and content type. Send 'Accept: audio/mpeg' to stream raw audio bytes directly instead. Voice catalog with free preview clips at GET /voices (no payment). Priced per character; the 402 amount is computed from your text length.","url":"https://eleven.tokens.fun/speak","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to synthesize into speech. Max 4000 characters."},"model":{"type":"string","description":"TTS model id from GET /voices. Optional, default eleven_flash_v2_5."},"speed":{"type":"number","description":"Playback speed 0.7-1.2. Optional, default 1."},"format":{"type":"string","description":"Output audio format. Optional, default mp3_44100_128."},"voice_id":{"type":"string","description":"ElevenLabs voice id from GET /voices. Optional; a default voice is used if omitted."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Z19SJvsP1lgA9dDJtTuHU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text to speech using ElevenLabs TTS models, returning a hosted audio URL or streamable raw audio bytes","exampleAgentPrompt":"Can you use ElevenLabs to read this aloud in the default voice at normal speed: 'Welcome to our platform. We're glad you're here. Let's get started on your journey today.' — give me back a hosted mp3 link.","exampleUseCases":[{"title":"Audiobook narration from article","prompt":"Take this 800-word article and synthesize it into speech using ElevenLabs — use voice ID 21m00Tcm4TlvDq8ikWAM and the eleven_flash_v2_5 model, give me back a hosted audio URL I can share."},{"title":"Podcast intro voiceover","prompt":"Generate a voiced intro for my podcast episode using ElevenLabs: 'Today on TechTalks, we dive deep into the future of artificial intelligence.' Use a slightly slower speed of 0.9 and give me back an mp3 link."},{"title":"Accessibility audio for web content","prompt":"Convert this product description into spoken audio so I can embed it on my website for visually impaired users: 'Our premium noise-cancelling headphones deliver 30 hours of battery life and crystal-clear sound.' Use the default voice and format."}],"resultDescription":"Returns a JSON object containing a hosted audio_url where the synthesized speech can be accessed or downloaded, along with the file size in bytes and content type. Alternatively, when the Accept: audio/mpeg header is sent, streams raw MP3 audio bytes directly.","failureModes":["402 Payment Required if x402 payment is not included — amount computed based on character count","Text exceeds 4000 character limit — request rejected","Invalid voice_id returns an error from ElevenLabs","Invalid model ID causes synthesis failure","Unsupported audio format string causes a bad request error","Rate limiting or quota issues from underlying ElevenLabs API"],"whenToPreferThis":"Choose this endpoint when you need high-quality AI voice synthesis powered by ElevenLabs without managing your own ElevenLabs API key, and you want per-call micropayment billing via x402 rather than a subscription. Ideal for agents that occasionally need TTS and want a hosted audio URL returned directly. Use the streaming mode (Accept: audio/mpeg) when you need real-time audio delivery rather than a URL.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":7,"lastUsedAt":"2026-08-05T16:06:59.638Z","lastSuccessfullyRanAt":"2026-08-05T16:04:53.339Z","lastHealthCheckAt":"2026-09-15T18:36:58.641Z","isFirstParty":false}