-
Notifications
You must be signed in to change notification settings - Fork 4
TTS
Acceptable use. Hosted-instance traffic is governed by the Terms of Service — including a generative-content acceptable-use policy — and by the upstream model providers' usage policies. Wallets used for prohibited content are blocked before settlement. Outputs are generated by third-party models from your inputs; you are responsible for how you use them.
Two tiers of text-to-speech, paywalled via x402. Send text, get back base64-encoded audio. 10 voices, 6 output formats. The operator's OPENAI_API_KEY handles upstream auth.
| Endpoint | Price | Model | Quality | Text cap |
|---|---|---|---|---|
POST /api/tts |
$0.05 | tts-1 |
Standard (fast) | 2,000 chars |
POST /api/tts-hd |
$0.10 | tts-1-hd |
HD (higher fidelity) | 2,000 chars |
Both tiers are wallet-only — every call burns real upstream TTS credit. See Security Model.
alloy (default), ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer
mp3 (default), opus, aac, flac, wav, pcm
// Request
{ "text": "Hello from Agent402!", "voice": "alloy", "format": "mp3" }
// Response
{ "model": "tts-1", "provider": "openai", "voice": "alloy", "format": "mp3",
"audio": "<base64-encoded audio>", "chars": 20 }Only text is required. voice defaults to alloy, format defaults to mp3.
- Speech-to-Text — the reverse: audio to text
- LLM Proxy Gateway — text inference
- Paying with x402 — the USDC payment flow
agent402.tools · synced from wiki/ in the main repo — edit there, not here.
Using it (for agents / buyers)
- Getting Started
- Paying with x402
- Robinhood Chain (USDG)
- Paying with Compute
- MCP Connector
- Adapters
- AWS Bedrock AgentCore
- Tool Catalog
- Skill Packs
- x402 Index and Router
- x402 Leaderboard
- LLM Gateway (OpenAI /v1)
- LLM Proxy Gateway
- Image Generation Gateway
- Code Execution Sandbox
- Text-to-Speech
- Speech-to-Text
- Text Embeddings
- Payments and x402
- Memory and Coordination
Tollbooth (for site owners)
- Pay-per-crawl — what it is, install, modes
- Pay-per-crawl Walkthrough — 5-min hands-on
- Tollbooth for Agencies — many-site playbook
- Try Tollbooth Cloud (managed)
Website & Developer
- Quickstart — first call in 60 seconds
- Playground — try tools in your browser
- SDK REPL — live code editor
- API Explorer — browse OpenAPI
- Adapter Docs — per-framework guides
- Workflows — chaining patterns
- Blog · Changelog
Under the hood