{"uid":"cap_8qQ_C6zpoa547zWLCclAP","slug":"withzero-grok-voice-speech-synthesis-via-zeroclick-484f97d3","name":"WithZero Grok Voice Speech Synthesis via ZeroClick","description":"Convert text to natural-sounding speech with xAI's Grok Voice and return a hosted audio URL.","url":"https://agents.withzero.xyz/api/v1/audio/speech/grok-voice?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","example":{"input":"Hello from WithZero — this is a text to speech sample."},"required":["input","voice"],"properties":{"text":{"type":"string"},"input":{"type":"string","maxLength":4000,"minLength":1,"description":"The text to convert to speech (1–4000 characters)."},"voice":{"type":"string","default":"default","maxLength":64,"minLength":1,"description":"Voice to speak with. Defaults to \"default\"."}},"additionalProperties":false},"responseSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["url","mimeType","sizeBytes","seconds","model","price_usdc"],"properties":{"url":{"type":"string","description":"Hosted URL of the generated audio (WAV, 24kHz mono)."},"model":{"type":"string","description":"The model that produced the audio."},"seconds":{"type":"number","description":"Approximate duration of the generated audio in seconds."},"mimeType":{"type":"string","description":"Content type of the generated audio."},"sizeBytes":{"type":"number","description":"Size of the generated audio in bytes."},"price_usdc":{"type":"string","description":"The amount charged for this request, in USDC."}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.08","displayCostAsset":"USDC","priceDynamic":true,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.50","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":{"amountUsd":"0.08","asset":"USDC"},"pricing":{"kind":"session","summary":"$0.08/call","primary":{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.08","per":"call","confidence":"exact","depositUsd":"0.08"},"accepted":[{"kind":"session","protocol":"mpp","network":"tempo","amountUsd":"0.08","per":"call","confidence":"exact","depositUsd":"0.08"},{"kind":"dynamic","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"},{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_k2bOii4T2j2ozjbEoLDob","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"session","costAmount":"0.08","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":80000,"planRef":null},{"uid":"pm_Py1XkDNPEmCxRbFMsvx-A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_Eiu7Yaw95On7khYmeehvP","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"unknown","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts text to speech audio using Grok Voice model via a pay-per-use proxy, requiring no vendor account or API keys.","exampleAgentPrompt":"Can you turn this script into spoken audio using Grok Voice: 'Welcome to our quarterly update. This quarter we achieved record growth across all product lines.'","exampleUseCases":[{"title":"Narrate a blog post as audio","prompt":"Take this blog post intro and convert it to speech using Grok Voice: 'Artificial intelligence is reshaping how we work, create, and communicate. Here's what you need to know for 2025.'"},{"title":"Generate podcast intro voiceover","prompt":"Create a spoken audio clip from this podcast intro script using Grok Voice: 'Hey everyone, welcome back to The Future Forward podcast. I'm your host, and today we're diving deep into autonomous AI agents.'"},{"title":"Produce accessibility audio for article","prompt":"Convert this article summary into audio so visually impaired users can listen to it — use Grok Voice to synthesize: 'Our new product launches next month with three pricing tiers designed for teams of all sizes.'"}],"resultDescription":"An audio file or audio stream containing the synthesized speech of the provided text, spoken in the Grok Voice model's voice. The response is the rendered audio data returned from the WithZero API via the ZeroClick proxy.","failureModes":["Missing required 'input' body field returns a validation error","Empty or malformed text body may result in an empty or error audio response","Payment failure (insufficient USDC balance) blocks the request before synthesis","Grok Voice model unavailability causes upstream 5xx errors propagated through the proxy","Incorrect bodyType (not json/form-data/text) causes request rejection","Rate limiting or quota exceeded from the upstream WithZero API"],"whenToPreferThis":"Choose this endpoint when you need text-to-speech synthesis using the Grok Voice model specifically, without needing your own API keys or accounts. Ideal for autonomous AI agents that can pay per call in USDC via x402. Prefer over alternatives when the Grok Voice model quality or style is specifically desired, or when avoiding vendor account setup is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":3,"lastUsedAt":"2026-08-20T23:14:25.555Z","lastSuccessfullyRanAt":"2026-06-16T13:14:55.201Z","lastHealthCheckAt":"2026-10-29T07:02:05.818Z","isFirstParty":true,"canonicalSlug":"withzero-grok-voice-speech-synthesis-via-zeroclick-484f97d3"}