79trust / 100

Audio Speech

by voice.forgemesh.io in AI models & inference

x402 APIPassing, checked 3 h ago

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.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
424 ms typical, 467 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -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"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fvoice.forgemesh.io%2Fv1%2Faudio%2Fspeech
const res = await pay("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"}),
});
console.log(await res.json());

Example input

{
  "input": "Hello world",
  "model": "forgemesh-voice",
  "response_format": "wav",
  "voice": "M1"
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402451 ms$0.001
6 h agoPassed402424 ms$0.001
10 h agoPassed402467 ms$0.001
13 h agoPassed402434 ms$0.001
17 h agoPassed402425 ms$0.001
21 h agoPassed402547 ms$0.001
24 h agoPassed402365 ms$0.001
29 h agoPassed402395 ms$0.001
32 h agoPassed402395 ms$0.001
35 h agoPassed402129 ms$0.001
40 h agoPassed402424 ms$0.001