{"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 using OpenAI TTS-1. Returns base64-encoded audio (mp3/opus/aac/flac/wav/pcm). 10 voices available. No API key needed; pay per call via x402. Text capped at 2000 chars.","url":"https://agent402.tools/api/tts","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)"},"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":"tts-1","voice":"alloy","format":"mp3","provider":"openai"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":2,"rating":{"score":"0.96","successRate":"1.00","reviews":2,"stars":"4.8","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"5.0000","medianCents":"5.0000","p90Cents":"5.0000","minCents":"5.0000","maxCents":"5.0000","p95Cents":"5.0000","sampleCount":314,"varies":false,"failureChargeRate":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__mXbaBcxB79meI2ihgIbd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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":356,"lastUsedAt":"2026-09-07T19:26:49.572Z","lastSuccessfullyRanAt":"2026-09-07T19:26:49.572Z","lastHealthCheckAt":"2026-09-13T21:56:00.190Z","isFirstParty":false}