{"uid":"cap_fR9MHn_4lGPPEbDO1TffA","slug":"openai-speech-20f236c8","name":"OpenAI Text-to-Speech (TTS)","description":"Text-to-speech","url":"https://openai.mpp.tempo.xyz/v1/audio/speech?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":{"request":{"input":"Hello, this is a test of the text to speech service.","model":"tts-1","voice":"alloy","response_format":"mp3"},"response":{"_binary":true,"_nonJson":true,"_contentType":"audio/mpeg"}},"exampleRequest":{"input":"Hello, this is a test of the text to speech service.","model":"tts-1","voice":"alloy","response_format":"mp3"},"tags":["llm","gpt-4o","dall-e","whisper","tts","embeddings","chat","ai","media"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":10,"rating":{"score":"0.87","successRate":"0.85","reviews":10,"stars":"4.5","state":"rated"},"availabilityStatus":"healthy","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"session","summary":"$0.02/call","primary":{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.02","per":"call","confidence":"exact"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4nDCgG-QdQSvrZ-XBlDPs","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"session","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_-TIYuFgjpCfwLoVkqSodn","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"OpenAI","brandSlug":"openai","brandBaseUrl":"https://openai.com","brandDocsUrl":"https://platform.openai.com/docs","whatItDoes":"Converts input text into spoken audio using OpenAI's TTS models and voices, returning an audio file in the specified format","exampleAgentPrompt":"Can you convert this text to speech using the alloy voice and give me an MP3: 'Welcome to our platform. We're glad you're here.'","exampleUseCases":[{"title":"Generate audio descriptions for product listings","prompt":"Turn these product descriptions into spoken audio using the nova voice so we can add audio to our listings for accessibility"},{"title":"Create podcast intros from text scripts","prompt":"I need you to convert my podcast intro script into speech using the onyx voice and save it as an MP3 file"},{"title":"Produce voiceovers for training videos","prompt":"Can you synthesize this training module script into spoken audio using the shimmer voice? I need it in MP3 format for our internal videos"}],"resultDescription":"A binary audio file (default MP3, or other specified format) containing the synthesized spoken audio of the input text. The response is non-JSON binary content with content-type audio/mpeg (or equivalent for other formats).","failureModes":["Input text too long (exceeds model token limit) — returns 400 error","Invalid voice name specified — returns 400 with validation error","Invalid model specified — returns 400","Invalid response_format value — returns 400","Authentication failure (invalid API key) — returns 401","Rate limit exceeded — returns 429","Service unavailable — returns 500"],"whenToPreferThis":"Use this endpoint when you need high-quality AI-generated speech from OpenAI's TTS models with multiple voice options and audio format choices. Prefer over alternatives when already using OpenAI's ecosystem, when you need consistent voice quality, or when you require specific voices like alloy, echo, fable, onyx, nova, or shimmer. This is the canonical OpenAI TTS endpoint accessible via the mpp/x402 payment protocol at a flat $0.02 USDC per call.","instructions":null,"reviewSummary":"Text-to-speech service delivers clean, natural-sounding MP3 narration across multiple voices (onyx, nova) and model tiers (tts-1, tts-1-hd), with accurate pronunciation of technical terms and consistent tone across separate calls. Short-to-medium scripts (30–165 words) produce reliable output with natural pacing and no audio artifacts. One blocked call with no audio or charge indicates occasional request filtering, and cost scales significantly with input length and model tier on longer inputs.","reviewSummaryHighlights":["Natural prosody and accurate pronunciation of technical abbreviations across voices","Consistent, artifact-free MP3 output at 24kHz for short and medium narrations","Low latency and reliable delivery for short-form voiceover use cases"],"reviewSummaryConcerns":["Occasional requests blocked with no audio output and no charge","Cost scales sharply with input length and HD model tier — longer scripts can run 5x the median price"],"reviewSummaryGeneratedAt":"2026-07-22T20:15:06.608Z","activationCount":321,"lastUsedAt":"2026-09-28T17:05:34.449Z","lastSuccessfullyRanAt":"2026-09-28T17:05:34.449Z","lastHealthCheckAt":"2026-10-11T04:29:39.508Z","isFirstParty":false,"canonicalSlug":"openai-speech-20f236c8"}