{"uid":"cap_LtzRgj97wyISC6vwzjoy7","slug":"agent402-tools-text-to-speech-openai-tts-1-8fff06f8","name":"agent402.tools Text-to-Speech (OpenAI TTS-1)","description":"Convert text to speech with the eleven-v4-turbo model: returns audio (the base64-encoded file in the format asked for: mp3, opus, aac, flac, wav or pcm) with model, voice, format and chars (the characters spoken). The ten standard voice names each map to their own voice, or name one of 21 named voices directly; the answer names the voice that spoke. 90+ languages.","url":"https://agent402.tools/api/tts?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to convert to speech (max 2000 chars)"},"voice":{"type":"string","description":"Voice: alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer (default: alloy), each mapped to its own voice, or a named voice (george, sarah, adam, alice, bella, bill, brian, callum, charlie, chris, daniel, eric, harry, jessica, laura, liam, lily, matilda, river, roger, will)"},"format":{"type":"string","description":"Audio format: mp3, opus, aac, flac, wav, pcm (default: mp3)"}}},"responseSchema":{"type":"json","example":{"audio":"<base64-encoded audio>","chars":20,"model":"elevenlabs/eleven-v4-turbo","voice":"river","format":"mp3","provider":"openrouter"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":2,"rating":{"score":"0.96","successRate":"1.00","reviews":2,"stars":"4.8","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__mXbaBcxB79meI2ihgIbd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.12","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts input text (up to 2000 chars) to base64-encoded audio using OpenAI TTS-1, with 10 voice options and multiple output formats, paid per-call via x402.","exampleAgentPrompt":"Can you read this aloud using the nova voice and give me back an mp3: 'Welcome to our platform! We're thrilled to have you on board and hope you enjoy your experience.'","exampleUseCases":null,"resultDescription":"A base64-encoded audio file in the requested format (mp3, opus, aac, flac, wav, or pcm) containing the synthesized speech of the input text, generated using one of 10 available OpenAI TTS-1 voices.","failureModes":["Text exceeds 2000 character limit — request rejected","Invalid voice name provided — falls back to default or errors","Unsupported audio format specified — errors or falls back to mp3","Payment not completed via x402 — 402 Payment Required response","Network timeout if synthesis takes too long for long inputs"],"whenToPreferThis":"Use this endpoint when you need server-side text-to-speech synthesis without managing your own OpenAI API key, want pay-per-call pricing via x402 (no subscription), need a specific voice from OpenAI's TTS-1 lineup (alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer), or require a specific audio format output as base64 for easy embedding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":382,"lastUsedAt":"2026-09-16T18:50:14.031Z","lastSuccessfullyRanAt":"2026-09-16T18:50:14.031Z","lastHealthCheckAt":"2026-10-30T15:39:11.938Z","isFirstParty":false,"canonicalSlug":"agent402-tools-text-to-speech-openai-tts-1-8fff06f8"}