{"uid":"cap_jfqSt60_dT6g3Ip1XxM_b","slug":"grok-tts-via-locus-x402-654ef34c","name":"Grok TTS via Locus x402","description":"Locus public pay-per-use API","url":"https://grok.x402.paywithlocus.com/grok/tts","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"language":{"type":"string"},"voice_id":{"type":"string"},"output_format":{"type":"object","additionalProperties":true}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"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_EksR5xUgNp8-Csa6K2K1S","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 to speech using xAI's Grok models, with multiple voices, language support, and inline speech tags, billed per-call via x402 micropayment.","exampleAgentPrompt":"Can you read this aloud using the warm 'ara' voice in English: 'Welcome to our platform. [pause] We're so glad you're here.' — give me the audio as an MP3.","exampleUseCases":[{"title":"Podcast intro narration","prompt":"Turn this script into speech using the 'leo' authoritative voice in English, output as MP3: 'Good morning, listeners. [pause] Today we explore the future of artificial intelligence.'"},{"title":"Multilingual customer greeting","prompt":"Synthesize this French greeting as audio using the 'eve' voice: 'Bonjour et bienvenue! Nous sommes ravis de vous accueillir.' — use BCP-47 code 'fr' and give me a WAV file."},{"title":"Expressive story narration with whisper effect","prompt":"Convert this story excerpt to speech with the 'sal' smooth voice: 'The door creaked open slowly. <whisper>Something was waiting inside.</whisper> [pause] She stepped forward.' — output as MP3."}],"resultDescription":"Returns a JSON object with a data field containing the synthesized audio (or a reference/URL to it), a payment confirmation showing 0.001 USDC settled, a request ID and status URL for tracking, and a success flag.","failureModes":["Text exceeds 15,000 character limit — request rejected","Invalid BCP-47 language code — may fall back to auto-detection or return error","Unknown voice_id value — defaults to 'eve' or returns validation error","Unsupported audio codec or sample rate in output_format — format error","Payment failure or insufficient USDC balance — x402 payment rejected","Service unavailable or xAI backend error — non-200 response"],"whenToPreferThis":"Choose this endpoint when you need high-quality AI speech synthesis with multiple expressive voice options, multilingual support, and inline speech markup (pauses, laughs, whispers), especially in contexts where micropayment-per-call via x402/USDC is preferred over subscription billing. Prefer it over generic TTS APIs when you want access to xAI's Grok voice models specifically, or when building agent workflows that need pay-as-you-go audio generation without API key management overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:39:49.974Z","isFirstParty":false}