POST

Text-to-speech to MP3 from { text, voice, lang }; priced per 500 characters. Uses piper-tts

/v1/tts

Audio · piper-tts

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/tts
Content-Type: application/json

{
  "text": "Hello, world!",
  "voice": "example",
  "lang": "fr"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Text-to-speech to MP3 from { text, voice, lang }; priced per 500 characters. Uses piper-tts.

Request schema

Body: JSON · application/json

FieldTypeDescription
textstringrequired
voicestringoptional
langstringoptionalenum: fr, en
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/tts \
  -H "Content-Type: application/json" \
  -d '{
  "text": "Hello, world!",
  "voice": "example",
  "lang": "fr"
}'

402 payment flow omitted — see Integrations for settlement.