{"uid":"cap_Jc-2HbHzTGnjSxbZzzVb8","slug":"x402-shop-text-to-speech-tts-via-kokoro-82m-usdc-on-base-4bf59a05","name":"x402 Shop — Text-to-Speech (TTS) via Kokoro-82M · USDC on Base","description":"Pay-per-use ASR and TTS for AI agents. ASR: send a podcast feed (RSS) or any audio URL, get back a clean timestamped transcript, optionally plus an AI synthesis (thesis, keypoints, verbatim quotes, takeaways). Modes: synthesis or transcript. TTS: text in -> synthesized mp3 out (Kokoro-82M). Exact USDC price quoted in the 402 challenge; pay per job on Base.","url":"https://x402.stan01.xyz/v1/terminal/tts","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Inline text to synthesize"},"chars":{"type":"integer","minimum":1,"description":"Estimated char count for text_url (required for URL input)"},"speed":{"type":"number","default":1,"maximum":2,"minimum":0.5},"voice":{"type":"string","description":"Kokoro voice, e.g. af_heart (default)"},"text_url":{"type":"string","format":"uri","description":"https URL to a text file (requires \"chars\" estimate)"}}},"responseSchema":{"type":"json","example":{"job_id":"00000000-0000-0000-0000-000000000000","status":"running"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AlgDFXuYcrD_jVNUDigBc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Synthesizes natural-sounding MP3 audio from input text using the Kokoro-82M model, billed per job in USDC on Base via x402.","exampleAgentPrompt":"Can you synthesize this script into spoken audio using the af_heart voice at normal speed: 'Welcome to our weekly briefing. Here's what happened this week in AI.'","exampleUseCases":[{"title":"Podcast narration from article text","prompt":"Turn this 2,000-character blog post into an MP3 narration using the default Kokoro voice at speed 1 — I want to add it as an audio version of the article."},{"title":"Accessibility audio for written content","prompt":"I have a plain-text transcript at https://example.com/transcript.txt — it's about 4500 characters. Can you synthesize it into speech using the af_heart voice so visually impaired users can listen to it?"},{"title":"Custom-speed voiceover for a demo","prompt":"Synthesize this short product walkthrough script into audio at 1.5x speed using a Kokoro voice: 'This is how you set up your account in three easy steps.'"}],"resultDescription":"Returns a JSON object with a job_id (UUID) and a status field (e.g. 'running'), indicating the TTS job has been queued. The agent would poll or retrieve the completed MP3 once the job finishes.","failureModes":["Missing required text or text_url field — returns validation error","chars estimate missing when text_url is provided — required for pricing/quoting","Speed value out of range (below 0.5 or above 2) — rejected with validation error","Invalid or unreachable text_url — job may fail or timeout","Payment challenge not met — 402 returned until USDC payment on Base is completed","Unknown or unsupported voice name — may fall back to default or return error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use, per-job TTS synthesis using the Kokoro-82M model and want to pay in USDC on Base with no subscription — ideal for AI agents that need occasional or bursty audio generation without committing to a recurring API plan. Prefer it over general TTS APIs when the x402 micropayment flow fits your agent architecture.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:27:36.162Z","isFirstParty":false}