{"uid":"cap_117zI93TgP_oQkrcxvedV","slug":"openai-gpt-4o-mini-tts-text-to-speech-db1bc07e","name":"OpenAI GPT-4o Mini TTS (Text-to-Speech)","description":"gpt-4o-mini-tts: OpenAI GPT 4o Mini TTS text to speech, paid per call in USDC. OpenAI list $12 per 1M audio tokens (quoted at 4 per character) plus $0.6 per 1M text tokens, plus $0.0005 (Base) or $0.0005 (Solana) per call; up to 4096 characters; accepts instructions. Returns the audio bytes (mp3 by default). Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/gpt-4o-mini-tts/audio/speech?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string"},"model":{"enum":["gpt-4o-mini-tts"],"type":"string"},"speed":{"type":"number"},"voice":{"type":"string"},"instructions":{"type":"string"},"response_format":{"enum":["mp3","opus","aac","flac","wav","pcm"],"type":"string"}}},"responseSchema":{"type":"json","example":{"body":"binary audio bytes (mp3 by default)","content_type":"audio/mpeg"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sNHODHqivzCBJgeUMszt5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text input into spoken audio using OpenAI's gpt-4o-mini-tts model, returning binary audio bytes in formats like MP3, with support for custom voice instructions and speed control.","exampleAgentPrompt":"Can you read this product announcement aloud using gpt-4o-mini-tts — use the 'alloy' voice, speak at 1.0x speed, and keep a professional tone: 'We're thrilled to introduce our new AI-powered assistant, available today'? Give me an mp3.","exampleUseCases":[{"title":"Automated podcast narration","prompt":"Take this 3-paragraph article summary and convert it to spoken audio using gpt-4o-mini-tts with the 'nova' voice at 1.0 speed — I want an mp3 I can drop into my podcast feed."},{"title":"Accessibility audio for web content","prompt":"Generate an mp3 of the following text being read aloud for our visually impaired users, using gpt-4o-mini-tts with a calm, clear voice and normal speed: 'Your order has been confirmed and will arrive in 3–5 business days.'"},{"title":"Custom voice instruction demo","prompt":"Use gpt-4o-mini-tts to read 'Welcome to Stellar Bank, how can I assist you today?' in a warm, friendly customer-service tone using the 'shimmer' voice — output it as a wav file."}],"resultDescription":"Returns binary audio bytes (default: MP3, audio/mpeg) of the synthesized speech. Supports formats including mp3, opus, aac, flac, wav, and pcm. The audio represents the input text spoken in the selected voice, at the specified speed, and optionally shaped by custom instructions.","failureModes":["Input text exceeds 4096 character limit — request rejected","Invalid voice name provided — API error","Unsupported response_format value — schema validation error","Payment failure or insufficient USDC balance — 402 payment required error","Empty or missing input field — bad request error","Network timeout on audio generation — connection error"],"whenToPreferThis":"Choose this endpoint when you need cost-effective AI text-to-speech with instruction-following capability (e.g. controlling tone, emotion, or accent), and your text is under 4096 characters. Prefer gpt-4o-mini-tts over tts-1 or tts-1-hd when you want a modern, instruction-aware model at a lower price point. Prefer this over gpt-4o-mini-tts alternatives when you need x402/USDC micropayment billing with no subscription required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:52.238Z","isFirstParty":false,"canonicalSlug":"openai-gpt-4o-mini-tts-text-to-speech-db1bc07e"}