{"uid":"cap_T7e4o7DCHlRQbzq3yfJS5","slug":"blockrun-text-to-speech-api-6415afa4","name":"BlockRun Text-to-Speech API","description":"Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 103 models and 100 data and tool APIs.","url":"https://blockrun.ai/api/v1/audio/speech","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Text to synthesize into speech"},"model":{"type":"string","description":"Speech model ID (e.g., elevenlabs/flash-v2.5)"},"speed":{"type":"number","description":"Playback speed 0.7-1.2 (optional)"},"voice":{"type":"string","description":"Voice alias or raw ElevenLabs voice_id"},"response_format":{"type":"string","description":"Audio format: mp3 (default), opus, pcm, wav"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003413","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":2,"rating":{"score":"0.42","successRate":"0.33","reviews":2,"stars":"2.7","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003413/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.053501","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.053501","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FKZMLvdrzqw9DGr0cQon-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.053501","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 audio using ElevenLabs models, paid per-call in USDC with no API key required","exampleAgentPrompt":"Can you convert this text to speech using the ElevenLabs flash-v2.5 model with a female voice at normal speed and give me an mp3: 'Welcome to our platform, we're glad you're here.'","exampleUseCases":[{"title":"Turn blog post into audio","prompt":"Take this blog post introduction and turn it into a spoken mp3 using a natural-sounding male voice — I want to add an audio version to my site without signing up for any subscriptions: 'Artificial intelligence is reshaping the way we work, create, and connect with the world around us.'"},{"title":"Voiceover for product demo","prompt":"Can you generate a voiceover for my product demo script using ElevenLabs and give me the audio as an mp3? Use a confident, clear female voice: 'Introducing SmartFlow — the tool that automates your busiest workflows in seconds. No setup required.'"},{"title":"Podcast intro narration audio","prompt":"I need a podcast intro narrated and saved as a wav file — use a warm, engaging voice and pay per call with crypto so I don't have to commit to a plan: 'Welcome back to The Future Stack, the show where builders share what's actually working in tech today.'"}],"resultDescription":"An audio file (mp3 by default, or opus/pcm/wav if specified) containing the synthesized speech of the provided text, using the selected ElevenLabs voice and model, delivered as a binary audio response","failureModes":["Invalid or unsupported model ID returns an error","Unrecognized voice alias or voice_id returns a 400 error","Speed value outside 0.7–1.2 range is rejected","Insufficient USDC balance causes payment failure and 402 response","Empty or missing input text returns a validation error","Unsupported response_format value causes a format error"],"whenToPreferThis":"Choose this endpoint when you need on-demand text-to-speech with no API key setup, billed per call in USDC on Base or Solana. Ideal for agents or workflows that require infrequent or variable-volume speech synthesis without committing to a subscription, or when operating in a crypto-native payment environment using x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":7,"lastUsedAt":"2026-06-30T12:20:32.667Z","lastSuccessfullyRanAt":"2026-06-19T23:39:30.317Z","lastHealthCheckAt":"2026-09-14T17:52:18.966Z","isFirstParty":false}