{"uid":"cap_U-GOUzp1dTX4qeWb5KgSS","slug":"x402factory-ai-227965f7","name":"x402factory.ai Base Text-to-Speech API","description":"Base text-to-speech API paid via x402. Converts text input into a hosted audio URL. Dynamic pricing for TTS: the prepaid price is computed per request based on the input and charged upfront via x402. Estimated characters for this request: 15. Prepaid price for this request: 0.009000 USDC.","url":"https://x402factory.ai/base/tts","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to convert to speech when action is omitted (TTS mode). Required for paid TTS calls."},"action":{"enum":["list"],"type":"string","description":"Optional action. Omit for TTS. Use 'list' to list available voices instead of generating speech."},"voice_id":{"type":"string","description":"Optional ElevenLabs voice_id. If omitted, a default narrator voice is used."}}},"responseSchema":{"ok":{"type":"boolean","description":"True on success"},"chars":{"type":"number","description":"Number of characters used for pricing in TTS calls."},"action":{"type":"string","description":"Action performed: 'tts' for text-to-speech, 'list' for voice listing."},"voices":{"type":"array","description":"For action=list: available voices with trimmed metadata (voice_id, name, accent, descriptive, age, language, use_case)."},"tts_url":{"type":"string","description":"Public URL of the generated audio file hosted on ImageKit (TTS only)."},"voice_id":{"type":"string","description":"Voice ID used for the TTS call (TTS only)."},"price_usdc":{"type":"number","description":"Price charged for this call in USDC (6 decimals, rounded up). Minimum is 0.001 USDC."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0282","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0282/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GZK6o_0RXbqqF59JMz6Zi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","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 a hosted audio URL using per-character dynamic pricing paid via x402 on Base network","exampleAgentPrompt":"Can you turn this text into spoken audio using x402factory's TTS endpoint — say 'Welcome to our platform, we're glad you're here' in English with the default voice, and give me back the hosted audio URL?","exampleUseCases":null,"resultDescription":"A hosted audio URL pointing to the synthesized speech file generated from the input text, returned after x402 micropayment is processed on Base network using USDC.","failureModes":["Payment failure if wallet has insufficient USDC balance on Base","Invalid language code returns error","Unsupported voice selection returns error","Empty or missing text field causes request rejection","Network timeout if x402 payment handshake stalls","Input text too long may exceed pricing cap or server limits"],"whenToPreferThis":"Use this endpoint when you need programmatic text-to-speech synthesis with per-character micropayment billing via x402 on the Base blockchain, avoiding subscription fees. Ideal for AI agents that need to generate audio on-demand and pay only for what they use in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:00.456Z","isFirstParty":false}