B

Benlab · Audio Speech

by Benlab

POSTBase

$0.04

per call · USD Coin on Base

Generate private, locally processed English speech from bounded text. Returns WAV audio as base64 JSON, uses a fixed voice allowlist, and does not retain or log submitted text.

Endpoint

POST https://fetchharbor.benlab.download/v1/audio/speech

1

Calls / 30d

1

Unique payers / 30d

Aug 23

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://fetchharbor.benlab.download/v1/audio/speech", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": "Welcome to FetchHarbor.",
    "voice": "af_sarah"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://fetchharbor.benlab.download/v1/audio/speech" \
  -H "Content-Type: application/json" \
  -d '{"input":"Welcome to FetchHarbor.","voice":"af_sarah"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "audio_base64": "UklGRg...",
  "duration_seconds": 1.2,
  "format": "wav",
  "sample_rate": 24000,
  "status": "success",
  "voice": "af_sarah"
}

Payment details

Pay to0xaed4a496fed1132b94c0a5f9fb5ee7cf63d869c2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Benlab & similar services