F

Forgemesh · Audio Speech

by Forgemesh

POSTBase

$0.001

per call · USD Coin on Base

OpenAI-compatible text-to-speech endpoint (input, voice, response_format) for drop-in use with code already built against the OpenAI TTS API, 1 of 10 standard voices, up to 500 characters, WAV/FLAC/OGG output. Use it to: swap OpenAI TTS calls for a pay-per-call x402 alternative, generate speech from an existing OpenAI-style client, avoid API-key management for short text-to-audio requests. USDC on Base.

Endpoint

POST https://voice.forgemesh.io/v1/audio/speech

7

Calls / 30d

2

Unique payers / 30d

Sep 7

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://voice.forgemesh.io/v1/audio/speech", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": "Hello world",
    "model": "forgemesh-voice",
    "response_format": "wav",
    "voice": "M1"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://voice.forgemesh.io/v1/audio/speech" \
  -H "Content-Type: application/json" \
  -d '{"input":"Hello world","model":"forgemesh-voice","response_format":"wav","voice":"M1"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "content_type": "audio/wav",
  "description": "OpenAI-compatible inline speech audio response"
}

Payment details

Pay to0x962794fb8ad92941faf1ab446b9e30637b86f331
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 Forgemesh & similar services