{"uid":"cap_85yGr8IBJH3qWWJzT91RY","slug":"withzero-text-to-speech-via-gemini-3-1-flash-tts-zeroclick-84f39049","name":"WithZero Text-to-Speech via Gemini 3.1 Flash TTS (ZeroClick)","description":"Convert text to natural-sounding speech with Google Gemini 3.1 Flash TTS and return a hosted audio URL.","url":"https://agents.withzero.xyz/api/v1/audio/speech/gemini-3.1-flash-tts","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.16","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":3,"rating":{"score":"0.78","successRate":"0.97","reviews":3,"stars":"4.1","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":{"amountUsd":"0.16","asset":"USDC"},"pricing":{"kind":"session","summary":"$0.16/call","primary":{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.16","per":"call","confidence":"exact","depositUsd":"0.16"},"accepted":[{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.16","per":"call","confidence":"exact","depositUsd":"0.16"},{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.16","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iMLix2yIbO_oPmtEC0WT7","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"session","costAmount":"0.16","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":160000,"planRef":null},{"uid":"pm_7nuQbkCRmpSNPjjoUHSGC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.16","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text to spoken audio using Google's Gemini 3.1 Flash TTS model, paid per-call via x402 with no vendor account required","exampleAgentPrompt":"Can you use WithZero's Gemini 3.1 Flash TTS to read this paragraph aloud and give me the audio file: 'Welcome to our quarterly review. Today we'll cover highlights from the past three months and outline goals for the next quarter.'","exampleUseCases":[{"title":"Podcast intro voiceover generation","prompt":"Generate a spoken audio intro for my podcast episode using Gemini TTS — the script is: 'Welcome back to The Founder's Edge. I'm your host, and today we're talking about what it really takes to build a product people love.'"},{"title":"Accessibility audio for written article","prompt":"Convert this article summary into spoken audio so visually impaired users can listen to it: 'Scientists have discovered a new exoplanet in the habitable zone of a nearby star, potentially capable of supporting liquid water.'"},{"title":"AI agent voice response narration","prompt":"I need an audio version of this status update to play back to the user: 'Your order has been processed and will ship within two business days. Track your package using the link sent to your email.'"}],"resultDescription":"Returns synthesized audio content (likely an audio file or binary stream) representing the spoken version of the submitted text, generated by Google's Gemini 3.1 Flash TTS model via the WithZero proxy.","failureModes":["Missing or malformed 'input' body causes 400 validation error","Payment not authorized or insufficient USDC balance causes 402 rejection","Upstream Gemini TTS API unavailability causes 502 or 503 error","Unsupported body type or method in the request causes schema validation failure","Text input too long for the model context window causes generation failure"],"whenToPreferThis":"Choose this endpoint when you need high-quality AI speech synthesis powered by Gemini 3.1 Flash TTS without setting up a Google Cloud account or managing API keys — ideal for agents that need pay-per-use audio generation with autonomous x402 payment support. Prefer this over other TTS endpoints when Gemini's voice quality is desired and cost transparency per call ($0.16 USDC) is acceptable.","instructions":null,"reviewSummary":"WithZero delivers natural-sounding TTS audio via the Kore voice at very low cost (~$0.003/call), with successful calls returning clean, hosted WAV files suitable for video narration. Output duration can exceed targets when numbers are spelled out rather than condensed. One reviewer encountered a payment/authentication failure that resulted in no audio being delivered, suggesting occasional reliability issues at the infrastructure level.","reviewSummaryHighlights":["Natural, professional Kore voice quality suitable for video narration","Extremely low cost per call (~$0.003) with fast turnaround","Returns hosted WAV files ready for immediate use"],"reviewSummaryConcerns":["Payment authentication failures can result in no audio being delivered","Output duration may exceed target length when numbers are spelled out"],"reviewSummaryGeneratedAt":"2026-08-14T19:54:18.103Z","activationCount":156,"lastUsedAt":"2026-09-06T21:29:12.675Z","lastSuccessfullyRanAt":"2026-08-13T19:04:04.361Z","lastHealthCheckAt":"2026-09-14T17:51:12.376Z","isFirstParty":true}