Tool detail
Text-to-speech
Converts text to speech with OpenAI TTS-1, returning base64 audio in a chosen format and voice.
Categories: Speech audio
Use when
- generate speech audio from text with a chosen voice
- get TTS output as mp3, opus, aac, flac, wav or pcm
Not for
- text capped at 2000 characters per call
- for cheaper high-volume speech, the docs point to /api/tts-lite (Kokoro-82M, $0.005)
Inputs
POST JSON body: text (string, required, max 2000 chars), voice (string, optional, default alloy), format (string, optional, default mp3)
Admitted input schema
{
"type": "object",
"properties": {
"format": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Audio format: mp3, opus, aac, flac, wav, pcm (default: mp3)"
},
"text": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Text to convert to speech (max 2000 chars)"
},
"voice": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Voice: alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer (default: alloy)"
}
},
"required": [
"text"
],
"additionalProperties": false
}Endpoint
- Method
POST- URL
https://agent402.tools/api/tts
Payment
- Protocol
- x402
- Listed price
- $0.05 USDC per call on Base
- Payment method
- exact
- Network
- eip155:8453
- Asset
- 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.
Source
- Directory
- Coinbase x402 Bazaar
- Record
- POST https://agent402.tools/api/tts
- Retrieved
- 2026-09-30T20:37:07.382Z
- Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524- Catalog built
- 2026-09-30T22:31:58.034Z