{"uid":"cap_6xHRd1vdoKI6dyuC1dmeZ","slug":"agentutility-voice-text-to-speech-api-6f3a29f6","name":"AgentUtility Voice — Text-to-Speech API","description":"Turn written text into spoken audio you can drop straight into a player or app. Send text (up to 4,000 characters) with an optional voice, model, speed, and output format of mp3, wav, opus, aac, or flac, and get back a hosted audio_url plus file size and content type, no base64 handling required. Runs on Venice's text-to-speech models with 30+ selectable voices and adjustable playback speed from 0.25x to 4x. Use it as a text-to-speech API, voice synthesis tool, or narration generator for voiceovers, IVR prompts, or accessibility read-aloud features.","url":"https://x402.agentutility.ai/voice","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"audio_url":"https://...mp3"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mwwJUxIhJ3Onni5ksh5nZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text (up to 4,000 characters) into a hosted audio file in your chosen format, voice, and speed, returning a direct audio_url ready to play.","exampleAgentPrompt":"Read this product description aloud in the 'af_sky' voice at normal speed and give me a hosted MP3 I can drop straight into my app: 'Introducing the new AeroBlend Pro — the smoothest blending experience you'll ever have.'","exampleUseCases":[{"title":"IVR prompt audio generation","prompt":"Turn this customer service greeting into a WAV file using the default voice at 1x speed so I can upload it to our phone system: 'Thank you for calling Apex Support. Press 1 for billing, press 2 for technical help.'"},{"title":"Accessibility read-aloud feature","prompt":"Convert this 500-word article summary into an MP3 narration at 1.25x speed using any clear voice so I can embed a listen button on our website."},{"title":"Podcast intro voiceover","prompt":"Generate a voiced intro for my podcast using the 'af_sky' voice at 1x speed in MP3 format — the script is: 'Welcome to The Build Log, where founders share the raw, unfiltered story behind their products.'"}],"resultDescription":"A JSON object containing an audio_url pointing to the hosted audio file (e.g. an MP3 at a public HTTPS URL), along with the file's content type and size — no base64 decoding needed, the URL is directly embeddable in a player or app.","failureModes":["Text exceeds 4,000 character limit — request rejected","Invalid voice ID provided — falls back to default or returns error","Unsupported format string — returns validation error","Speed value outside 0.25–4 range — returns validation error","Payment not settled via x402 — 402 Payment Required response","Upstream Venice TTS model unavailable — service error returned"],"whenToPreferThis":"Choose this endpoint when you need a hosted, directly playable audio URL from text without handling binary data or base64 encoding yourself. It is ideal for agents that need to produce voiceovers, IVR prompts, or accessibility audio on demand and require payment via USDC on Base (x402 protocol). Prefer it over raw OpenAI TTS or similar APIs when you want a managed hosted file URL returned rather than raw audio bytes, and when you need 30+ voice options and flexible format support in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:50:28.055Z","isFirstParty":false}