D

DIEM Agent Workers · Jobs Text TO Speech

by DIEM Agent Workers

POSTBase

$0.01

per call · USD Coin on Base

Convert up to 1,000 characters of text into MP3 speech using a bounded private Venice voice model. Use constitutes acceptance of https://diem-agent-workers.vercel.app/terms.

Endpoint

POST https://diem-agent-workers.vercel.app/v1/jobs/text-to-speech

3

Calls / 30d

2

Unique payers / 30d

Aug 14

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://diem-agent-workers.vercel.app/v1/jobs/text-to-speech", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "speed": 1,
    "text": "Your report is ready.",
    "voice": "af_heart"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://diem-agent-workers.vercel.app/v1/jobs/text-to-speech" \
  -H "Content-Type: application/json" \
  -d '{"speed":1,"text":"Your report is ready.","voice":"af_heart"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "provider": {
    "model": "tts-kokoro",
    "name": "venice"
  },
  "result": {
    "base64": "<base64 mp3>",
    "bytes": 12345,
    "mediaType": "audio/mpeg"
  },
  "worker": "text_to_speech"
}

Payment details

Pay to0x56b8d69d25a57d291595e41bac57a71d507d96f7
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 DIEM Agent Workers & similar services