{"uid":"cap_KEAL3rp1TV5R2Ml7U_kp_","slug":"aile-text-to-speech-api-c7e1e135","name":"Aile Text-to-Speech API","description":"Rent trusted AI models priced per token; lend idle subscriptions and API keys. A live, metered market that settles every call in USDC on Solana.","url":"https://api.aile.sh/v1/audio/speech?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input","model"],"properties":{"input":{"type":"string","description":"The text to speak. THE PRICE IS PER 1,000 CHARACTERS of it."},"model":{"type":"string","description":"`<provider>/<model>`, e.g. `elevenlabs/eleven_multilingual_v2`. GET /v1/models?output_modalities=speech lists what is servable, with prices."},"speed":{"type":"number"},"voice":{"type":"string","description":"The provider's voice id or name."},"stream_format":{"enum":["sse"],"type":"string","description":"`sse` frames the finished audio as events. `audio` streaming needs an API key."},"response_format":{"enum":["mp3","opus","aac","flac","wav","pcm"],"type":"string"}}},"responseSchema":{"note":"The answer body is the audio bytes, with the provider's own content-type (audio/mpeg by default)."},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.00365","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.00365/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00365","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00365","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-MEo5NXirhQtDwsm2OINu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.00365","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text to spoken audio using premium AI voice models (e.g. ElevenLabs) via a pay-per-use USDC marketplace, returning audio bytes in the chosen format.","exampleAgentPrompt":"Using the ElevenLabs eleven_multilingual_v2 model on Aile, convert this paragraph to speech with the 'Rachel' voice and give me an mp3: 'Welcome to our weekly podcast. Today we explore the future of artificial intelligence.'","exampleUseCases":[{"title":"Podcast intro narration generation","prompt":"Turn this intro script into spoken audio using elevenlabs/eleven_multilingual_v2 with the 'Adam' voice and return it as an mp3: 'Hello and welcome back to TechTalk, the podcast where we break down what's happening in the world of technology.'"},{"title":"Multilingual e-learning voiceover","prompt":"I need an audio narration for an online course slide — use elevenlabs/eleven_multilingual_v2, voice 'Bella', and produce a flac file from this text: 'In this module, you will learn the fundamentals of machine learning and how neural networks process data.'"},{"title":"Accessibility audio for article","prompt":"Read this news article excerpt aloud using the ElevenLabs eleven_multilingual_v2 model and the 'Josh' voice, output as wav: 'Scientists announced today a major breakthrough in quantum computing that could change the landscape of data encryption.'"}],"resultDescription":"The response body is raw audio bytes in the requested format (default: audio/mpeg). The Content-Type header reflects the provider's audio type. For SSE stream_format, audio is framed as server-sent events. No JSON wrapper — just the binary audio data ready to play or save.","failureModes":["Invalid or unsupported model string — returns error if model is not listed in GET /v1/models?output_modalities=speech","Voice ID not found for the selected provider — returns provider error","Insufficient USDC balance to cover the per-1000-character charge — payment rejected","Input text too long or empty — validation error","Unsupported response_format for the chosen model — format mismatch error","SSE streaming requested but audio streaming requires an API key — returns auth error"],"whenToPreferThis":"Choose this endpoint when you need access to premium third-party speech synthesis models (such as ElevenLabs) without managing individual provider subscriptions, and when you want pay-per-use USDC micropayment billing per 1,000 characters. Ideal for agents that need flexible, multi-provider TTS access through a single API surface with crypto-native settlement on Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:35:49.279Z","isFirstParty":false,"canonicalSlug":"aile-text-to-speech-api-c7e1e135"}