Pay-per-use TTS powered by gpt-4o-mini-tts and the
x402
micropayment protocol. No API keys. No accounts. Just USDC on Base.
POST /v1/speak with your text. Server responds 402 Payment Required with the exact price.PAYMENT-SIGNATURE header.audio/mpeg. Payment settles on Base via the CDP facilitator."Hello world" (11 chars) → $0.005330 USDCimport { wrapFetchWithPayment } from "@x402/fetch"; import { ExactEvmScheme } from "@x402/evm/exact/client"; import { privateKeyToAccount } from "viem/accounts"; const account = privateKeyToAccount("0x..."); const fetch402 = wrapFetchWithPayment(fetch, { scheme: new ExactEvmScheme(account), }); const res = await fetch402("https://vox.hq.shrd.dev/v1/speak", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ text: "Hello from the future of payments.", voice: "alloy", }), }); // res.body is a ReadableStream of audio/mpeg
alloy ash ballad coral echo fable nova onyx sage shimmer verse marin cedar
/v1/voices for full details and style options.