Skip to content
Fourohtwo

Text-to-speech (OpenAI-compatible /v1/audio/speech)

x402.telnyx.com/v1/audio/speech

Text-to-speech (OpenAI-compatible /v1/audio/speech). 4,000+ voices from Telnyx, Azure, MiniMax, Inworld, AWS Polly and more (free catalog at GET /v1/audio/voices). Returns mp3. Up to 3000 chars. $0.000006 USDC per character (Telnyx list rate, zero margin): pay per character via the upto scheme (min $0.002 network settlement floor, so ≤333-char calls settle at $0.002), or flat $0.018 exact.

BaseAnswering
POSThttps://x402.telnyx.com/v1/audio/speech

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.telnyx.com/v1/audio/speech", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":"Hello from the Telnyx x402 gateway.","model":"tts-1","voice":"alloy"}),
});
console.log(await res.json());

Example input

{
  "input": "Hello from the Telnyx x402 gateway.",
  "model": "tts-1",
  "voice": "alloy"
}