Skip to content

Text to speech (stock voices)

Turn plain text into machine-generated audio from a stock synthetic voice, paid per call with x402 v2. Stock voices only; no voice cloning and no custom voices. USDC on Base only. No signup or API key.

Prices

  • tier=standard (up to 3000 characters, the greater of the Unicode code-point count and the UTF-16 length, plain text only): $0.002 up to 100; $0.004 up to 500; $0.006 up to 1000; $0.014 up to 3000
  • tier=neural (up to 2500 characters, the greater of the Unicode code-point count and the UTF-16 length, plain text only): $0.004 up to 100; $0.01 up to 500; $0.018 up to 1000; $0.042 up to 2500
  • tier=neural-short (up to 1000 characters, the greater of the Unicode code-point count and the UTF-16 length, plain text only): $0.004 up to 100; $0.01 up to 500; $0.018 up to 1000

The payable POST 402 amount is the band for the text you send. GET /api/tts (optional ?tier= only) is a discovery 402 at that tier's top-band amount and is not a payable quote for a specific text. A payment presented for different or longer text is refused and is not settled. That check is server policy; the payment authorization is not signed over the text.

An unpaid or paid request over the selected tier's cap is rejected with 413 before payment is verified and is not charged. Calls that fail on Base are not charged.

How to call

POST https://horizonpulse.dev/api/tts?tier=standard with header Content-Type: application/json and body {"text":"Your order has shipped and will arrive on Tuesday.","voice":"Joanna"}. Read the unpaid POST 402 for that exact body, pay the listed amount in USDC on Base, and retry the same URL and body. A 200 returns JSON with audio_base64 (mp3 by default, or ogg_vorbis).

Full route notes: /routes/tts. Agent skill: /skill.md. Buyer terms: /terms/buyer.

Samples and voices

Unpaid static fixtures (not live audio, and not a synthesis call): /api/demo/tts and /api/tts/voices. Placeholder notes for sample audio: /samples/tts/README.txt.

Notice

Machine-generated audio from a stock synthetic voice. Do not use it to impersonate a real person or to claim a person recorded it. Do not use the audio or this route to train or build a speech model or a competing text-to-speech service. Keep any watermark or metadata in the audio. You need the rights to the text you send.

To make the audio, your text is sent to a third-party cloud provider for processing. Horizon Pulse does not store the text or the audio after the response. See /privacy and /terms/buyer.

On this page