{"uid":"cap_cQ3wDA61fElJXSJDwYmgl","slug":"tanship-payai-console-text-to-speech-tts-a749f48d","name":"Tanship PayAI Console — Text-to-Speech (TTS)","description":"Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.","url":"https://x402.tanship.dev/v1/ai/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"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XsmrYRNFYQO_lc-DR3uCF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 synthesized speech audio via a payment-gated API using the x402 micropayment protocol on Base.","exampleAgentPrompt":"Can you convert this paragraph into spoken audio: 'Welcome to our platform. We're glad you're here. Let's get started together.'","exampleUseCases":[{"title":"Podcast intro narration","prompt":"Take this script and turn it into spoken audio for me: 'Hello and welcome to The Daily Digest, your source for the latest tech news. I'm your host and today we're covering AI breakthroughs and market trends.'"},{"title":"Accessibility voiceover for article","prompt":"I need to generate a spoken version of this article summary for visually impaired users: 'Scientists have discovered a new exoplanet in the habitable zone of a nearby star system, raising hopes for extraterrestrial life.'"},{"title":"Automated notification readout","prompt":"Convert this alert message into audio so I can play it over our intercom system: 'Attention all staff, the building will close at 6pm today due to scheduled maintenance. Please save your work and exit promptly.'"}],"resultDescription":"Returns synthesized speech audio corresponding to the submitted text. The audio is delivered as a binary audio file or stream (e.g. MP3 or WAV). Each call requires a $0.01 USDC micropayment via the x402 protocol on Base (eip155:8453).","failureModes":["Payment not included or invalid x402 payment header — returns HTTP 402 Payment Required","Malformed request body or missing required 'input' field — returns validation error","Unsupported bodyType value — returns enum validation error","Network or edge inference failure — returns 500 server error","Text input too long — may return payload too large or truncation error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use, on-demand text-to-speech without a subscription, especially in autonomous agent or Web3 contexts where USDC micropayments on Base are native. Ideal for agents that need to synthesize speech occasionally and want to pay per call at $0.01 USDC rather than managing API keys or monthly quotas. Prefer over traditional TTS APIs when operating in a crypto-native or x402-compatible environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:55:24.508Z","isFirstParty":false}